1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/samd21: add NVM User Page Mapping

This commit is contained in:
Benjamin Valentin 2020-07-11 23:59:07 +02:00
parent edbb5fe9d0
commit c5f8742877

View File

@ -122,6 +122,33 @@ typedef enum {
#define RTT_MAX_FREQUENCY (RTT_CLOCK_FREQUENCY) /* in Hz */
/** @} */
/**
* @brief NVM User Row Mapping - Dedicated Entries
* Config values will be applied at power-on.
* @{
*/
struct sam0_aux_cfg_mapping {
uint64_t bootloader_size : 3; /**< BOOTPROT: Bootloader Size */
uint64_t reserved_0 : 1; /**< Factory settings - do not change. */
uint64_t eeprom_size : 3; /**< one of eight different EEPROM sizes */
uint64_t reserved_1 : 1; /**< Factory settings - do not change. */
uint64_t bod33_level : 6; /**< BOD33 threshold level at power-on. */
uint64_t bod33_enable : 1; /**< BOD33 Enable at power-on. */
uint64_t bod33_action : 2; /**< BOD33 Action at power-on. */
uint64_t reserved_2 : 8; /**< Factory settings - do not change. */
uint64_t wdt_enable : 1; /**< WDT Enable at power-on. */
uint64_t wdt_always_on : 1; /**< WDT Always-On at power-on. */
uint64_t wdt_period : 4; /**< WDT Period at power-on. */
uint64_t wdt_window : 4; /**< WDT Window at power-on. */
uint64_t wdt_ewoffset : 4; /**< WDT Early Warning Interrupt Offset */
uint64_t wdt_window_enable : 1; /**< WDT Window mode enabled on power-on */
uint64_t bod33_hysteresis : 1; /**< BOD33 Hysteresis configuration */
const uint64_t bod12_calibration : 1; /**< Factory settings - do not change. */
uint64_t reserved_3 : 6; /**< Factory settings - do not change. */
uint64_t nvm_locks : 16; /**< NVM Region Lock Bits. */
};
/** @} */
#ifdef __cplusplus
}
#endif