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 0x0000U
124#define __MPU_PRESENT 1
125#define __NVIC_PRIO_BITS 3
126#define __Vendor_SysTickConfig 0
127#define __FPU_PRESENT 0
129#define __ICACHE_PRESENT 1
130#define __DCACHE_PRESENT 1
155#define CMSDK_UART_DATA_Pos 0
156#define CMSDK_UART_DATA_Msk (0xFFUL )
159#define CMSDK_UART_STATE_RXOR_Pos 3
160#define CMSDK_UART_STATE_RXOR_Msk (0x1UL << CMSDK_UART_STATE_RXOR_Pos)
162#define CMSDK_UART_STATE_TXOR_Pos 2
163#define CMSDK_UART_STATE_TXOR_Msk (0x1UL << CMSDK_UART_STATE_TXOR_Pos)
165#define CMSDK_UART_STATE_RXBF_Pos 1
166#define CMSDK_UART_STATE_RXBF_Msk (0x1UL << CMSDK_UART_STATE_RXBF_Pos)
168#define CMSDK_UART_STATE_TXBF_Pos 0
169#define CMSDK_UART_STATE_TXBF_Msk (0x1UL )
172#define CMSDK_UART_CTRL_HSTM_Pos 6
173#define CMSDK_UART_CTRL_HSTM_Msk (0x01UL << CMSDK_UART_CTRL_HSTM_Pos)
175#define CMSDK_UART_CTRL_RXORIRQEN_Pos 5
176#define CMSDK_UART_CTRL_RXORIRQEN_Msk (0x01UL << CMSDK_UART_CTRL_RXORIRQEN_Pos)
178#define CMSDK_UART_CTRL_TXORIRQEN_Pos 4
179#define CMSDK_UART_CTRL_TXORIRQEN_Msk (0x01UL << CMSDK_UART_CTRL_TXORIRQEN_Pos)
181#define CMSDK_UART_CTRL_RXIRQEN_Pos 3
182#define CMSDK_UART_CTRL_RXIRQEN_Msk (0x01UL << CMSDK_UART_CTRL_RXIRQEN_Pos)
184#define CMSDK_UART_CTRL_TXIRQEN_Pos 2
185#define CMSDK_UART_CTRL_TXIRQEN_Msk (0x01UL << CMSDK_UART_CTRL_TXIRQEN_Pos)
187#define CMSDK_UART_CTRL_RXEN_Pos 1
188#define CMSDK_UART_CTRL_RXEN_Msk (0x01UL << CMSDK_UART_CTRL_RXEN_Pos)
190#define CMSDK_UART_CTRL_TXEN_Pos 0
191#define CMSDK_UART_CTRL_TXEN_Msk (0x01UL )
193#define CMSDK_UART_INTSTATUS_RXORIRQ_Pos 3
194#define CMSDK_UART_CTRL_RXORIRQ_Msk (0x01UL << CMSDK_UART_INTSTATUS_RXORIRQ_Pos)
196#define CMSDK_UART_CTRL_TXORIRQ_Pos 2
197#define CMSDK_UART_CTRL_TXORIRQ_Msk (0x01UL << CMSDK_UART_CTRL_TXORIRQ_Pos)
199#define CMSDK_UART_CTRL_RXIRQ_Pos 1
200#define CMSDK_UART_CTRL_RXIRQ_Msk (0x01UL << CMSDK_UART_CTRL_RXIRQ_Pos)
202#define CMSDK_UART_CTRL_TXIRQ_Pos 0
203#define CMSDK_UART_CTRL_TXIRQ_Msk (0x01UL )
206#define CMSDK_UART_BAUDDIV_Pos 0
207#define CMSDK_UART_BAUDDIV_Msk (0xFFFFFUL )
224#define CMSDK_TIMER_CTRL_IRQEN_Pos 3
225#define CMSDK_TIMER_CTRL_IRQEN_Msk (0x01UL << CMSDK_TIMER_CTRL_IRQEN_Pos)
227#define CMSDK_TIMER_CTRL_SELEXTCLK_Pos 2
228#define CMSDK_TIMER_CTRL_SELEXTCLK_Msk (0x01UL << CMSDK_TIMER_CTRL_SELEXTCLK_Pos)
230#define CMSDK_TIMER_CTRL_SELEXTEN_Pos 1
231#define CMSDK_TIMER_CTRL_SELEXTEN_Msk (0x01UL << CMSDK_TIMER_CTRL_SELEXTEN_Pos)
233#define CMSDK_TIMER_CTRL_EN_Pos 0
234#define CMSDK_TIMER_CTRL_EN_Msk (0x01UL )
237#define CMSDK_TIMER_VAL_CURRENT_Pos 0
238#define CMSDK_TIMER_VAL_CURRENT_Msk (0xFFFFFFFFUL )
241#define CMSDK_TIMER_RELOAD_VAL_Pos 0
242#define CMSDK_TIMER_RELOAD_VAL_Msk (0xFFFFFFFFUL )
245#define CMSDK_TIMER_INTSTATUS_Pos 0
246#define CMSDK_TIMER_INTSTATUS_Msk (0x01UL )
249#define CMSDK_TIMER_INTCLEAR_Pos 0
250#define CMSDK_TIMER_INTCLEAR_Msk (0x01UL )
289#define CMSDK_DUALTIMER_LOAD_Pos 0
290#define CMSDK_DUALTIMER_LOAD_Msk (0xFFFFFFFFUL )
293#define CMSDK_DUALTIMER_VALUE_Pos 0
294#define CMSDK_DUALTIMER_VALUE_Msk (0xFFFFFFFFUL )
297#define CMSDK_DUALTIMER_CTRL_EN_Pos 7
298#define CMSDK_DUALTIMER_CTRL_EN_Msk (0x1UL << CMSDK_DUALTIMER_CTRL_EN_Pos)
300#define CMSDK_DUALTIMER_CTRL_MODE_Pos 6
301#define CMSDK_DUALTIMER_CTRL_MODE_Msk (0x1UL << CMSDK_DUALTIMER_CTRL_MODE_Pos)
303#define CMSDK_DUALTIMER_CTRL_INTEN_Pos 5
304#define CMSDK_DUALTIMER_CTRL_INTEN_Msk (0x1UL << CMSDK_DUALTIMER_CTRL_INTEN_Pos)
306#define CMSDK_DUALTIMER_CTRL_PRESCALE_Pos 2
307#define CMSDK_DUALTIMER_CTRL_PRESCALE_Msk (0x3UL << CMSDK_DUALTIMER_CTRL_PRESCALE_Pos)
309#define CMSDK_DUALTIMER_CTRL_SIZE_Pos 1
310#define CMSDK_DUALTIMER_CTRL_SIZE_Msk (0x1UL << CMSDK_DUALTIMER_CTRL_SIZE_Pos)
312#define CMSDK_DUALTIMER_CTRL_ONESHOOT_Pos 0
313#define CMSDK_DUALTIMER_CTRL_ONESHOOT_Msk (0x1UL )
316#define CMSDK_DUALTIMER_INTCLR_Pos 0
317#define CMSDK_DUALTIMER_INTCLR_Msk (0x1UL )
320#define CMSDK_DUALTIMER_RIS_Pos 0
321#define CMSDK_DUALTIMER_RIS_Msk (0x1UL )
324#define CMSDK_DUALTIMER_MIS_Pos 0
325#define CMSDK_DUALTIMER_MIS_Msk (0x1UL )
328#define CMSDK_DUALTIMER_BGLOAD_Pos 0
329#define CMSDK_DUALTIMER_BGLOAD_Msk (0xFFFFFFFFUL )
358#define CMSDK_GPIO_DATA_Pos 0
359#define CMSDK_GPIO_DATA_Msk (0xFFFFUL )
362#define CMSDK_GPIO_DATAOUT_Pos 0
363#define CMSDK_GPIO_DATAOUT_Msk (0xFFFFUL )
366#define CMSDK_GPIO_OUTENSET_Pos 0
367#define CMSDK_GPIO_OUTENSET_Msk (0xFFFFUL )
370#define CMSDK_GPIO_OUTENCLR_Pos 0
371#define CMSDK_GPIO_OUTENCLR_Msk (0xFFFFUL )
374#define CMSDK_GPIO_ALTFUNCSET_Pos 0
375#define CMSDK_GPIO_ALTFUNCSET_Msk (0xFFFFUL )
378#define CMSDK_GPIO_ALTFUNCCLR_Pos 0
379#define CMSDK_GPIO_ALTFUNCCLR_Msk (0xFFFFUL )
382#define CMSDK_GPIO_INTENSET_Pos 0
383#define CMSDK_GPIO_INTENSET_Msk (0xFFFFUL )
386#define CMSDK_GPIO_INTENCLR_Pos 0
387#define CMSDK_GPIO_INTENCLR_Msk (0xFFFFUL )
390#define CMSDK_GPIO_INTTYPESET_Pos 0
391#define CMSDK_GPIO_INTTYPESET_Msk (0xFFFFUL )
394#define CMSDK_GPIO_INTTYPECLR_Pos 0
395#define CMSDK_GPIO_INTTYPECLR_Msk (0xFFFFUL )
398#define CMSDK_GPIO_INTPOLSET_Pos 0
399#define CMSDK_GPIO_INTPOLSET_Msk (0xFFFFUL )
402#define CMSDK_GPIO_INTPOLCLR_Pos 0
403#define CMSDK_GPIO_INTPOLCLR_Msk (0xFFFFUL )
406#define CMSDK_GPIO_INTSTATUS_Pos 0
407#define CMSDK_GPIO_INTCLEAR_Msk (0xFFUL )
410#define CMSDK_GPIO_INTCLEAR_Pos 0
411#define CMSDK_GPIO_INTCLEAR_Msk (0xFFUL )
414#define CMSDK_GPIO_MASKLOWBYTE_Pos 0
415#define CMSDK_GPIO_MASKLOWBYTE_Msk (0x00FFUL )
418#define CMSDK_GPIO_MASKHIGHBYTE_Pos 0
419#define CMSDK_GPIO_MASKHIGHBYTE_Msk (0xFF00UL )
433#define CMSDK_SYSCON_REMAP_Pos 0
434#define CMSDK_SYSCON_REMAP_Msk (0x1UL )
437#define CMSDK_SYSCON_PMUCTRL_EN_Pos 0
438#define CMSDK_SYSCON_PMUCTRL_EN_Msk (0x1UL )
441#define CMSDK_SYSCON_LOCKUPRST_RESETOP_Pos 0
442#define CMSDK_SYSCON_LOCKUPRST_RESETOP_Msk (0x1UL )
445#define CMSDK_SYSCON_EMICTRL_SIZE_Pos 24
446#define CMSDK_SYSCON_EMICTRL_SIZE_Msk (0x1UL << CMSDK_SYSCON_EMICTRL_SIZE_Pos)
448#define CMSDK_SYSCON_EMICTRL_TACYC_Pos 16
449#define CMSDK_SYSCON_EMICTRL_TACYC_Msk (0x7UL << CMSDK_SYSCON_EMICTRL_TACYC_Pos)
451#define CMSDK_SYSCON_EMICTRL_WCYC_Pos 8
452#define CMSDK_SYSCON_EMICTRL_WCYC_Msk (0x3UL << CMSDK_SYSCON_EMICTRL_WCYC_Pos)
454#define CMSDK_SYSCON_EMICTRL_RCYC_Pos 0
455#define CMSDK_SYSCON_EMICTRL_RCYC_Msk (0x7UL )
458#define CMSDK_SYSCON_RSTINFO_LOCKUPRESET_Pos 2
459#define CMSDK_SYSCON_RSTINFO_LOCKUPRESET_Msk (0x1UL << CMSDK_SYSCON_RSTINFO_LOCKUPRESET_Pos)
461#define CMSDK_SYSCON_RSTINFO_WDOGRESETREQ_Pos 1
462#define CMSDK_SYSCON_RSTINFO_WDOGRESETREQ_Msk (0x1UL << CMSDK_SYSCON_RSTINFO_WDOGRESETREQ_Pos)
464#define CMSDK_SYSCON_RSTINFO_SYSRESETREQ_Pos 0
465#define CMSDK_SYSCON_RSTINFO_SYSRESETREQ_Msk (0x1UL )
486#define CMSDK_Watchdog_LOAD_Pos 0
487#define CMSDK_Watchdog_LOAD_Msk (0xFFFFFFFFUL )
490#define CMSDK_Watchdog_VALUE_Pos 0
491#define CMSDK_Watchdog_VALUE_Msk (0xFFFFFFFFUL )
494#define CMSDK_Watchdog_CTRL_RESEN_Pos 1
495#define CMSDK_Watchdog_CTRL_RESEN_Msk (0x1UL << CMSDK_Watchdog_CTRL_RESEN_Pos)
497#define CMSDK_Watchdog_CTRL_INTEN_Pos 0
498#define CMSDK_Watchdog_CTRL_INTEN_Msk (0x1UL )
501#define CMSDK_Watchdog_INTCLR_Pos 0
502#define CMSDK_Watchdog_INTCLR_Msk (0x1UL )
505#define CMSDK_Watchdog_RAWINTSTAT_Pos 0
506#define CMSDK_Watchdog_RAWINTSTAT_Msk (0x1UL )
509#define CMSDK_Watchdog_MASKINTSTAT_Pos 0
510#define CMSDK_Watchdog_MASKINTSTAT_Msk (0x1UL )
513#define CMSDK_Watchdog_LOCK_Pos 0
514#define CMSDK_Watchdog_LOCK_Msk (0x1UL )
517#define CMSDK_Watchdog_INTEGTESTEN_Pos 0
518#define CMSDK_Watchdog_INTEGTESTEN_Msk (0x1UL )
521#define CMSDK_Watchdog_INTEGTESTOUTSET_Pos 1
522#define CMSDK_Watchdog_INTEGTESTOUTSET_Msk (0x1UL )
527#if defined (__CC_ARM)
529#elif defined (__ICCARM__)
531#elif (__ARMCC_VERSION >= 6010050)
532 #pragma clang diagnostic pop
533#elif defined (__GNUC__)
535#elif defined (__TMS470__)
537#elif defined (__TASKING__)
538 #pragma warning restore
539#elif defined (__CSMC__)
542 #warning Not supported compiler type
553#define CMSDK_FLASH_BASE (0x00000000UL)
554#define CMSDK_SRAM_BASE (0x20000000UL)
555#define CMSDK_PERIPH_BASE (0x40000000UL)
557#define CMSDK_RAM_BASE (0x20000000UL)
558#define CMSDK_APB_BASE (0x40000000UL)
559#define CMSDK_AHB_BASE (0x40010000UL)
562#define CMSDK_TIMER0_BASE (CMSDK_APB_BASE + 0x0000UL)
563#define CMSDK_TIMER1_BASE (CMSDK_APB_BASE + 0x1000UL)
564#define CMSDK_DUALTIMER_BASE (CMSDK_APB_BASE + 0x2000UL)
565#define CMSDK_DUALTIMER_1_BASE (CMSDK_DUALTIMER_BASE)
566#define CMSDK_DUALTIMER_2_BASE (CMSDK_DUALTIMER_BASE + 0x20UL)
567#define CMSDK_UART0_BASE (CMSDK_APB_BASE + 0x4000UL)
568#define CMSDK_UART1_BASE (CMSDK_APB_BASE + 0x5000UL)
569#define CMSDK_UART2_BASE (CMSDK_APB_BASE + 0x6000UL)
570#define CMSDK_WATCHDOG_BASE (CMSDK_APB_BASE + 0x8000UL)
573#define CMSDK_GPIO0_BASE (CMSDK_AHB_BASE + 0x0000UL)
574#define CMSDK_GPIO1_BASE (CMSDK_AHB_BASE + 0x1000UL)
575#define CMSDK_SYSCTRL_BASE (CMSDK_AHB_BASE + 0xF000UL)
582#define CMSDK_UART0 ((CMSDK_UART_TypeDef *) CMSDK_UART0_BASE )
583#define CMSDK_UART1 ((CMSDK_UART_TypeDef *) CMSDK_UART1_BASE )
584#define CMSDK_UART2 ((CMSDK_UART_TypeDef *) CMSDK_UART2_BASE )
585#define CMSDK_TIMER0 ((CMSDK_TIMER_TypeDef *) CMSDK_TIMER0_BASE )
586#define CMSDK_TIMER1 ((CMSDK_TIMER_TypeDef *) CMSDK_TIMER1_BASE )
587#define CMSDK_DUALTIMER ((CMSDK_DUALTIMER_BOTH_TypeDef *) CMSDK_DUALTIMER_BASE )
588#define CMSDK_DUALTIMER1 ((CMSDK_DUALTIMER_SINGLE_TypeDef *) CMSDK_DUALTIMER_1_BASE )
589#define CMSDK_DUALTIMER2 ((CMSDK_DUALTIMER_SINGLE_TypeDef *) CMSDK_DUALTIMER_2_BASE )
590#define CMSDK_WATCHDOG ((CMSDK_WATCHDOG_TypeDef *) CMSDK_WATCHDOG_BASE )
591#define CMSDK_GPIO0 ((CMSDK_GPIO_TypeDef *) CMSDK_GPIO0_BASE )
592#define CMSDK_GPIO1 ((CMSDK_GPIO_TypeDef *) CMSDK_GPIO1_BASE )
593#define CMSDK_SYSCON ((CMSDK_SYSCON_TypeDef *) CMSDK_SYSCTRL_BASE )
@ GPIO2_IRQn
Definition CMSDK_CM7.h:76
@ PendSV_IRQn
Definition CMSDK_CM7.h:56
@ UART4TX_IRQn
Definition CMSDK_CM7.h:81
@ TIMER1_IRQn
Definition CMSDK_CM7.h:69
@ UART2RX_IRQn
Definition CMSDK_CM7.h:64
@ I2S_IRQn
Definition CMSDK_CM7.h:74
@ UART4RX_IRQn
Definition CMSDK_CM7.h:80
@ UART2TX_IRQn
Definition CMSDK_CM7.h:65
@ TIMER0_IRQn
Definition CMSDK_CM7.h:68
@ UART3TX_IRQn
Definition CMSDK_CM7.h:79
@ GPIO0_6_IRQn
Definition CMSDK_CM7.h:90
@ MemoryManagement_IRQn
Definition CMSDK_CM7.h:51
@ SVCall_IRQn
Definition CMSDK_CM7.h:54
@ UART0TX_IRQn
Definition CMSDK_CM7.h:61
@ GPIO0_2_IRQn
Definition CMSDK_CM7.h:86
@ GPIO3_IRQn
Definition CMSDK_CM7.h:77
@ GPIO1ALL_IRQn
Definition CMSDK_CM7.h:67
@ UsageFault_IRQn
Definition CMSDK_CM7.h:53
@ UART_0_1_2_OVF_IRQn
Definition CMSDK_CM7.h:72
@ SysTick_IRQn
Definition CMSDK_CM7.h:57
@ GPIO0_3_IRQn
Definition CMSDK_CM7.h:87
@ ETHERNET_IRQn
Definition CMSDK_CM7.h:73
@ UART1TX_IRQn
Definition CMSDK_CM7.h:63
@ BusFault_IRQn
Definition CMSDK_CM7.h:52
@ DebugMonitor_IRQn
Definition CMSDK_CM7.h:55
@ GPIO0ALL_IRQn
Definition CMSDK_CM7.h:66
@ GPIO0_5_IRQn
Definition CMSDK_CM7.h:89
@ UART0RX_IRQn
Definition CMSDK_CM7.h:60
@ HardFault_IRQn
Definition CMSDK_CM7.h:50
@ GPIO0_4_IRQn
Definition CMSDK_CM7.h:88
@ DUALTIMER_IRQn
Definition CMSDK_CM7.h:70
@ GPIO0_1_IRQn
Definition CMSDK_CM7.h:85
@ TOUCHSCREEN_IRQn
Definition CMSDK_CM7.h:75
@ SPI_3_4_IRQn
Definition CMSDK_CM7.h:83
@ UART1RX_IRQn
Definition CMSDK_CM7.h:62
@ NonMaskableInt_IRQn
Definition CMSDK_CM7.h:49
@ GPIO0_7_IRQn
Definition CMSDK_CM7.h:91
@ SPI_2_IRQn
Definition CMSDK_CM7.h:82
@ SPI_0_1_IRQn
Definition CMSDK_CM7.h:71
@ UART3RX_IRQn
Definition CMSDK_CM7.h:78
@ GPIO0_0_IRQn
Definition CMSDK_CM7.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_CM7 Device.