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 __CM4_REV 0x0001U
124#define __MPU_PRESENT 1
125#define __NVIC_PRIO_BITS 3
126#define __Vendor_SysTickConfig 0
127#define __FPU_PRESENT 1
152#define CMSDK_UART_DATA_Pos 0
153#define CMSDK_UART_DATA_Msk (0xFFUL )
156#define CMSDK_UART_STATE_RXOR_Pos 3
157#define CMSDK_UART_STATE_RXOR_Msk (0x1UL << CMSDK_UART_STATE_RXOR_Pos)
159#define CMSDK_UART_STATE_TXOR_Pos 2
160#define CMSDK_UART_STATE_TXOR_Msk (0x1UL << CMSDK_UART_STATE_TXOR_Pos)
162#define CMSDK_UART_STATE_RXBF_Pos 1
163#define CMSDK_UART_STATE_RXBF_Msk (0x1UL << CMSDK_UART_STATE_RXBF_Pos)
165#define CMSDK_UART_STATE_TXBF_Pos 0
166#define CMSDK_UART_STATE_TXBF_Msk (0x1UL )
169#define CMSDK_UART_CTRL_HSTM_Pos 6
170#define CMSDK_UART_CTRL_HSTM_Msk (0x01UL << CMSDK_UART_CTRL_HSTM_Pos)
172#define CMSDK_UART_CTRL_RXORIRQEN_Pos 5
173#define CMSDK_UART_CTRL_RXORIRQEN_Msk (0x01UL << CMSDK_UART_CTRL_RXORIRQEN_Pos)
175#define CMSDK_UART_CTRL_TXORIRQEN_Pos 4
176#define CMSDK_UART_CTRL_TXORIRQEN_Msk (0x01UL << CMSDK_UART_CTRL_TXORIRQEN_Pos)
178#define CMSDK_UART_CTRL_RXIRQEN_Pos 3
179#define CMSDK_UART_CTRL_RXIRQEN_Msk (0x01UL << CMSDK_UART_CTRL_RXIRQEN_Pos)
181#define CMSDK_UART_CTRL_TXIRQEN_Pos 2
182#define CMSDK_UART_CTRL_TXIRQEN_Msk (0x01UL << CMSDK_UART_CTRL_TXIRQEN_Pos)
184#define CMSDK_UART_CTRL_RXEN_Pos 1
185#define CMSDK_UART_CTRL_RXEN_Msk (0x01UL << CMSDK_UART_CTRL_RXEN_Pos)
187#define CMSDK_UART_CTRL_TXEN_Pos 0
188#define CMSDK_UART_CTRL_TXEN_Msk (0x01UL )
190#define CMSDK_UART_INTSTATUS_RXORIRQ_Pos 3
191#define CMSDK_UART_CTRL_RXORIRQ_Msk (0x01UL << CMSDK_UART_INTSTATUS_RXORIRQ_Pos)
193#define CMSDK_UART_CTRL_TXORIRQ_Pos 2
194#define CMSDK_UART_CTRL_TXORIRQ_Msk (0x01UL << CMSDK_UART_CTRL_TXORIRQ_Pos)
196#define CMSDK_UART_CTRL_RXIRQ_Pos 1
197#define CMSDK_UART_CTRL_RXIRQ_Msk (0x01UL << CMSDK_UART_CTRL_RXIRQ_Pos)
199#define CMSDK_UART_CTRL_TXIRQ_Pos 0
200#define CMSDK_UART_CTRL_TXIRQ_Msk (0x01UL )
203#define CMSDK_UART_BAUDDIV_Pos 0
204#define CMSDK_UART_BAUDDIV_Msk (0xFFFFFUL )
221#define CMSDK_TIMER_CTRL_IRQEN_Pos 3
222#define CMSDK_TIMER_CTRL_IRQEN_Msk (0x01UL << CMSDK_TIMER_CTRL_IRQEN_Pos)
224#define CMSDK_TIMER_CTRL_SELEXTCLK_Pos 2
225#define CMSDK_TIMER_CTRL_SELEXTCLK_Msk (0x01UL << CMSDK_TIMER_CTRL_SELEXTCLK_Pos)
227#define CMSDK_TIMER_CTRL_SELEXTEN_Pos 1
228#define CMSDK_TIMER_CTRL_SELEXTEN_Msk (0x01UL << CMSDK_TIMER_CTRL_SELEXTEN_Pos)
230#define CMSDK_TIMER_CTRL_EN_Pos 0
231#define CMSDK_TIMER_CTRL_EN_Msk (0x01UL )
234#define CMSDK_TIMER_VAL_CURRENT_Pos 0
235#define CMSDK_TIMER_VAL_CURRENT_Msk (0xFFFFFFFFUL )
238#define CMSDK_TIMER_RELOAD_VAL_Pos 0
239#define CMSDK_TIMER_RELOAD_VAL_Msk (0xFFFFFFFFUL )
242#define CMSDK_TIMER_INTSTATUS_Pos 0
243#define CMSDK_TIMER_INTSTATUS_Msk (0x01UL )
246#define CMSDK_TIMER_INTCLEAR_Pos 0
247#define CMSDK_TIMER_INTCLEAR_Msk (0x01UL )
286#define CMSDK_DUALTIMER_LOAD_Pos 0
287#define CMSDK_DUALTIMER_LOAD_Msk (0xFFFFFFFFUL )
290#define CMSDK_DUALTIMER_VALUE_Pos 0
291#define CMSDK_DUALTIMER_VALUE_Msk (0xFFFFFFFFUL )
294#define CMSDK_DUALTIMER_CTRL_EN_Pos 7
295#define CMSDK_DUALTIMER_CTRL_EN_Msk (0x1UL << CMSDK_DUALTIMER_CTRL_EN_Pos)
297#define CMSDK_DUALTIMER_CTRL_MODE_Pos 6
298#define CMSDK_DUALTIMER_CTRL_MODE_Msk (0x1UL << CMSDK_DUALTIMER_CTRL_MODE_Pos)
300#define CMSDK_DUALTIMER_CTRL_INTEN_Pos 5
301#define CMSDK_DUALTIMER_CTRL_INTEN_Msk (0x1UL << CMSDK_DUALTIMER_CTRL_INTEN_Pos)
303#define CMSDK_DUALTIMER_CTRL_PRESCALE_Pos 2
304#define CMSDK_DUALTIMER_CTRL_PRESCALE_Msk (0x3UL << CMSDK_DUALTIMER_CTRL_PRESCALE_Pos)
306#define CMSDK_DUALTIMER_CTRL_SIZE_Pos 1
307#define CMSDK_DUALTIMER_CTRL_SIZE_Msk (0x1UL << CMSDK_DUALTIMER_CTRL_SIZE_Pos)
309#define CMSDK_DUALTIMER_CTRL_ONESHOOT_Pos 0
310#define CMSDK_DUALTIMER_CTRL_ONESHOOT_Msk (0x1UL )
313#define CMSDK_DUALTIMER_INTCLR_Pos 0
314#define CMSDK_DUALTIMER_INTCLR_Msk (0x1UL )
317#define CMSDK_DUALTIMER_RIS_Pos 0
318#define CMSDK_DUALTIMER_RIS_Msk (0x1UL )
321#define CMSDK_DUALTIMER_MIS_Pos 0
322#define CMSDK_DUALTIMER_MIS_Msk (0x1UL )
325#define CMSDK_DUALTIMER_BGLOAD_Pos 0
326#define CMSDK_DUALTIMER_BGLOAD_Msk (0xFFFFFFFFUL )
355#define CMSDK_GPIO_DATA_Pos 0
356#define CMSDK_GPIO_DATA_Msk (0xFFFFUL )
359#define CMSDK_GPIO_DATAOUT_Pos 0
360#define CMSDK_GPIO_DATAOUT_Msk (0xFFFFUL )
363#define CMSDK_GPIO_OUTENSET_Pos 0
364#define CMSDK_GPIO_OUTENSET_Msk (0xFFFFUL )
367#define CMSDK_GPIO_OUTENCLR_Pos 0
368#define CMSDK_GPIO_OUTENCLR_Msk (0xFFFFUL )
371#define CMSDK_GPIO_ALTFUNCSET_Pos 0
372#define CMSDK_GPIO_ALTFUNCSET_Msk (0xFFFFUL )
375#define CMSDK_GPIO_ALTFUNCCLR_Pos 0
376#define CMSDK_GPIO_ALTFUNCCLR_Msk (0xFFFFUL )
379#define CMSDK_GPIO_INTENSET_Pos 0
380#define CMSDK_GPIO_INTENSET_Msk (0xFFFFUL )
383#define CMSDK_GPIO_INTENCLR_Pos 0
384#define CMSDK_GPIO_INTENCLR_Msk (0xFFFFUL )
387#define CMSDK_GPIO_INTTYPESET_Pos 0
388#define CMSDK_GPIO_INTTYPESET_Msk (0xFFFFUL )
391#define CMSDK_GPIO_INTTYPECLR_Pos 0
392#define CMSDK_GPIO_INTTYPECLR_Msk (0xFFFFUL )
395#define CMSDK_GPIO_INTPOLSET_Pos 0
396#define CMSDK_GPIO_INTPOLSET_Msk (0xFFFFUL )
399#define CMSDK_GPIO_INTPOLCLR_Pos 0
400#define CMSDK_GPIO_INTPOLCLR_Msk (0xFFFFUL )
403#define CMSDK_GPIO_INTSTATUS_Pos 0
404#define CMSDK_GPIO_INTCLEAR_Msk (0xFFUL )
407#define CMSDK_GPIO_INTCLEAR_Pos 0
408#define CMSDK_GPIO_INTCLEAR_Msk (0xFFUL )
411#define CMSDK_GPIO_MASKLOWBYTE_Pos 0
412#define CMSDK_GPIO_MASKLOWBYTE_Msk (0x00FFUL )
415#define CMSDK_GPIO_MASKHIGHBYTE_Pos 0
416#define CMSDK_GPIO_MASKHIGHBYTE_Msk (0xFF00UL )
430#define CMSDK_SYSCON_REMAP_Pos 0
431#define CMSDK_SYSCON_REMAP_Msk (0x1UL )
434#define CMSDK_SYSCON_PMUCTRL_EN_Pos 0
435#define CMSDK_SYSCON_PMUCTRL_EN_Msk (0x1UL )
438#define CMSDK_SYSCON_LOCKUPRST_RESETOP_Pos 0
439#define CMSDK_SYSCON_LOCKUPRST_RESETOP_Msk (0x1UL )
442#define CMSDK_SYSCON_EMICTRL_SIZE_Pos 24
443#define CMSDK_SYSCON_EMICTRL_SIZE_Msk (0x1UL << CMSDK_SYSCON_EMICTRL_SIZE_Pos)
445#define CMSDK_SYSCON_EMICTRL_TACYC_Pos 16
446#define CMSDK_SYSCON_EMICTRL_TACYC_Msk (0x7UL << CMSDK_SYSCON_EMICTRL_TACYC_Pos)
448#define CMSDK_SYSCON_EMICTRL_WCYC_Pos 8
449#define CMSDK_SYSCON_EMICTRL_WCYC_Msk (0x3UL << CMSDK_SYSCON_EMICTRL_WCYC_Pos)
451#define CMSDK_SYSCON_EMICTRL_RCYC_Pos 0
452#define CMSDK_SYSCON_EMICTRL_RCYC_Msk (0x7UL )
455#define CMSDK_SYSCON_RSTINFO_LOCKUPRESET_Pos 2
456#define CMSDK_SYSCON_RSTINFO_LOCKUPRESET_Msk (0x1UL << CMSDK_SYSCON_RSTINFO_LOCKUPRESET_Pos)
458#define CMSDK_SYSCON_RSTINFO_WDOGRESETREQ_Pos 1
459#define CMSDK_SYSCON_RSTINFO_WDOGRESETREQ_Msk (0x1UL << CMSDK_SYSCON_RSTINFO_WDOGRESETREQ_Pos)
461#define CMSDK_SYSCON_RSTINFO_SYSRESETREQ_Pos 0
462#define CMSDK_SYSCON_RSTINFO_SYSRESETREQ_Msk (0x1UL )
483#define CMSDK_Watchdog_LOAD_Pos 0
484#define CMSDK_Watchdog_LOAD_Msk (0xFFFFFFFFUL )
487#define CMSDK_Watchdog_VALUE_Pos 0
488#define CMSDK_Watchdog_VALUE_Msk (0xFFFFFFFFUL )
491#define CMSDK_Watchdog_CTRL_RESEN_Pos 1
492#define CMSDK_Watchdog_CTRL_RESEN_Msk (0x1UL << CMSDK_Watchdog_CTRL_RESEN_Pos)
494#define CMSDK_Watchdog_CTRL_INTEN_Pos 0
495#define CMSDK_Watchdog_CTRL_INTEN_Msk (0x1UL )
498#define CMSDK_Watchdog_INTCLR_Pos 0
499#define CMSDK_Watchdog_INTCLR_Msk (0x1UL )
502#define CMSDK_Watchdog_RAWINTSTAT_Pos 0
503#define CMSDK_Watchdog_RAWINTSTAT_Msk (0x1UL )
506#define CMSDK_Watchdog_MASKINTSTAT_Pos 0
507#define CMSDK_Watchdog_MASKINTSTAT_Msk (0x1UL )
510#define CMSDK_Watchdog_LOCK_Pos 0
511#define CMSDK_Watchdog_LOCK_Msk (0x1UL )
514#define CMSDK_Watchdog_INTEGTESTEN_Pos 0
515#define CMSDK_Watchdog_INTEGTESTEN_Msk (0x1UL )
518#define CMSDK_Watchdog_INTEGTESTOUTSET_Pos 1
519#define CMSDK_Watchdog_INTEGTESTOUTSET_Msk (0x1UL )
524#if defined (__CC_ARM)
526#elif defined (__ICCARM__)
528#elif (__ARMCC_VERSION >= 6010050)
529 #pragma clang diagnostic pop
530#elif defined (__GNUC__)
532#elif defined (__TMS470__)
534#elif defined (__TASKING__)
535 #pragma warning restore
536#elif defined (__CSMC__)
539 #warning Not supported compiler type
550#define CMSDK_FLASH_BASE (0x00000000UL)
551#define CMSDK_SRAM_BASE (0x20000000UL)
552#define CMSDK_PERIPH_BASE (0x40000000UL)
554#define CMSDK_RAM_BASE (0x20000000UL)
555#define CMSDK_APB_BASE (0x40000000UL)
556#define CMSDK_AHB_BASE (0x40010000UL)
559#define CMSDK_TIMER0_BASE (CMSDK_APB_BASE + 0x0000UL)
560#define CMSDK_TIMER1_BASE (CMSDK_APB_BASE + 0x1000UL)
561#define CMSDK_DUALTIMER_BASE (CMSDK_APB_BASE + 0x2000UL)
562#define CMSDK_DUALTIMER_1_BASE (CMSDK_DUALTIMER_BASE)
563#define CMSDK_DUALTIMER_2_BASE (CMSDK_DUALTIMER_BASE + 0x20UL)
564#define CMSDK_UART0_BASE (CMSDK_APB_BASE + 0x4000UL)
565#define CMSDK_UART1_BASE (CMSDK_APB_BASE + 0x5000UL)
566#define CMSDK_UART2_BASE (CMSDK_APB_BASE + 0x6000UL)
567#define CMSDK_WATCHDOG_BASE (CMSDK_APB_BASE + 0x8000UL)
570#define CMSDK_GPIO0_BASE (CMSDK_AHB_BASE + 0x0000UL)
571#define CMSDK_GPIO1_BASE (CMSDK_AHB_BASE + 0x1000UL)
572#define CMSDK_SYSCTRL_BASE (CMSDK_AHB_BASE + 0xF000UL)
579#define CMSDK_UART0 ((CMSDK_UART_TypeDef *) CMSDK_UART0_BASE )
580#define CMSDK_UART1 ((CMSDK_UART_TypeDef *) CMSDK_UART1_BASE )
581#define CMSDK_UART2 ((CMSDK_UART_TypeDef *) CMSDK_UART2_BASE )
582#define CMSDK_TIMER0 ((CMSDK_TIMER_TypeDef *) CMSDK_TIMER0_BASE )
583#define CMSDK_TIMER1 ((CMSDK_TIMER_TypeDef *) CMSDK_TIMER1_BASE )
584#define CMSDK_DUALTIMER ((CMSDK_DUALTIMER_BOTH_TypeDef *) CMSDK_DUALTIMER_BASE )
585#define CMSDK_DUALTIMER1 ((CMSDK_DUALTIMER_SINGLE_TypeDef *) CMSDK_DUALTIMER_1_BASE )
586#define CMSDK_DUALTIMER2 ((CMSDK_DUALTIMER_SINGLE_TypeDef *) CMSDK_DUALTIMER_2_BASE )
587#define CMSDK_WATCHDOG ((CMSDK_WATCHDOG_TypeDef *) CMSDK_WATCHDOG_BASE )
588#define CMSDK_GPIO0 ((CMSDK_GPIO_TypeDef *) CMSDK_GPIO0_BASE )
589#define CMSDK_GPIO1 ((CMSDK_GPIO_TypeDef *) CMSDK_GPIO1_BASE )
590#define CMSDK_SYSCON ((CMSDK_SYSCON_TypeDef *) CMSDK_SYSCTRL_BASE )
@ GPIO2_IRQn
Definition CMSDK_CM4_FP.h:76
@ PendSV_IRQn
Definition CMSDK_CM4_FP.h:56
@ UART4TX_IRQn
Definition CMSDK_CM4_FP.h:81
@ TIMER1_IRQn
Definition CMSDK_CM4_FP.h:69
@ UART2RX_IRQn
Definition CMSDK_CM4_FP.h:64
@ I2S_IRQn
Definition CMSDK_CM4_FP.h:74
@ UART4RX_IRQn
Definition CMSDK_CM4_FP.h:80
@ UART2TX_IRQn
Definition CMSDK_CM4_FP.h:65
@ TIMER0_IRQn
Definition CMSDK_CM4_FP.h:68
@ UART3TX_IRQn
Definition CMSDK_CM4_FP.h:79
@ GPIO0_6_IRQn
Definition CMSDK_CM4_FP.h:90
@ MemoryManagement_IRQn
Definition CMSDK_CM4_FP.h:51
@ SVCall_IRQn
Definition CMSDK_CM4_FP.h:54
@ UART0TX_IRQn
Definition CMSDK_CM4_FP.h:61
@ GPIO0_2_IRQn
Definition CMSDK_CM4_FP.h:86
@ GPIO3_IRQn
Definition CMSDK_CM4_FP.h:77
@ GPIO1ALL_IRQn
Definition CMSDK_CM4_FP.h:67
@ UsageFault_IRQn
Definition CMSDK_CM4_FP.h:53
@ UART_0_1_2_OVF_IRQn
Definition CMSDK_CM4_FP.h:72
@ SysTick_IRQn
Definition CMSDK_CM4_FP.h:57
@ GPIO0_3_IRQn
Definition CMSDK_CM4_FP.h:87
@ ETHERNET_IRQn
Definition CMSDK_CM4_FP.h:73
@ UART1TX_IRQn
Definition CMSDK_CM4_FP.h:63
@ BusFault_IRQn
Definition CMSDK_CM4_FP.h:52
@ DebugMonitor_IRQn
Definition CMSDK_CM4_FP.h:55
@ GPIO0ALL_IRQn
Definition CMSDK_CM4_FP.h:66
@ GPIO0_5_IRQn
Definition CMSDK_CM4_FP.h:89
@ UART0RX_IRQn
Definition CMSDK_CM4_FP.h:60
@ HardFault_IRQn
Definition CMSDK_CM4_FP.h:50
@ GPIO0_4_IRQn
Definition CMSDK_CM4_FP.h:88
@ DUALTIMER_IRQn
Definition CMSDK_CM4_FP.h:70
@ GPIO0_1_IRQn
Definition CMSDK_CM4_FP.h:85
@ TOUCHSCREEN_IRQn
Definition CMSDK_CM4_FP.h:75
@ SPI_3_4_IRQn
Definition CMSDK_CM4_FP.h:83
@ UART1RX_IRQn
Definition CMSDK_CM4_FP.h:62
@ NonMaskableInt_IRQn
Definition CMSDK_CM4_FP.h:49
@ GPIO0_7_IRQn
Definition CMSDK_CM4_FP.h:91
@ SPI_2_IRQn
Definition CMSDK_CM4_FP.h:82
@ SPI_0_1_IRQn
Definition CMSDK_CM4_FP.h:71
@ UART3RX_IRQn
Definition CMSDK_CM4_FP.h:78
@ GPIO0_0_IRQn
Definition CMSDK_CM4_FP.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_CM4 Device.