15 #include "../../src/data_sets.h" 16 #include "../../hw-libs/misc/rtos.h" 33 #if defined(PLATFORM_IS_EVB_2) 64 uint32_t mode =
RSTC->RSTC_MR;
71 uint32_t mode =
RSTC->RSTC_MR;
103 GPBR->SYS_GPBR[7] = pHandle;
void soft_reset_backup_register(uint32_t sysFaultStatus)
void enable_bootloader(int pHandle)
#define GPBR
(GPBR ) Base Address
#define RSTC_CR_KEY_PASSWD
(RSTC_CR) Writing any other value in this field aborts the write operation.
#define RSTC_MR_KEY_Msk
(RSTC_MR) Write Access Password
#define RSTC_MR_URSTEN
(RSTC_MR) User Reset Enable
CDCHeaderDescriptor header
#define PORT_SEL_KEY_SYS_GPBR_6
Usart hardware registers.
#define RSTC
(RSTC ) Base Address
void set_reset_pin_enabled(int enabled)
uint32_t flash_clear_gpnvm(uint32_t ul_gpnvm)
Clear the given GPNVM bit.
void soft_reset_no_backup_register(void)
#define BOOTLOADER_FLASH_BOOTLOADER_HEADER_ADDRESS
void usart_reset(Usart *p_usart)
Reset the USART and disable TX and RX.
#define BOOTLOADER_FLASH_USER_DATA_END_ADDRESS
#define BOOTLOADER_FLASH_BLOCK_SIZE
#define RSTC_CR_PROCRST
(RSTC_CR) Processor Reset
#define Disable_global_interrupt()
void unlockUserFlash(void)
uint32_t flash_write(uint32_t ul_address, const void *p_buffer, uint32_t ul_size, uint32_t ul_erase_flag)
Write a data buffer on flash.
#define BOOTLOADER_JUMP_SIGNATURE_STAY_IN_BOOTLOADER
#define PORT_SEL_KEY_SYS_GPBR_5
#define BOOTLOADER_FLASH_BOOTLOADER_HEADER_SIZE
#define PORT_SEL_KEY_SYS_GPBR_3
void enable_bootloader_assistant(void)
#define SYS_FAULT_STATUS_ENABLE_BOOTLOADER
static void soft_reset_internal(void)
Autogenerated API include file for the Atmel Software Framework (ASF)
#define RSTC_MR_KEY_PASSWD
(RSTC_MR) Writing any other value in this field aborts the write operation.Always reads as 0...
#define PORT_SEL_KEY_SYS_GPBR_4
#define BOOTLOADER_FLASH_USER_DATA_START_ADDRESS
uint32_t flash_unlock(uint32_t ul_start, uint32_t ul_end, uint32_t *pul_actual_start, uint32_t *pul_actual_end)
Unlock all the regions in the given address range. The actual unlock range is reported through two ou...