47 extern int main(
void);
50 void reset_handler(
void);
51 void nmi_handler(
void);
52 void default_handler(
void);
56 void gpio_port_a_isr(
void);
57 void gpio_port_b_isr(
void);
58 void gpio_port_c_isr(
void);
59 void gpio_port_d_isr(
void);
64 void udma_err_isr(
void);
69 #if USB_SERIAL_CONF_ENABLE
72 #define usb_isr default_handler
80 #define uart0_isr default_handler
81 #define uart1_isr default_handler
85 #if FLASH_CCA_CONF_BOOTLDR_BACKDOOR
88 #if FLASH_CCA_CONF_BOOTLDR_BACKDOOR_ACTIVE_HIGH
89 #define FLASH_CCA_BOOTLDR_CFG_ACTIVE_LEVEL FLASH_CCA_BOOTLDR_CFG_ACTIVE_HIGH
91 #define FLASH_CCA_BOOTLDR_CFG_ACTIVE_LEVEL 0
94 #if ((FLASH_CCA_CONF_BOOTLDR_BACKDOOR_PORT_A_PIN < 0) || (FLASH_CCA_CONF_BOOTLDR_BACKDOOR_PORT_A_PIN > 7))
95 #error Invalid boot loader backdoor pin. Please set FLASH_CCA_CONF_BOOTLDR_BACKDOOR_PORT_A_PIN between 0 and 7 (indicating PA0 - PA7).
98 #define FLASH_CCA_BOOTLDR_CFG (FLASH_CCA_BOOTLDR_CFG_ENABLE \
99 | FLASH_CCA_BOOTLDR_CFG_ACTIVE_LEVEL \
100 | (FLASH_CCA_CONF_BOOTLDR_BACKDOOR_PORT_A_PIN << FLASH_CCA_BOOTLDR_CFG_PORT_A_PIN_S))
102 #define FLASH_CCA_BOOTLDR_CFG FLASH_CCA_BOOTLDR_CFG_DISABLE
106 static uint64_t stack[256]
__attribute__ ((section(
".stack")));
109 void(*const vectors[])(
void) =
111 (void (*)(void))((
unsigned long)stack +
sizeof(stack)),
277 const flash_cca_lock_page_t flash_cca_lock_page = {
278 FLASH_CCA_BOOTLDR_CFG,
282 { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
283 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
284 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
285 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
289 extern uint8_t _ldata;
290 extern uint8_t _data;
291 extern uint8_t _edata;
293 extern uint8_t _ebss;
304 default_handler(
void)
315 rom_util_memcpy(&_data, &_ldata, &_edata - &_data);
318 rom_util_memset(&_bss, 0, &_ebss - &_bss);
void cc2538_rf_rx_tx_isr(void)
The cc2538 RF RX/TX ISR.
Header file with register manipulation macro definitions.
void crypto_isr(void)
The AES/SHA cryptoprocessor ISR.
#define __attribute__(nothing)
Define attribute to nothing since it isn't handled by IAR.
#define FLASH_CCA_IMAGE_VALID
Indicates valid image in flash.
void cc2538_rf_err_isr(void)
The cc2538 RF Error ISR.
void pka_isr(void)
The PKA engine ISR.
Header file for the cc2538 ROM utility function library driver.
Header file for the cc2538 System Control driver.
void rtimer_isr(void)
The rtimer ISR.
void clock_isr(void)
The clock Interrupt Service Routine.
int main(void)
This is main...
#define SYS_CTRL_EMUOVR
Emulator override.