arch/arm/src/stm32: stm32_rtcc.h should be used to access BKP registers on F2, F3, and F4.

This commit is contained in:
Gregory Nutt 2018-01-26 11:34:48 -06:00
parent bffa425233
commit 49d07162bf
1 changed files with 9 additions and 1 deletions

View File

@ -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
/************************************************************************************