arch/arm/src/stm32: stm32_rtcc.h should be used to access BKP registers on F2, F3, and F4.
This commit is contained in:
parent
bffa425233
commit
49d07162bf
|
@ -42,9 +42,17 @@
|
|||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
/* Only the STM32 F1 family has a dedicated address region for BKP memory. For F2,
|
||||
* F3, and F3 parts, the bKP registers lie in the same address region as the RTCC
|
||||
* and the definitions in chip/stm32_rtcc.h should be used to access backup
|
||||
* registers. NOTE: These definitions are not interchangeable!
|
||||
*/
|
||||
|
||||
#include "chip.h"
|
||||
#ifdef CONFIG_STM32_STM32F10XX
|
||||
# include "chip.h"
|
||||
# include "chip/stm32_bkp.h"
|
||||
#else
|
||||
# include "chip/stm32_rtcc.h"
|
||||
#endif
|
||||
|
||||
/************************************************************************************
|
||||
|
|
Loading…
Reference in New Issue