100#if defined (__CC_ARM)
103#elif defined (__ICCARM__)
104 #pragma language=extended
105#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
106 #pragma clang diagnostic push
107 #pragma clang diagnostic ignored "-Wc11-extensions"
108 #pragma clang diagnostic ignored "-Wreserved-id-macro"
109#elif defined (__GNUC__)
111#elif defined (__TMS470__)
113#elif defined (__TASKING__)
115#elif defined (__CSMC__)
118 #warning Not supported compiler type
123#define __CM3_REV 0x0201U
124#define __MPU_PRESENT 1
125#define __NVIC_PRIO_BITS 3
126#define __Vendor_SysTickConfig 0
151#define CMSDK_UART_DATA_Pos 0
152#define CMSDK_UART_DATA_Msk (0xFFUL )
155#define CMSDK_UART_STATE_RXOR_Pos 3
156#define CMSDK_UART_STATE_RXOR_Msk (0x1UL << CMSDK_UART_STATE_RXOR_Pos)
158#define CMSDK_UART_STATE_TXOR_Pos 2
159#define CMSDK_UART_STATE_TXOR_Msk (0x1UL << CMSDK_UART_STATE_TXOR_Pos)
161#define CMSDK_UART_STATE_RXBF_Pos 1
162#define CMSDK_UART_STATE_RXBF_Msk (0x1UL << CMSDK_UART_STATE_RXBF_Pos)
164#define CMSDK_UART_STATE_TXBF_Pos 0
165#define CMSDK_UART_STATE_TXBF_Msk (0x1UL )
168#define CMSDK_UART_CTRL_HSTM_Pos 6
169#define CMSDK_UART_CTRL_HSTM_Msk (0x01UL << CMSDK_UART_CTRL_HSTM_Pos)
171#define CMSDK_UART_CTRL_RXORIRQEN_Pos 5
172#define CMSDK_UART_CTRL_RXORIRQEN_Msk (0x01UL << CMSDK_UART_CTRL_RXORIRQEN_Pos)
174#define CMSDK_UART_CTRL_TXORIRQEN_Pos 4
175#define CMSDK_UART_CTRL_TXORIRQEN_Msk (0x01UL << CMSDK_UART_CTRL_TXORIRQEN_Pos)
177#define CMSDK_UART_CTRL_RXIRQEN_Pos 3
178#define CMSDK_UART_CTRL_RXIRQEN_Msk (0x01UL << CMSDK_UART_CTRL_RXIRQEN_Pos)
180#define CMSDK_UART_CTRL_TXIRQEN_Pos 2
181#define CMSDK_UART_CTRL_TXIRQEN_Msk (0x01UL << CMSDK_UART_CTRL_TXIRQEN_Pos)
183#define CMSDK_UART_CTRL_RXEN_Pos 1
184#define CMSDK_UART_CTRL_RXEN_Msk (0x01UL << CMSDK_UART_CTRL_RXEN_Pos)
186#define CMSDK_UART_CTRL_TXEN_Pos 0
187#define CMSDK_UART_CTRL_TXEN_Msk (0x01UL )
189#define CMSDK_UART_INTSTATUS_RXORIRQ_Pos 3
190#define CMSDK_UART_CTRL_RXORIRQ_Msk (0x01UL << CMSDK_UART_INTSTATUS_RXORIRQ_Pos)
192#define CMSDK_UART_CTRL_TXORIRQ_Pos 2
193#define CMSDK_UART_CTRL_TXORIRQ_Msk (0x01UL << CMSDK_UART_CTRL_TXORIRQ_Pos)
195#define CMSDK_UART_CTRL_RXIRQ_Pos 1
196#define CMSDK_UART_CTRL_RXIRQ_Msk (0x01UL << CMSDK_UART_CTRL_RXIRQ_Pos)
198#define CMSDK_UART_CTRL_TXIRQ_Pos 0
199#define CMSDK_UART_CTRL_TXIRQ_Msk (0x01UL )
202#define CMSDK_UART_BAUDDIV_Pos 0
203#define CMSDK_UART_BAUDDIV_Msk (0xFFFFFUL )
220#define CMSDK_TIMER_CTRL_IRQEN_Pos 3
221#define CMSDK_TIMER_CTRL_IRQEN_Msk (0x01UL << CMSDK_TIMER_CTRL_IRQEN_Pos)
223#define CMSDK_TIMER_CTRL_SELEXTCLK_Pos 2
224#define CMSDK_TIMER_CTRL_SELEXTCLK_Msk (0x01UL << CMSDK_TIMER_CTRL_SELEXTCLK_Pos)
226#define CMSDK_TIMER_CTRL_SELEXTEN_Pos 1
227#define CMSDK_TIMER_CTRL_SELEXTEN_Msk (0x01UL << CMSDK_TIMER_CTRL_SELEXTEN_Pos)
229#define CMSDK_TIMER_CTRL_EN_Pos 0
230#define CMSDK_TIMER_CTRL_EN_Msk (0x01UL )
233#define CMSDK_TIMER_VAL_CURRENT_Pos 0
234#define CMSDK_TIMER_VAL_CURRENT_Msk (0xFFFFFFFFUL )
237#define CMSDK_TIMER_RELOAD_VAL_Pos 0
238#define CMSDK_TIMER_RELOAD_VAL_Msk (0xFFFFFFFFUL )
241#define CMSDK_TIMER_INTSTATUS_Pos 0
242#define CMSDK_TIMER_INTSTATUS_Msk (0x01UL )
245#define CMSDK_TIMER_INTCLEAR_Pos 0
246#define CMSDK_TIMER_INTCLEAR_Msk (0x01UL )
285#define CMSDK_DUALTIMER_LOAD_Pos 0
286#define CMSDK_DUALTIMER_LOAD_Msk (0xFFFFFFFFUL )
289#define CMSDK_DUALTIMER_VALUE_Pos 0
290#define CMSDK_DUALTIMER_VALUE_Msk (0xFFFFFFFFUL )
293#define CMSDK_DUALTIMER_CTRL_EN_Pos 7
294#define CMSDK_DUALTIMER_CTRL_EN_Msk (0x1UL << CMSDK_DUALTIMER_CTRL_EN_Pos)
296#define CMSDK_DUALTIMER_CTRL_MODE_Pos 6
297#define CMSDK_DUALTIMER_CTRL_MODE_Msk (0x1UL << CMSDK_DUALTIMER_CTRL_MODE_Pos)
299#define CMSDK_DUALTIMER_CTRL_INTEN_Pos 5
300#define CMSDK_DUALTIMER_CTRL_INTEN_Msk (0x1UL << CMSDK_DUALTIMER_CTRL_INTEN_Pos)
302#define CMSDK_DUALTIMER_CTRL_PRESCALE_Pos 2
303#define CMSDK_DUALTIMER_CTRL_PRESCALE_Msk (0x3UL << CMSDK_DUALTIMER_CTRL_PRESCALE_Pos)
305#define CMSDK_DUALTIMER_CTRL_SIZE_Pos 1
306#define CMSDK_DUALTIMER_CTRL_SIZE_Msk (0x1UL << CMSDK_DUALTIMER_CTRL_SIZE_Pos)
308#define CMSDK_DUALTIMER_CTRL_ONESHOOT_Pos 0
309#define CMSDK_DUALTIMER_CTRL_ONESHOOT_Msk (0x1UL )
312#define CMSDK_DUALTIMER_INTCLR_Pos 0
313#define CMSDK_DUALTIMER_INTCLR_Msk (0x1UL )
316#define CMSDK_DUALTIMER_RIS_Pos 0
317#define CMSDK_DUALTIMER_RIS_Msk (0x1UL )
320#define CMSDK_DUALTIMER_MIS_Pos 0
321#define CMSDK_DUALTIMER_MIS_Msk (0x1UL )
324#define CMSDK_DUALTIMER_BGLOAD_Pos 0
325#define CMSDK_DUALTIMER_BGLOAD_Msk (0xFFFFFFFFUL )
354#define CMSDK_GPIO_DATA_Pos 0
355#define CMSDK_GPIO_DATA_Msk (0xFFFFUL )
358#define CMSDK_GPIO_DATAOUT_Pos 0
359#define CMSDK_GPIO_DATAOUT_Msk (0xFFFFUL )
362#define CMSDK_GPIO_OUTENSET_Pos 0
363#define CMSDK_GPIO_OUTENSET_Msk (0xFFFFUL )
366#define CMSDK_GPIO_OUTENCLR_Pos 0
367#define CMSDK_GPIO_OUTENCLR_Msk (0xFFFFUL )
370#define CMSDK_GPIO_ALTFUNCSET_Pos 0
371#define CMSDK_GPIO_ALTFUNCSET_Msk (0xFFFFUL )
374#define CMSDK_GPIO_ALTFUNCCLR_Pos 0
375#define CMSDK_GPIO_ALTFUNCCLR_Msk (0xFFFFUL )
378#define CMSDK_GPIO_INTENSET_Pos 0
379#define CMSDK_GPIO_INTENSET_Msk (0xFFFFUL )
382#define CMSDK_GPIO_INTENCLR_Pos 0
383#define CMSDK_GPIO_INTENCLR_Msk (0xFFFFUL )
386#define CMSDK_GPIO_INTTYPESET_Pos 0
387#define CMSDK_GPIO_INTTYPESET_Msk (0xFFFFUL )
390#define CMSDK_GPIO_INTTYPECLR_Pos 0
391#define CMSDK_GPIO_INTTYPECLR_Msk (0xFFFFUL )
394#define CMSDK_GPIO_INTPOLSET_Pos 0
395#define CMSDK_GPIO_INTPOLSET_Msk (0xFFFFUL )
398#define CMSDK_GPIO_INTPOLCLR_Pos 0
399#define CMSDK_GPIO_INTPOLCLR_Msk (0xFFFFUL )
402#define CMSDK_GPIO_INTSTATUS_Pos 0
403#define CMSDK_GPIO_INTCLEAR_Msk (0xFFUL )
406#define CMSDK_GPIO_INTCLEAR_Pos 0
407#define CMSDK_GPIO_INTCLEAR_Msk (0xFFUL )
410#define CMSDK_GPIO_MASKLOWBYTE_Pos 0
411#define CMSDK_GPIO_MASKLOWBYTE_Msk (0x00FFUL )
414#define CMSDK_GPIO_MASKHIGHBYTE_Pos 0
415#define CMSDK_GPIO_MASKHIGHBYTE_Msk (0xFF00UL )
429#define CMSDK_SYSCON_REMAP_Pos 0
430#define CMSDK_SYSCON_REMAP_Msk (0x1UL )
433#define CMSDK_SYSCON_PMUCTRL_EN_Pos 0
434#define CMSDK_SYSCON_PMUCTRL_EN_Msk (0x1UL )
437#define CMSDK_SYSCON_LOCKUPRST_RESETOP_Pos 0
438#define CMSDK_SYSCON_LOCKUPRST_RESETOP_Msk (0x1UL )
441#define CMSDK_SYSCON_EMICTRL_SIZE_Pos 24
442#define CMSDK_SYSCON_EMICTRL_SIZE_Msk (0x1UL << CMSDK_SYSCON_EMICTRL_SIZE_Pos)
444#define CMSDK_SYSCON_EMICTRL_TACYC_Pos 16
445#define CMSDK_SYSCON_EMICTRL_TACYC_Msk (0x7UL << CMSDK_SYSCON_EMICTRL_TACYC_Pos)
447#define CMSDK_SYSCON_EMICTRL_WCYC_Pos 8
448#define CMSDK_SYSCON_EMICTRL_WCYC_Msk (0x3UL << CMSDK_SYSCON_EMICTRL_WCYC_Pos)
450#define CMSDK_SYSCON_EMICTRL_RCYC_Pos 0
451#define CMSDK_SYSCON_EMICTRL_RCYC_Msk (0x7UL )
454#define CMSDK_SYSCON_RSTINFO_LOCKUPRESET_Pos 2
455#define CMSDK_SYSCON_RSTINFO_LOCKUPRESET_Msk (0x1UL << CMSDK_SYSCON_RSTINFO_LOCKUPRESET_Pos)
457#define CMSDK_SYSCON_RSTINFO_WDOGRESETREQ_Pos 1
458#define CMSDK_SYSCON_RSTINFO_WDOGRESETREQ_Msk (0x1UL << CMSDK_SYSCON_RSTINFO_WDOGRESETREQ_Pos)
460#define CMSDK_SYSCON_RSTINFO_SYSRESETREQ_Pos 0
461#define CMSDK_SYSCON_RSTINFO_SYSRESETREQ_Msk (0x1UL )
482#define CMSDK_Watchdog_LOAD_Pos 0
483#define CMSDK_Watchdog_LOAD_Msk (0xFFFFFFFFUL )
486#define CMSDK_Watchdog_VALUE_Pos 0
487#define CMSDK_Watchdog_VALUE_Msk (0xFFFFFFFFUL )
490#define CMSDK_Watchdog_CTRL_RESEN_Pos 1
491#define CMSDK_Watchdog_CTRL_RESEN_Msk (0x1UL << CMSDK_Watchdog_CTRL_RESEN_Pos)
493#define CMSDK_Watchdog_CTRL_INTEN_Pos 0
494#define CMSDK_Watchdog_CTRL_INTEN_Msk (0x1UL )
497#define CMSDK_Watchdog_INTCLR_Pos 0
498#define CMSDK_Watchdog_INTCLR_Msk (0x1UL )
501#define CMSDK_Watchdog_RAWINTSTAT_Pos 0
502#define CMSDK_Watchdog_RAWINTSTAT_Msk (0x1UL )
505#define CMSDK_Watchdog_MASKINTSTAT_Pos 0
506#define CMSDK_Watchdog_MASKINTSTAT_Msk (0x1UL )
509#define CMSDK_Watchdog_LOCK_Pos 0
510#define CMSDK_Watchdog_LOCK_Msk (0x1UL )
513#define CMSDK_Watchdog_INTEGTESTEN_Pos 0
514#define CMSDK_Watchdog_INTEGTESTEN_Msk (0x1UL )
517#define CMSDK_Watchdog_INTEGTESTOUTSET_Pos 1
518#define CMSDK_Watchdog_INTEGTESTOUTSET_Msk (0x1UL )
523#if defined (__CC_ARM)
525#elif defined (__ICCARM__)
527#elif (__ARMCC_VERSION >= 6010050)
528 #pragma clang diagnostic pop
529#elif defined (__GNUC__)
531#elif defined (__TMS470__)
533#elif defined (__TASKING__)
534 #pragma warning restore
535#elif defined (__CSMC__)
538 #warning Not supported compiler type
549#define CMSDK_FLASH_BASE (0x00000000UL)
550#define CMSDK_SRAM_BASE (0x20000000UL)
551#define CMSDK_PERIPH_BASE (0x40000000UL)
553#define CMSDK_RAM_BASE (0x20000000UL)
554#define CMSDK_APB_BASE (0x40000000UL)
555#define CMSDK_AHB_BASE (0x40010000UL)
558#define CMSDK_TIMER0_BASE (CMSDK_APB_BASE + 0x0000UL)
559#define CMSDK_TIMER1_BASE (CMSDK_APB_BASE + 0x1000UL)
560#define CMSDK_DUALTIMER_BASE (CMSDK_APB_BASE + 0x2000UL)
561#define CMSDK_DUALTIMER_1_BASE (CMSDK_DUALTIMER_BASE)
562#define CMSDK_DUALTIMER_2_BASE (CMSDK_DUALTIMER_BASE + 0x20UL)
563#define CMSDK_UART0_BASE (CMSDK_APB_BASE + 0x4000UL)
564#define CMSDK_UART1_BASE (CMSDK_APB_BASE + 0x5000UL)
565#define CMSDK_UART2_BASE (CMSDK_APB_BASE + 0x6000UL)
566#define CMSDK_WATCHDOG_BASE (CMSDK_APB_BASE + 0x8000UL)
569#define CMSDK_GPIO0_BASE (CMSDK_AHB_BASE + 0x0000UL)
570#define CMSDK_GPIO1_BASE (CMSDK_AHB_BASE + 0x1000UL)
571#define CMSDK_SYSCTRL_BASE (CMSDK_AHB_BASE + 0xF000UL)
578#define CMSDK_UART0 ((CMSDK_UART_TypeDef *) CMSDK_UART0_BASE )
579#define CMSDK_UART1 ((CMSDK_UART_TypeDef *) CMSDK_UART1_BASE )
580#define CMSDK_UART2 ((CMSDK_UART_TypeDef *) CMSDK_UART2_BASE )
581#define CMSDK_TIMER0 ((CMSDK_TIMER_TypeDef *) CMSDK_TIMER0_BASE )
582#define CMSDK_TIMER1 ((CMSDK_TIMER_TypeDef *) CMSDK_TIMER1_BASE )
583#define CMSDK_DUALTIMER ((CMSDK_DUALTIMER_BOTH_TypeDef *) CMSDK_DUALTIMER_BASE )
584#define CMSDK_DUALTIMER1 ((CMSDK_DUALTIMER_SINGLE_TypeDef *) CMSDK_DUALTIMER_1_BASE )
585#define CMSDK_DUALTIMER2 ((CMSDK_DUALTIMER_SINGLE_TypeDef *) CMSDK_DUALTIMER_2_BASE )
586#define CMSDK_WATCHDOG ((CMSDK_WATCHDOG_TypeDef *) CMSDK_WATCHDOG_BASE )
587#define CMSDK_GPIO0 ((CMSDK_GPIO_TypeDef *) CMSDK_GPIO0_BASE )
588#define CMSDK_GPIO1 ((CMSDK_GPIO_TypeDef *) CMSDK_GPIO1_BASE )
589#define CMSDK_SYSCON ((CMSDK_SYSCON_TypeDef *) CMSDK_SYSCTRL_BASE )
@ GPIO2_IRQn
Definition CMSDK_CM3.h:76
@ PendSV_IRQn
Definition CMSDK_CM3.h:56
@ UART4TX_IRQn
Definition CMSDK_CM3.h:81
@ TIMER1_IRQn
Definition CMSDK_CM3.h:69
@ UART2RX_IRQn
Definition CMSDK_CM3.h:64
@ I2S_IRQn
Definition CMSDK_CM3.h:74
@ UART4RX_IRQn
Definition CMSDK_CM3.h:80
@ UART2TX_IRQn
Definition CMSDK_CM3.h:65
@ TIMER0_IRQn
Definition CMSDK_CM3.h:68
@ UART3TX_IRQn
Definition CMSDK_CM3.h:79
@ GPIO0_6_IRQn
Definition CMSDK_CM3.h:90
@ MemoryManagement_IRQn
Definition CMSDK_CM3.h:51
@ SVCall_IRQn
Definition CMSDK_CM3.h:54
@ UART0TX_IRQn
Definition CMSDK_CM3.h:61
@ GPIO0_2_IRQn
Definition CMSDK_CM3.h:86
@ GPIO3_IRQn
Definition CMSDK_CM3.h:77
@ GPIO1ALL_IRQn
Definition CMSDK_CM3.h:67
@ UsageFault_IRQn
Definition CMSDK_CM3.h:53
@ UART_0_1_2_OVF_IRQn
Definition CMSDK_CM3.h:72
@ SysTick_IRQn
Definition CMSDK_CM3.h:57
@ GPIO0_3_IRQn
Definition CMSDK_CM3.h:87
@ ETHERNET_IRQn
Definition CMSDK_CM3.h:73
@ UART1TX_IRQn
Definition CMSDK_CM3.h:63
@ BusFault_IRQn
Definition CMSDK_CM3.h:52
@ DebugMonitor_IRQn
Definition CMSDK_CM3.h:55
@ GPIO0ALL_IRQn
Definition CMSDK_CM3.h:66
@ GPIO0_5_IRQn
Definition CMSDK_CM3.h:89
@ UART0RX_IRQn
Definition CMSDK_CM3.h:60
@ HardFault_IRQn
Definition CMSDK_CM3.h:50
@ GPIO0_4_IRQn
Definition CMSDK_CM3.h:88
@ DUALTIMER_IRQn
Definition CMSDK_CM3.h:70
@ GPIO0_1_IRQn
Definition CMSDK_CM3.h:85
@ TOUCHSCREEN_IRQn
Definition CMSDK_CM3.h:75
@ SPI_3_4_IRQn
Definition CMSDK_CM3.h:83
@ UART1RX_IRQn
Definition CMSDK_CM3.h:62
@ NonMaskableInt_IRQn
Definition CMSDK_CM3.h:49
@ GPIO0_7_IRQn
Definition CMSDK_CM3.h:91
@ SPI_2_IRQn
Definition CMSDK_CM3.h:82
@ SPI_0_1_IRQn
Definition CMSDK_CM3.h:71
@ UART3RX_IRQn
Definition CMSDK_CM3.h:78
@ GPIO0_0_IRQn
Definition CMSDK_CM3.h:84
IRQn
Definition f1c100s_reg.h:1131
#define __OM
Definition i_reg_gpio.h:47
#define __IM
Definition i_reg_gpio.h:42
#define __IOM
Definition i_reg_gpio.h:52
unsigned int uint32_t
Definition lvgl.h:43
Definition CMSDK_ARMv8MBL.h:278
Definition CMSDK_ARMv8MBL.h:301
Definition CMSDK_ARMv8MBL.h:357
Definition CMSDK_ARMv8MBL.h:447
Definition CMSDK_ARMv8MBL.h:235
Definition CMSDK_ARMv8MBL.h:165
Definition CMSDK_ARMv8MBL.h:493
CMSIS Device System Header File for CMSDK_CM3 Device.