|
-
-
- #ifndef _mk20dx128_h_
- #define _mk20dx128_h_
-
-
-
-
-
-
-
-
- #if (F_CPU == 96000000)
- #define F_BUS 48000000
- #define F_MEM 24000000
- #elif (F_CPU == 48000000)
- #define F_BUS 48000000
- #define F_MEM 24000000
- #elif (F_CPU == 24000000)
- #define F_BUS 24000000
- #define F_MEM 24000000
- #endif
-
-
- #ifndef NULL
- #define NULL ((void *)0)
- #endif
-
- #include <stdint.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
-
-
- #define PORTA_PCR0 *(volatile uint32_t *)0x40049000
- #define PORT_PCR_ISF (uint32_t)0x01000000
- #define PORT_PCR_IRQC(n) (uint32_t)(((n) & 15) << 16)
- #define PORT_PCR_IRQC_MASK (uint32_t)0x000F0000
- #define PORT_PCR_LK (uint32_t)0x00008000
- #define PORT_PCR_MUX(n) (uint32_t)(((n) & 7) << 8)
- #define PORT_PCR_MUX_MASK (uint32_t)0x00000700
- #define PORT_PCR_DSE (uint32_t)0x00000040
- #define PORT_PCR_ODE (uint32_t)0x00000020
- #define PORT_PCR_PFE (uint32_t)0x00000010
- #define PORT_PCR_SRE (uint32_t)0x00000004
- #define PORT_PCR_PE (uint32_t)0x00000002
- #define PORT_PCR_PS (uint32_t)0x00000001
- #define PORTA_PCR1 *(volatile uint32_t *)0x40049004
- #define PORTA_PCR2 *(volatile uint32_t *)0x40049008
- #define PORTA_PCR3 *(volatile uint32_t *)0x4004900C
- #define PORTA_PCR4 *(volatile uint32_t *)0x40049010
- #define PORTA_PCR5 *(volatile uint32_t *)0x40049014
- #define PORTA_PCR6 *(volatile uint32_t *)0x40049018
- #define PORTA_PCR7 *(volatile uint32_t *)0x4004901C
- #define PORTA_PCR8 *(volatile uint32_t *)0x40049020
- #define PORTA_PCR9 *(volatile uint32_t *)0x40049024
- #define PORTA_PCR10 *(volatile uint32_t *)0x40049028
- #define PORTA_PCR11 *(volatile uint32_t *)0x4004902C
- #define PORTA_PCR12 *(volatile uint32_t *)0x40049030
- #define PORTA_PCR13 *(volatile uint32_t *)0x40049034
- #define PORTA_PCR14 *(volatile uint32_t *)0x40049038
- #define PORTA_PCR15 *(volatile uint32_t *)0x4004903C
- #define PORTA_PCR16 *(volatile uint32_t *)0x40049040
- #define PORTA_PCR17 *(volatile uint32_t *)0x40049044
- #define PORTA_PCR18 *(volatile uint32_t *)0x40049048
- #define PORTA_PCR19 *(volatile uint32_t *)0x4004904C
- #define PORTA_PCR20 *(volatile uint32_t *)0x40049050
- #define PORTA_PCR21 *(volatile uint32_t *)0x40049054
- #define PORTA_PCR22 *(volatile uint32_t *)0x40049058
- #define PORTA_PCR23 *(volatile uint32_t *)0x4004905C
- #define PORTA_PCR24 *(volatile uint32_t *)0x40049060
- #define PORTA_PCR25 *(volatile uint32_t *)0x40049064
- #define PORTA_PCR26 *(volatile uint32_t *)0x40049068
- #define PORTA_PCR27 *(volatile uint32_t *)0x4004906C
- #define PORTA_PCR28 *(volatile uint32_t *)0x40049070
- #define PORTA_PCR29 *(volatile uint32_t *)0x40049074
- #define PORTA_PCR30 *(volatile uint32_t *)0x40049078
- #define PORTA_PCR31 *(volatile uint32_t *)0x4004907C
- #define PORTA_GPCLR *(volatile uint32_t *)0x40049080
- #define PORTA_GPCHR *(volatile uint32_t *)0x40049084
- #define PORTA_ISFR *(volatile uint32_t *)0x400490A0
- #define PORTB_PCR0 *(volatile uint32_t *)0x4004A000
- #define PORTB_PCR1 *(volatile uint32_t *)0x4004A004
- #define PORTB_PCR2 *(volatile uint32_t *)0x4004A008
- #define PORTB_PCR3 *(volatile uint32_t *)0x4004A00C
- #define PORTB_PCR4 *(volatile uint32_t *)0x4004A010
- #define PORTB_PCR5 *(volatile uint32_t *)0x4004A014
- #define PORTB_PCR6 *(volatile uint32_t *)0x4004A018
- #define PORTB_PCR7 *(volatile uint32_t *)0x4004A01C
- #define PORTB_PCR8 *(volatile uint32_t *)0x4004A020
- #define PORTB_PCR9 *(volatile uint32_t *)0x4004A024
- #define PORTB_PCR10 *(volatile uint32_t *)0x4004A028
- #define PORTB_PCR11 *(volatile uint32_t *)0x4004A02C
- #define PORTB_PCR12 *(volatile uint32_t *)0x4004A030
- #define PORTB_PCR13 *(volatile uint32_t *)0x4004A034
- #define PORTB_PCR14 *(volatile uint32_t *)0x4004A038
- #define PORTB_PCR15 *(volatile uint32_t *)0x4004A03C
- #define PORTB_PCR16 *(volatile uint32_t *)0x4004A040
- #define PORTB_PCR17 *(volatile uint32_t *)0x4004A044
- #define PORTB_PCR18 *(volatile uint32_t *)0x4004A048
- #define PORTB_PCR19 *(volatile uint32_t *)0x4004A04C
- #define PORTB_PCR20 *(volatile uint32_t *)0x4004A050
- #define PORTB_PCR21 *(volatile uint32_t *)0x4004A054
- #define PORTB_PCR22 *(volatile uint32_t *)0x4004A058
- #define PORTB_PCR23 *(volatile uint32_t *)0x4004A05C
- #define PORTB_PCR24 *(volatile uint32_t *)0x4004A060
- #define PORTB_PCR25 *(volatile uint32_t *)0x4004A064
- #define PORTB_PCR26 *(volatile uint32_t *)0x4004A068
- #define PORTB_PCR27 *(volatile uint32_t *)0x4004A06C
- #define PORTB_PCR28 *(volatile uint32_t *)0x4004A070
- #define PORTB_PCR29 *(volatile uint32_t *)0x4004A074
- #define PORTB_PCR30 *(volatile uint32_t *)0x4004A078
- #define PORTB_PCR31 *(volatile uint32_t *)0x4004A07C
- #define PORTB_GPCLR *(volatile uint32_t *)0x4004A080
- #define PORTB_GPCHR *(volatile uint32_t *)0x4004A084
- #define PORTB_ISFR *(volatile uint32_t *)0x4004A0A0
- #define PORTC_PCR0 *(volatile uint32_t *)0x4004B000
- #define PORTC_PCR1 *(volatile uint32_t *)0x4004B004
- #define PORTC_PCR2 *(volatile uint32_t *)0x4004B008
- #define PORTC_PCR3 *(volatile uint32_t *)0x4004B00C
- #define PORTC_PCR4 *(volatile uint32_t *)0x4004B010
- #define PORTC_PCR5 *(volatile uint32_t *)0x4004B014
- #define PORTC_PCR6 *(volatile uint32_t *)0x4004B018
- #define PORTC_PCR7 *(volatile uint32_t *)0x4004B01C
- #define PORTC_PCR8 *(volatile uint32_t *)0x4004B020
- #define PORTC_PCR9 *(volatile uint32_t *)0x4004B024
- #define PORTC_PCR10 *(volatile uint32_t *)0x4004B028
- #define PORTC_PCR11 *(volatile uint32_t *)0x4004B02C
- #define PORTC_PCR12 *(volatile uint32_t *)0x4004B030
- #define PORTC_PCR13 *(volatile uint32_t *)0x4004B034
- #define PORTC_PCR14 *(volatile uint32_t *)0x4004B038
- #define PORTC_PCR15 *(volatile uint32_t *)0x4004B03C
- #define PORTC_PCR16 *(volatile uint32_t *)0x4004B040
- #define PORTC_PCR17 *(volatile uint32_t *)0x4004B044
- #define PORTC_PCR18 *(volatile uint32_t *)0x4004B048
- #define PORTC_PCR19 *(volatile uint32_t *)0x4004B04C
- #define PORTC_PCR20 *(volatile uint32_t *)0x4004B050
- #define PORTC_PCR21 *(volatile uint32_t *)0x4004B054
- #define PORTC_PCR22 *(volatile uint32_t *)0x4004B058
- #define PORTC_PCR23 *(volatile uint32_t *)0x4004B05C
- #define PORTC_PCR24 *(volatile uint32_t *)0x4004B060
- #define PORTC_PCR25 *(volatile uint32_t *)0x4004B064
- #define PORTC_PCR26 *(volatile uint32_t *)0x4004B068
- #define PORTC_PCR27 *(volatile uint32_t *)0x4004B06C
- #define PORTC_PCR28 *(volatile uint32_t *)0x4004B070
- #define PORTC_PCR29 *(volatile uint32_t *)0x4004B074
- #define PORTC_PCR30 *(volatile uint32_t *)0x4004B078
- #define PORTC_PCR31 *(volatile uint32_t *)0x4004B07C
- #define PORTC_GPCLR *(volatile uint32_t *)0x4004B080
- #define PORTC_GPCHR *(volatile uint32_t *)0x4004B084
- #define PORTC_ISFR *(volatile uint32_t *)0x4004B0A0
- #define PORTD_PCR0 *(volatile uint32_t *)0x4004C000
- #define PORTD_PCR1 *(volatile uint32_t *)0x4004C004
- #define PORTD_PCR2 *(volatile uint32_t *)0x4004C008
- #define PORTD_PCR3 *(volatile uint32_t *)0x4004C00C
- #define PORTD_PCR4 *(volatile uint32_t *)0x4004C010
- #define PORTD_PCR5 *(volatile uint32_t *)0x4004C014
- #define PORTD_PCR6 *(volatile uint32_t *)0x4004C018
- #define PORTD_PCR7 *(volatile uint32_t *)0x4004C01C
- #define PORTD_PCR8 *(volatile uint32_t *)0x4004C020
- #define PORTD_PCR9 *(volatile uint32_t *)0x4004C024
- #define PORTD_PCR10 *(volatile uint32_t *)0x4004C028
- #define PORTD_PCR11 *(volatile uint32_t *)0x4004C02C
- #define PORTD_PCR12 *(volatile uint32_t *)0x4004C030
- #define PORTD_PCR13 *(volatile uint32_t *)0x4004C034
- #define PORTD_PCR14 *(volatile uint32_t *)0x4004C038
- #define PORTD_PCR15 *(volatile uint32_t *)0x4004C03C
- #define PORTD_PCR16 *(volatile uint32_t *)0x4004C040
- #define PORTD_PCR17 *(volatile uint32_t *)0x4004C044
- #define PORTD_PCR18 *(volatile uint32_t *)0x4004C048
- #define PORTD_PCR19 *(volatile uint32_t *)0x4004C04C
- #define PORTD_PCR20 *(volatile uint32_t *)0x4004C050
- #define PORTD_PCR21 *(volatile uint32_t *)0x4004C054
- #define PORTD_PCR22 *(volatile uint32_t *)0x4004C058
- #define PORTD_PCR23 *(volatile uint32_t *)0x4004C05C
- #define PORTD_PCR24 *(volatile uint32_t *)0x4004C060
- #define PORTD_PCR25 *(volatile uint32_t *)0x4004C064
- #define PORTD_PCR26 *(volatile uint32_t *)0x4004C068
- #define PORTD_PCR27 *(volatile uint32_t *)0x4004C06C
- #define PORTD_PCR28 *(volatile uint32_t *)0x4004C070
- #define PORTD_PCR29 *(volatile uint32_t *)0x4004C074
- #define PORTD_PCR30 *(volatile uint32_t *)0x4004C078
- #define PORTD_PCR31 *(volatile uint32_t *)0x4004C07C
- #define PORTD_GPCLR *(volatile uint32_t *)0x4004C080
- #define PORTD_GPCHR *(volatile uint32_t *)0x4004C084
- #define PORTD_ISFR *(volatile uint32_t *)0x4004C0A0
- #define PORTE_PCR0 *(volatile uint32_t *)0x4004D000
- #define PORTE_PCR1 *(volatile uint32_t *)0x4004D004
- #define PORTE_PCR2 *(volatile uint32_t *)0x4004D008
- #define PORTE_PCR3 *(volatile uint32_t *)0x4004D00C
- #define PORTE_PCR4 *(volatile uint32_t *)0x4004D010
- #define PORTE_PCR5 *(volatile uint32_t *)0x4004D014
- #define PORTE_PCR6 *(volatile uint32_t *)0x4004D018
- #define PORTE_PCR7 *(volatile uint32_t *)0x4004D01C
- #define PORTE_PCR8 *(volatile uint32_t *)0x4004D020
- #define PORTE_PCR9 *(volatile uint32_t *)0x4004D024
- #define PORTE_PCR10 *(volatile uint32_t *)0x4004D028
- #define PORTE_PCR11 *(volatile uint32_t *)0x4004D02C
- #define PORTE_PCR12 *(volatile uint32_t *)0x4004D030
- #define PORTE_PCR13 *(volatile uint32_t *)0x4004D034
- #define PORTE_PCR14 *(volatile uint32_t *)0x4004D038
- #define PORTE_PCR15 *(volatile uint32_t *)0x4004D03C
- #define PORTE_PCR16 *(volatile uint32_t *)0x4004D040
- #define PORTE_PCR17 *(volatile uint32_t *)0x4004D044
- #define PORTE_PCR18 *(volatile uint32_t *)0x4004D048
- #define PORTE_PCR19 *(volatile uint32_t *)0x4004D04C
- #define PORTE_PCR20 *(volatile uint32_t *)0x4004D050
- #define PORTE_PCR21 *(volatile uint32_t *)0x4004D054
- #define PORTE_PCR22 *(volatile uint32_t *)0x4004D058
- #define PORTE_PCR23 *(volatile uint32_t *)0x4004D05C
- #define PORTE_PCR24 *(volatile uint32_t *)0x4004D060
- #define PORTE_PCR25 *(volatile uint32_t *)0x4004D064
- #define PORTE_PCR26 *(volatile uint32_t *)0x4004D068
- #define PORTE_PCR27 *(volatile uint32_t *)0x4004D06C
- #define PORTE_PCR28 *(volatile uint32_t *)0x4004D070
- #define PORTE_PCR29 *(volatile uint32_t *)0x4004D074
- #define PORTE_PCR30 *(volatile uint32_t *)0x4004D078
- #define PORTE_PCR31 *(volatile uint32_t *)0x4004D07C
- #define PORTE_GPCLR *(volatile uint32_t *)0x4004D080
- #define PORTE_GPCHR *(volatile uint32_t *)0x4004D084
- #define PORTE_ISFR *(volatile uint32_t *)0x4004D0A0
-
-
- #define SIM_SOPT1 *(volatile uint32_t *)0x40047000
- #define SIM_SOPT1CFG *(volatile uint32_t *)0x40047004
- #define SIM_SOPT2 *(volatile uint32_t *)0x40048004
- #define SIM_SOPT2_USBSRC (uint32_t)0x00040000
- #define SIM_SOPT2_PLLFLLSEL (uint32_t)0x00010000
- #define SIM_SOPT2_TRACECLKSEL (uint32_t)0x00001000
- #define SIM_SOPT2_PTD7PAD (uint32_t)0x00000800
- #define SIM_SOPT2_CLKOUTSEL(n) (uint32_t)(((n) & 7) << 5)
- #define SIM_SOPT2_RTCCLKOUTSEL (uint32_t)0x00000010
- #define SIM_SOPT4 *(volatile uint32_t *)0x4004800C
- #define SIM_SOPT5 *(volatile uint32_t *)0x40048010
- #define SIM_SOPT7 *(volatile uint32_t *)0x40048018
- #define SIM_SDID *(const uint32_t *)0x40048024
- #define SIM_SCGC2 *(volatile uint32_t *)0x4004802C
- #define SIM_SCGC2_DAC0 (uint32_t)0x00001000
- #define SIM_SCGC3 *(volatile uint32_t *)0x40048030
- #define SIM_SCGC3_ADC1 (uint32_t)0x08000000
- #define SIM_SCGC3_FTM2 (uint32_t)0x01000000
- #define SIM_SCGC4 *(volatile uint32_t *)0x40048034
- #define SIM_SCGC4_VREF (uint32_t)0x00100000
- #define SIM_SCGC4_CMP (uint32_t)0x00080000
- #define SIM_SCGC4_USBOTG (uint32_t)0x00040000
- #define SIM_SCGC4_UART2 (uint32_t)0x00001000
- #define SIM_SCGC4_UART1 (uint32_t)0x00000800
- #define SIM_SCGC4_UART0 (uint32_t)0x00000400
- #define SIM_SCGC4_I2C1 (uint32_t)0x00000080
- #define SIM_SCGC4_I2C0 (uint32_t)0x00000040
- #define SIM_SCGC4_CMT (uint32_t)0x00000004
- #define SIM_SCGC4_EWM (uint32_t)0x00000002
- #define SIM_SCGC5 *(volatile uint32_t *)0x40048038
- #define SIM_SCGC5_PORTE (uint32_t)0x00002000
- #define SIM_SCGC5_PORTD (uint32_t)0x00001000
- #define SIM_SCGC5_PORTC (uint32_t)0x00000800
- #define SIM_SCGC5_PORTB (uint32_t)0x00000400
- #define SIM_SCGC5_PORTA (uint32_t)0x00000200
- #define SIM_SCGC5_TSI (uint32_t)0x00000020
- #define SIM_SCGC5_LPTIMER (uint32_t)0x00000001
- #define SIM_SCGC6 *(volatile uint32_t *)0x4004803C
- #define SIM_SCGC6_RTC (uint32_t)0x20000000
- #define SIM_SCGC6_ADC0 (uint32_t)0x08000000
- #define SIM_SCGC6_FTM1 (uint32_t)0x02000000
- #define SIM_SCGC6_FTM0 (uint32_t)0x01000000
- #define SIM_SCGC6_PIT (uint32_t)0x00800000
- #define SIM_SCGC6_PDB (uint32_t)0x00400000
- #define SIM_SCGC6_USBDCD (uint32_t)0x00200000
- #define SIM_SCGC6_CRC (uint32_t)0x00040000
- #define SIM_SCGC6_I2S (uint32_t)0x00008000
- #define SIM_SCGC6_SPI1 (uint32_t)0x00002000
- #define SIM_SCGC6_SPI0 (uint32_t)0x00001000
- #define SIM_SCGC6_FLEXCAN0 (uint32_t)0x00000010
- #define SIM_SCGC6_DMAMUX (uint32_t)0x00000002
- #define SIM_SCGC6_FTFL (uint32_t)0x00000001
- #define SIM_SCGC7 *(volatile uint32_t *)0x40048040
- #define SIM_SCGC7_DMA (uint32_t)0x00000002
- #define SIM_CLKDIV1 *(volatile uint32_t *)0x40048044
- #define SIM_CLKDIV1_OUTDIV1(n) (uint32_t)(((n) & 0x0F) << 28)
- #define SIM_CLKDIV1_OUTDIV2(n) (uint32_t)(((n) & 0x0F) << 24)
- #define SIM_CLKDIV1_OUTDIV4(n) (uint32_t)(((n) & 0x0F) << 16)
- #define SIM_CLKDIV2 *(volatile uint32_t *)0x40048048
- #define SIM_CLKDIV2_USBDIV(n) (uint32_t)(((n) & 0x07) << 1)
- #define SIM_CLKDIV2_USBFRAC (uint32_t)0x01
- #define SIM_FCFG1 *(const uint32_t *)0x4004804C
- #define SIM_FCFG2 *(const uint32_t *)0x40048050
- #define SIM_UIDH *(const uint32_t *)0x40048054
- #define SIM_UIDMH *(const uint32_t *)0x40048058
- #define SIM_UIDML *(const uint32_t *)0x4004805C
- #define SIM_UIDL *(const uint32_t *)0x40048060
-
-
- #define RCM_SRS0 *(volatile uint8_t *)0x4007F000
- #define RCM_SRS1 *(volatile uint8_t *)0x4007F001
- #define RCM_RPFC *(volatile uint8_t *)0x4007F004
- #define RCM_RPFW *(volatile uint8_t *)0x4007F005
- #define RCM_MR *(volatile uint8_t *)0x4007F007
-
-
- #define SMC_PMPROT *(volatile uint8_t *)0x4007E000
- #define SMC_PMPROT_AVLP (uint8_t)0x20
- #define SMC_PMPROT_ALLS (uint8_t)0x08
- #define SMC_PMPROT_AVLLS (uint8_t)0x02
- #define SMC_PMCTRL *(volatile uint8_t *)0x4007E001
- #define SMC_PMCTRL_LPWUI (uint8_t)0x80
- #define SMC_PMCTRL_RUNM(n) (uint8_t)(((n) & 0x03) << 5)
- #define SMC_PMCTRL_STOPA (uint8_t)0x08
- #define SMC_PMCTRL_STOPM(n) (uint8_t)((n) & 0x07)
- #define SMC_VLLSCTRL *(volatile uint8_t *)0x4007E002
- #define SMC_VLLSCTRL_PORPO (uint8_t)0x20
- #define SMC_VLLSCTRL_VLLSM(n) (uint8_t)((n) & 0x07)
- #define SMC_PMSTAT *(volatile uint8_t *)0x4007E003
- #define SMC_PMSTAT_RUN (uint8_t)0x01
- #define SMC_PMSTAT_STOP (uint8_t)0x02
- #define SMC_PMSTAT_VLPR (uint8_t)0x04
- #define SMC_PMSTAT_VLPW (uint8_t)0x08
- #define SMC_PMSTAT_VLPS (uint8_t)0x10
- #define SMC_PMSTAT_LLS (uint8_t)0x20
- #define SMC_PMSTAT_VLLS (uint8_t)0x40
-
-
- #define PMC_LVDSC1 *(volatile uint8_t *)0x4007D000
- #define PMC_LVDSC1_LVDF (uint8_t)0x80
- #define PMC_LVDSC1_LVDACK (uint8_t)0x40
- #define PMC_LVDSC1_LVDIE (uint8_t)0x20
- #define PMC_LVDSC1_LVDRE (uint8_t)0x10
- #define PMC_LVDSC1_LVDV(n) (uint8_t)((n) & 0x03)
- #define PMC_LVDSC2 *(volatile uint8_t *)0x4007D001
- #define PMC_LVDSC2_LVWF (uint8_t)0x80
- #define PMC_LVDSC2_LVWACK (uint8_t)0x40
- #define PMC_LVDSC2_LVWIE (uint8_t)0x20
- #define PMC_LVDSC2_LVWV(n) (uint8_t)((n) & 0x03)
- #define PMC_REGSC *(volatile uint8_t *)0x4007D002
- #define PMC_REGSC_BGEN (uint8_t)0x10
- #define PMC_REGSC_ACKISO (uint8_t)0x08
- #define PMC_REGSC_REGONS (uint8_t)0x04
- #define PMC_REGSC_BGBE (uint8_t)0x01
-
-
- #define LLWU_PE1 *(volatile uint8_t *)0x4007C000
- #define LLWU_PE2 *(volatile uint8_t *)0x4007C001
- #define LLWU_PE3 *(volatile uint8_t *)0x4007C002
- #define LLWU_PE4 *(volatile uint8_t *)0x4007C003
- #define LLWU_ME *(volatile uint8_t *)0x4007C004
- #define LLWU_F1 *(volatile uint8_t *)0x4007C005
- #define LLWU_F2 *(volatile uint8_t *)0x4007C006
- #define LLWU_F3 *(volatile uint8_t *)0x4007C007
- #define LLWU_FILT1 *(volatile uint8_t *)0x4007C008
- #define LLWU_FILT2 *(volatile uint8_t *)0x4007C009
- #define LLWU_RST *(volatile uint8_t *)0x4007C00A
-
-
- #define MCM_PLASC *(volatile uint16_t *)0xE0080008
- #define MCM_PLAMC *(volatile uint16_t *)0xE008000A
- #define MCM_PLACR *(volatile uint32_t *)0xE008000C
- #define MCM_PLACR_ARG (uint32_t)0x00000200
- #define MCM_CR *(volatile uint32_t *)0xE008000C
- #define MCM_CR_SRAMLWP (uint32_t)0x40000000
- #define MCM_CR_SRAMLAP(n) (uint32_t)(((n) & 0x03) << 28)
- #define MCM_CR_SRAMUWP (uint32_t)0x04000000
- #define MCM_CR_SRAMUAP(n) (uint32_t)(((n) & 0x03) << 24)
-
-
- #define AXBS_PRS0 *(volatile uint32_t *)0x40004000
- #define AXBS_CRS0 *(volatile uint32_t *)0x40004010
- #define AXBS_PRS1 *(volatile uint32_t *)0x40004100
- #define AXBS_CRS1 *(volatile uint32_t *)0x40004110
- #define AXBS_PRS2 *(volatile uint32_t *)0x40004200
- #define AXBS_CRS2 *(volatile uint32_t *)0x40004210
- #define AXBS_PRS3 *(volatile uint32_t *)0x40004300
- #define AXBS_CRS3 *(volatile uint32_t *)0x40004310
- #define AXBS_PRS4 *(volatile uint32_t *)0x40004400
- #define AXBS_CRS4 *(volatile uint32_t *)0x40004410
- #define AXBS_PRS5 *(volatile uint32_t *)0x40004500
- #define AXBS_CRS5 *(volatile uint32_t *)0x40004510
- #define AXBS_PRS6 *(volatile uint32_t *)0x40004600
- #define AXBS_CRS6 *(volatile uint32_t *)0x40004610
- #define AXBS_PRS7 *(volatile uint32_t *)0x40004700
- #define AXBS_CRS7 *(volatile uint32_t *)0x40004710
- #define AXBS_MGPCR0 *(volatile uint32_t *)0x40004800
- #define AXBS_MGPCR1 *(volatile uint32_t *)0x40004900
- #define AXBS_MGPCR2 *(volatile uint32_t *)0x40004A00
- #define AXBS_MGPCR3 *(volatile uint32_t *)0x40004B00
- #define AXBS_MGPCR4 *(volatile uint32_t *)0x40004C00
- #define AXBS_MGPCR5 *(volatile uint32_t *)0x40004D00
- #define AXBS_MGPCR6 *(volatile uint32_t *)0x40004E00
- #define AXBS_MGPCR7 *(volatile uint32_t *)0x40004F00
- #define AXBS_CRS_READONLY (uint32_t)0x80000000
- #define AXBS_CRS_HALTLOWPRIORITY (uint32_t)0x40000000
- #define AXBS_CRS_ARB_FIXED (uint32_t)0x00000000
- #define AXBS_CRS_ARB_ROUNDROBIN (uint32_t)0x00010000
- #define AXBS_CRS_PARK_FIXED (uint32_t)0x00000000
- #define AXBS_CRS_PARK_PREVIOUS (uint32_t)0x00000010
- #define AXBS_CRS_PARK_NONE (uint32_t)0x00000020
- #define AXBS_CRS_PARK(n) (uint32_t)(((n) & 7) << 0)
-
-
-
-
- #define DMAMUX0_CHCFG0 *(volatile uint8_t *)0x40021000
- #define DMAMUX0_CHCFG1 *(volatile uint8_t *)0x40021001
- #define DMAMUX0_CHCFG2 *(volatile uint8_t *)0x40021002
- #define DMAMUX0_CHCFG3 *(volatile uint8_t *)0x40021003
- #define DMAMUX0_CHCFG4 *(volatile uint8_t *)0x40021004
- #define DMAMUX0_CHCFG5 *(volatile uint8_t *)0x40021005
- #define DMAMUX0_CHCFG6 *(volatile uint8_t *)0x40021006
- #define DMAMUX0_CHCFG7 *(volatile uint8_t *)0x40021007
- #define DMAMUX0_CHCFG8 *(volatile uint8_t *)0x40021008
- #define DMAMUX0_CHCFG9 *(volatile uint8_t *)0x40021009
- #define DMAMUX0_CHCFG10 *(volatile uint8_t *)0x4002100A
- #define DMAMUX0_CHCFG11 *(volatile uint8_t *)0x4002100B
- #define DMAMUX0_CHCFG12 *(volatile uint8_t *)0x4002100C
- #define DMAMUX0_CHCFG13 *(volatile uint8_t *)0x4002100D
- #define DMAMUX0_CHCFG14 *(volatile uint8_t *)0x4002100E
- #define DMAMUX0_CHCFG15 *(volatile uint8_t *)0x4002100F
- #define DMAMUX_DISABLE 0
- #define DMAMUX_TRIG 64
- #define DMAMUX_ENABLE 128
- #define DMAMUX_SOURCE_UART0_RX 2
- #define DMAMUX_SOURCE_UART0_TX 3
- #define DMAMUX_SOURCE_UART1_RX 4
- #define DMAMUX_SOURCE_UART1_TX 5
- #define DMAMUX_SOURCE_UART2_RX 6
- #define DMAMUX_SOURCE_UART2_TX 7
- #define DMAMUX_SOURCE_I2S0_RX 14
- #define DMAMUX_SOURCE_I2S0_TX 15
- #define DMAMUX_SOURCE_SPI0_RX 16
- #define DMAMUX_SOURCE_SPI0_TX 17
- #define DMAMUX_SOURCE_I2C0 22
- #define DMAMUX_SOURCE_I2C1 23
- #define DMAMUX_SOURCE_FTM0_CH0 24
- #define DMAMUX_SOURCE_FTM0_CH1 25
- #define DMAMUX_SOURCE_FTM0_CH2 26
- #define DMAMUX_SOURCE_FTM0_CH3 27
- #define DMAMUX_SOURCE_FTM0_CH4 28
- #define DMAMUX_SOURCE_FTM0_CH5 29
- #define DMAMUX_SOURCE_FTM0_CH6 30
- #define DMAMUX_SOURCE_FTM0_CH7 31
- #define DMAMUX_SOURCE_FTM1_CH0 32
- #define DMAMUX_SOURCE_FTM1_CH1 33
- #define DMAMUX_SOURCE_FTM2_CH0 34
- #define DMAMUX_SOURCE_FTM2_CH1 35
- #define DMAMUX_SOURCE_ADC0 40
- #define DMAMUX_SOURCE_ADC1 41
- #define DMAMUX_SOURCE_CMP0 42
- #define DMAMUX_SOURCE_CMP1 43
- #define DMAMUX_SOURCE_CMP2 44
- #define DMAMUX_SOURCE_DAC0 45
- #define DMAMUX_SOURCE_CMT 47
- #define DMAMUX_SOURCE_PDB 48
- #define DMAMUX_SOURCE_PORTA 49
- #define DMAMUX_SOURCE_PORTB 50
- #define DMAMUX_SOURCE_PORTC 51
- #define DMAMUX_SOURCE_PORTD 52
- #define DMAMUX_SOURCE_PORTE 53
- #define DMAMUX_SOURCE_ALWAYS0 54
- #define DMAMUX_SOURCE_ALWAYS1 55
- #define DMAMUX_SOURCE_ALWAYS2 56
- #define DMAMUX_SOURCE_ALWAYS3 57
- #define DMAMUX_SOURCE_ALWAYS4 58
- #define DMAMUX_SOURCE_ALWAYS5 59
- #define DMAMUX_SOURCE_ALWAYS6 60
- #define DMAMUX_SOURCE_ALWAYS7 61
- #define DMAMUX_SOURCE_ALWAYS8 62
- #define DMAMUX_SOURCE_ALWAYS9 63
-
-
- #define DMA_CR *(volatile uint32_t *)0x40008000
- #define DMA_CR_CX ((uint32_t)(1<<17))
- #define DMA_CR_ECX ((uint32_t)(1<<16))
- #define DMA_CR_EMLM ((uint32_t)0x80)
- #define DMA_CR_CLM ((uint32_t)0x40)
- #define DMA_CR_HALT ((uint32_t)0x20)
- #define DMA_CR_HOE ((uint32_t)0x10)
- #define DMA_CR_ERCA ((uint32_t)0x04)
- #define DMA_CR_EDBG ((uint32_t)0x02)
- #define DMA_ES *(volatile uint32_t *)0x40008004
- #define DMA_ERQ *(volatile uint32_t *)0x4000800C
- #define DMA_ERQ_ERQ0 ((uint32_t)1<<0)
- #define DMA_ERQ_ERQ1 ((uint32_t)1<<1)
- #define DMA_ERQ_ERQ2 ((uint32_t)1<<2)
- #define DMA_ERQ_ERQ3 ((uint32_t)1<<3)
- #define DMA_EEI *(volatile uint32_t *)0x40008014
- #define DMA_EEI_EEI0 ((uint32_t)1<<0)
- #define DMA_EEI_EEI1 ((uint32_t)1<<1)
- #define DMA_EEI_EEI2 ((uint32_t)1<<2)
- #define DMA_EEI_EEI3 ((uint32_t)1<<3)
- #define DMA_CEEI *(volatile uint8_t *)0x40008018
- #define DMA_CEEI_CEEI(n) ((uint8_t)(n & 3)<<0)
- #define DMA_CEEI_CAEE ((uint8_t)1<<6)
- #define DMA_CEEI_NOP ((uint8_t)1<<7)
- #define DMA_SEEI *(volatile uint8_t *)0x40008019
- #define DMA_SEEI_SEEI(n) ((uint8_t)(n & 3)<<0)
- #define DMA_SEEI_SAEE ((uint8_t)1<<6)
- #define DMA_SEEI_NOP ((uint8_t)1<<7)
- #define DMA_CERQ *(volatile uint8_t *)0x4000801A
- #define DMA_CERQ_CERQ(n) ((uint8_t)(n & 3)<<0)
- #define DMA_CERQ_CAER ((uint8_t)1<<6)
- #define DMA_CERQ_NOP ((uint8_t)1<<7)
- #define DMA_SERQ *(volatile uint8_t *)0x4000801B
- #define DMA_SERQ_SERQ(n) ((uint8_t)(n & 3)<<0)
- #define DMA_SERQ_SAER ((uint8_t)1<<6)
- #define DMA_SERQ_NOP ((uint8_t)1<<7)
- #define DMA_CDNE *(volatile uint8_t *)0x4000801C
- #define DMA_CDNE_CDNE(n) ((uint8_t)(n & 3)<<0)
- #define DMA_CDNE_CADN ((uint8_t)1<<6)
- #define DMA_CDNE_NOP ((uint8_t)1<<7)
- #define DMA_SSRT *(volatile uint8_t *)0x4000801D
- #define DMA_SSRT_SSRT(n) ((uint8_t)(n & 3)<<0)
- #define DMA_SSRT_SAST ((uint8_t)1<<6)
- #define DMA_SSRT_NOP ((uint8_t)1<<7)
- #define DMA_CERR *(volatile uint8_t *)0x4000801E
- #define DMA_CERR_CERR(n) ((uint8_t)(n & 3)<<0)
- #define DMA_CERR_CAEI ((uint8_t)1<<6)
- #define DMA_CERR_NOP ((uint8_t)1<<7)
- #define DMA_CINT *(volatile uint8_t *)0x4000801F
- #define DMA_CINT_CINT(n) ((uint8_t)(n & 3)<<0)
- #define DMA_CINT_CAIR ((uint8_t)1<<6)
- #define DMA_CINT_NOP ((uint8_t)1<<7)
- #define DMA_INT *(volatile uint32_t *)0x40008024
- #define DMA_INT_INT0 ((uint32_t)1<<0)
- #define DMA_INT_INT1 ((uint32_t)1<<1)
- #define DMA_INT_INT2 ((uint32_t)1<<2)
- #define DMA_INT_INT3 ((uint32_t)1<<3)
- #define DMA_ERR *(volatile uint32_t *)0x4000802C
- #define DMA_ERR_ERR0 ((uint32_t)1<<0)
- #define DMA_ERR_ERR1 ((uint32_t)1<<1)
- #define DMA_ERR_ERR2 ((uint32_t)1<<2)
- #define DMA_ERR_ERR3 ((uint32_t)1<<3)
- #define DMA_HRS *(volatile uint32_t *)0x40008034
- #define DMA_HRS_HRS0 ((uint32_t)1<<0)
- #define DMA_HRS_HRS1 ((uint32_t)1<<1)
- #define DMA_HRS_HRS2 ((uint32_t)1<<2)
- #define DMA_HRS_HRS3 ((uint32_t)1<<3)
- #define DMA_DCHPRI3 *(volatile uint8_t *)0x40008100
- #define DMA_DCHPRI2 *(volatile uint8_t *)0x40008101
- #define DMA_DCHPRI1 *(volatile uint8_t *)0x40008102
- #define DMA_DCHPRI0 *(volatile uint8_t *)0x40008103
- #define DMA_DCHPRI_CHPRI(n) ((uint8_t)(n & 3)<<0)
- #define DMA_DCHPRI_DPA ((uint8_t)1<<6)
- #define DMA_DCHPRI_ECP ((uint8_t)1<<7)
-
-
- #define DMA_TCD_ATTR_SMOD(n) (((n) & 0x1F) << 11)
- #define DMA_TCD_ATTR_SSIZE(n) (((n) & 0x7) << 8)
- #define DMA_TCD_ATTR_DMOD(n) (((n) & 0x1F) << 3)
- #define DMA_TCD_ATTR_DSIZE(n) (((n) & 0x7) << 0)
- #define DMA_TCD_ATTR_SIZE_8BIT 0
- #define DMA_TCD_ATTR_SIZE_16BIT 1
- #define DMA_TCD_ATTR_SIZE_32BIT 2
- #define DMA_TCD_ATTR_SIZE_16BYTE 4
- #define DMA_TCD_ATTR_SIZE_32BYTE 5
- #define DMA_TCD_CSR_BWC(n) (((n) & 0x3) << 14)
- #define DMA_TCD_CSR_MAJORLINKCH(n) (((n) & 0x3) << 8)
- #define DMA_TCD_CSR_DONE 0x0080
- #define DMA_TCD_CSR_ACTIVE 0x0040
- #define DMA_TCD_CSR_MAJORELINK 0x0020
- #define DMA_TCD_CSR_ESG 0x0010
- #define DMA_TCD_CSR_DREQ 0x0008
- #define DMA_TCD_CSR_INTHALF 0x0004
- #define DMA_TCD_CSR_INTMAJOR 0x0002
- #define DMA_TCD_CSR_START 0x0001
- #define DMA_TCD_CITER_MASK ((uint16_t)0x7FFF)
- #define DMA_TCD_CITER_ELINK ((uint16_t)1<<15)
- #define DMA_TCD_BITER_MASK ((uint16_t)0x7FFF)
- #define DMA_TCD_BITER_ELINK ((uint16_t)1<<15)
- #define DMA_TCD_NBYTES_SMLOE ((uint32_t)1<<31)
- #define DMA_TCD_NBYTES_DMLOE ((uint32_t)1<<30)
- #define DMA_TCD_NBYTES_MLOFFNO_NBYTES(n) ((uint32_t)(n))
- #define DMA_TCD_NBYTES_MLOFFYES_NBYTES(n) ((uint32_t)(n & 0x1F))
- #define DMA_TCD_NBYTES_MLOFFYES_MLOFF(n) ((uint32_t)(n & 0xFFFFF)<<10)
-
- #define DMA_TCD0_SADDR *(volatile const void * volatile *)0x40009000
- #define DMA_TCD0_SOFF *(volatile int16_t *)0x40009004
- #define DMA_TCD0_ATTR *(volatile uint16_t *)0x40009006
- #define DMA_TCD0_NBYTES_MLNO *(volatile uint32_t *)0x40009008
- #define DMA_TCD0_NBYTES_MLOFFNO *(volatile uint32_t *)0x40009008
- #define DMA_TCD0_NBYTES_MLOFFYES *(volatile uint32_t *)0x40009008
- #define DMA_TCD0_SLAST *(volatile int32_t *)0x4000900C
- #define DMA_TCD0_DADDR *(volatile void * volatile *)0x40009010
- #define DMA_TCD0_DOFF *(volatile int16_t *)0x40009014
- #define DMA_TCD0_CITER_ELINKYES *(volatile uint16_t *)0x40009016
- #define DMA_TCD0_CITER_ELINKNO *(volatile uint16_t *)0x40009016
- #define DMA_TCD0_DLASTSGA *(volatile int32_t *)0x40009018
- #define DMA_TCD0_CSR *(volatile uint16_t *)0x4000901C
- #define DMA_TCD0_BITER_ELINKYES *(volatile uint16_t *)0x4000901E
- #define DMA_TCD0_BITER_ELINKNO *(volatile uint16_t *)0x4000901E
-
- #define DMA_TCD1_SADDR *(volatile const void * volatile *)0x40009020
- #define DMA_TCD1_SOFF *(volatile int16_t *)0x40009024
- #define DMA_TCD1_ATTR *(volatile uint16_t *)0x40009026
- #define DMA_TCD1_NBYTES_MLNO *(volatile uint32_t *)0x40009028
- #define DMA_TCD1_NBYTES_MLOFFNO *(volatile uint32_t *)0x40009028
- #define DMA_TCD1_NBYTES_MLOFFYES *(volatile uint32_t *)0x40009028
- #define DMA_TCD1_SLAST *(volatile int32_t *)0x4000902C
- #define DMA_TCD1_DADDR *(volatile void * volatile *)0x40009030
- #define DMA_TCD1_DOFF *(volatile int16_t *)0x40009034
- #define DMA_TCD1_CITER_ELINKYES *(volatile uint16_t *)0x40009036
- #define DMA_TCD1_CITER_ELINKNO *(volatile uint16_t *)0x40009036
- #define DMA_TCD1_DLASTSGA *(volatile int32_t *)0x40009038
- #define DMA_TCD1_CSR *(volatile uint16_t *)0x4000903C
- #define DMA_TCD1_BITER_ELINKYES *(volatile uint16_t *)0x4000903E
- #define DMA_TCD1_BITER_ELINKNO *(volatile uint16_t *)0x4000903E
-
- #define DMA_TCD2_SADDR *(volatile const void * volatile *)0x40009040
- #define DMA_TCD2_SOFF *(volatile int16_t *)0x40009044
- #define DMA_TCD2_ATTR *(volatile uint16_t *)0x40009046
- #define DMA_TCD2_NBYTES_MLNO *(volatile uint32_t *)0x40009048
- #define DMA_TCD2_NBYTES_MLOFFNO *(volatile uint32_t *)0x40009048
- #define DMA_TCD2_NBYTES_MLOFFYES *(volatile uint32_t *)0x40009048
- #define DMA_TCD2_SLAST *(volatile int32_t *)0x4000904C
- #define DMA_TCD2_DADDR *(volatile void * volatile *)0x40009050
- #define DMA_TCD2_DOFF *(volatile int16_t *)0x40009054
- #define DMA_TCD2_CITER_ELINKYES *(volatile uint16_t *)0x40009056
- #define DMA_TCD2_CITER_ELINKNO *(volatile uint16_t *)0x40009056
- #define DMA_TCD2_DLASTSGA *(volatile int32_t *)0x40009058
- #define DMA_TCD2_CSR *(volatile uint16_t *)0x4000905C
- #define DMA_TCD2_BITER_ELINKYES *(volatile uint16_t *)0x4000905E
- #define DMA_TCD2_BITER_ELINKNO *(volatile uint16_t *)0x4000905E
-
- #define DMA_TCD3_SADDR *(volatile const void * volatile *)0x40009060
- #define DMA_TCD3_SOFF *(volatile int16_t *)0x40009064
- #define DMA_TCD3_ATTR *(volatile uint16_t *)0x40009066
- #define DMA_TCD3_NBYTES_MLNO *(volatile uint32_t *)0x40009068
- #define DMA_TCD3_NBYTES_MLOFFNO *(volatile uint32_t *)0x40009068
- #define DMA_TCD3_NBYTES_MLOFFYES *(volatile uint32_t *)0x40009068
- #define DMA_TCD3_SLAST *(volatile int32_t *)0x4000906C
- #define DMA_TCD3_DADDR *(volatile void * volatile *)0x40009070
- #define DMA_TCD3_DOFF *(volatile int16_t *)0x40009074
- #define DMA_TCD3_CITER_ELINKYES *(volatile uint16_t *)0x40009076
- #define DMA_TCD3_CITER_ELINKNO *(volatile uint16_t *)0x40009076
- #define DMA_TCD3_DLASTSGA *(volatile int32_t *)0x40009078
- #define DMA_TCD3_CSR *(volatile uint16_t *)0x4000907C
- #define DMA_TCD3_BITER_ELINKYES *(volatile uint16_t *)0x4000907E
- #define DMA_TCD3_BITER_ELINKNO *(volatile uint16_t *)0x4000907E
-
- #define DMA_TCD4_SADDR *(volatile const void * volatile *)0x40009080
- #define DMA_TCD4_SOFF *(volatile int16_t *)0x40009084
- #define DMA_TCD4_ATTR *(volatile uint16_t *)0x40009086
- #define DMA_TCD4_NBYTES_MLNO *(volatile uint32_t *)0x40009088
- #define DMA_TCD4_NBYTES_MLOFFNO *(volatile uint32_t *)0x40009088
- #define DMA_TCD4_NBYTES_MLOFFYES *(volatile uint32_t *)0x40009088
- #define DMA_TCD4_SLAST *(volatile int32_t *)0x4000908C
- #define DMA_TCD4_DADDR *(volatile void * volatile *)0x40009090
- #define DMA_TCD4_DOFF *(volatile int16_t *)0x40009094
- #define DMA_TCD4_CITER_ELINKYES *(volatile uint16_t *)0x40009096
- #define DMA_TCD4_CITER_ELINKNO *(volatile uint16_t *)0x40009096
- #define DMA_TCD4_DLASTSGA *(volatile int32_t *)0x40009098
- #define DMA_TCD4_CSR *(volatile uint16_t *)0x4000909C
- #define DMA_TCD4_BITER_ELINKYES *(volatile uint16_t *)0x4000909E
- #define DMA_TCD4_BITER_ELINKNO *(volatile uint16_t *)0x4000909E
-
- #define DMA_TCD5_SADDR *(volatile const void * volatile *)0x400090A0
- #define DMA_TCD5_SOFF *(volatile int16_t *)0x400090A4
- #define DMA_TCD5_ATTR *(volatile uint16_t *)0x400090A6
- #define DMA_TCD5_NBYTES_MLNO *(volatile uint32_t *)0x400090A8
- #define DMA_TCD5_NBYTES_MLOFFNO *(volatile uint32_t *)0x400090A8
- #define DMA_TCD5_NBYTES_MLOFFYES *(volatile uint32_t *)0x400090A8
- #define DMA_TCD5_SLAST *(volatile int32_t *)0x400090AC
- #define DMA_TCD5_DADDR *(volatile void * volatile *)0x400090B0
- #define DMA_TCD5_DOFF *(volatile int16_t *)0x400090B4
- #define DMA_TCD5_CITER_ELINKYES *(volatile uint16_t *)0x400090B6
- #define DMA_TCD5_CITER_ELINKNO *(volatile uint16_t *)0x400090B6
- #define DMA_TCD5_DLASTSGA *(volatile int32_t *)0x400090B8
- #define DMA_TCD5_CSR *(volatile uint16_t *)0x400090BC
- #define DMA_TCD5_BITER_ELINKYES *(volatile uint16_t *)0x400090BE
- #define DMA_TCD5_BITER_ELINKNO *(volatile uint16_t *)0x400090BE
-
- #define DMA_TCD6_SADDR *(volatile const void * volatile *)0x400090C0
- #define DMA_TCD6_SOFF *(volatile int16_t *)0x400090C4
- #define DMA_TCD6_ATTR *(volatile uint16_t *)0x400090C6
- #define DMA_TCD6_NBYTES_MLNO *(volatile uint32_t *)0x400090C8
- #define DMA_TCD6_NBYTES_MLOFFNO *(volatile uint32_t *)0x400090C8
- #define DMA_TCD6_NBYTES_MLOFFYES *(volatile uint32_t *)0x400090C8
- #define DMA_TCD6_SLAST *(volatile int32_t *)0x400090CC
- #define DMA_TCD6_DADDR *(volatile void * volatile *)0x400090D0
- #define DMA_TCD6_DOFF *(volatile int16_t *)0x400090D4
- #define DMA_TCD6_CITER_ELINKYES *(volatile uint16_t *)0x400090D6
- #define DMA_TCD6_CITER_ELINKNO *(volatile uint16_t *)0x400090D6
- #define DMA_TCD6_DLASTSGA *(volatile int32_t *)0x400090D8
- #define DMA_TCD6_CSR *(volatile uint16_t *)0x400090DC
- #define DMA_TCD6_BITER_ELINKYES *(volatile uint16_t *)0x400090DE
- #define DMA_TCD6_BITER_ELINKNO *(volatile uint16_t *)0x400090DE
-
- #define DMA_TCD7_SADDR *(volatile const void * volatile *)0x400090E0
- #define DMA_TCD7_SOFF *(volatile int16_t *)0x400090E4
- #define DMA_TCD7_ATTR *(volatile uint16_t *)0x400090E6
- #define DMA_TCD7_NBYTES_MLNO *(volatile uint32_t *)0x400090E8
- #define DMA_TCD7_NBYTES_MLOFFNO *(volatile uint32_t *)0x400090E8
- #define DMA_TCD7_NBYTES_MLOFFYES *(volatile uint32_t *)0x400090E8
- #define DMA_TCD7_SLAST *(volatile int32_t *)0x400090EC
- #define DMA_TCD7_DADDR *(volatile void * volatile *)0x400090F0
- #define DMA_TCD7_DOFF *(volatile int16_t *)0x400090F4
- #define DMA_TCD7_CITER_ELINKYES *(volatile uint16_t *)0x400090F6
- #define DMA_TCD7_CITER_ELINKNO *(volatile uint16_t *)0x400090F6
- #define DMA_TCD7_DLASTSGA *(volatile int32_t *)0x400090F8
- #define DMA_TCD7_CSR *(volatile uint16_t *)0x400090FC
- #define DMA_TCD7_BITER_ELINKYES *(volatile uint16_t *)0x400090FE
- #define DMA_TCD7_BITER_ELINKNO *(volatile uint16_t *)0x400090FE
-
- #define DMA_TCD8_SADDR *(volatile const void * volatile *)0x40009100
- #define DMA_TCD8_SOFF *(volatile int16_t *)0x40009104
- #define DMA_TCD8_ATTR *(volatile uint16_t *)0x40009106
- #define DMA_TCD8_NBYTES_MLNO *(volatile uint32_t *)0x40009108
- #define DMA_TCD8_NBYTES_MLOFFNO *(volatile uint32_t *)0x40009108
- #define DMA_TCD8_NBYTES_MLOFFYES *(volatile uint32_t *)0x40009108
- #define DMA_TCD8_SLAST *(volatile int32_t *)0x4000910C
- #define DMA_TCD8_DADDR *(volatile void * volatile *)0x40009110
- #define DMA_TCD8_DOFF *(volatile int16_t *)0x40009114
- #define DMA_TCD8_CITER_ELINKYES *(volatile uint16_t *)0x40009116
- #define DMA_TCD8_CITER_ELINKNO *(volatile uint16_t *)0x40009116
- #define DMA_TCD8_DLASTSGA *(volatile int32_t *)0x40009118
- #define DMA_TCD8_CSR *(volatile uint16_t *)0x4000911C
- #define DMA_TCD8_BITER_ELINKYES *(volatile uint16_t *)0x4000911E
- #define DMA_TCD8_BITER_ELINKNO *(volatile uint16_t *)0x4000911E
-
- #define DMA_TCD9_SADDR *(volatile const void * volatile *)0x40009120
- #define DMA_TCD9_SOFF *(volatile int16_t *)0x40009124
- #define DMA_TCD9_ATTR *(volatile uint16_t *)0x40009126
- #define DMA_TCD9_NBYTES_MLNO *(volatile uint32_t *)0x40009128
- #define DMA_TCD9_NBYTES_MLOFFNO *(volatile uint32_t *)0x40009128
- #define DMA_TCD9_NBYTES_MLOFFYES *(volatile uint32_t *)0x40009128
- #define DMA_TCD9_SLAST *(volatile int32_t *)0x4000912C
- #define DMA_TCD9_DADDR *(volatile void * volatile *)0x40009130
- #define DMA_TCD9_DOFF *(volatile int16_t *)0x40009134
- #define DMA_TCD9_CITER_ELINKYES *(volatile uint16_t *)0x40009136
- #define DMA_TCD9_CITER_ELINKNO *(volatile uint16_t *)0x40009136
- #define DMA_TCD9_DLASTSGA *(volatile int32_t *)0x40009138
- #define DMA_TCD9_CSR *(volatile uint16_t *)0x4000913C
- #define DMA_TCD9_BITER_ELINKYES *(volatile uint16_t *)0x4000913E
- #define DMA_TCD9_BITER_ELINKNO *(volatile uint16_t *)0x4000913E
-
- #define DMA_TCD10_SADDR *(volatile const void * volatile *)0x40009140
- #define DMA_TCD10_SOFF *(volatile int16_t *)0x40009144
- #define DMA_TCD10_ATTR *(volatile uint16_t *)0x40009146
- #define DMA_TCD10_NBYTES_MLNO *(volatile uint32_t *)0x40009148
- #define DMA_TCD10_NBYTES_MLOFFNO *(volatile uint32_t *)0x40009148
- #define DMA_TCD10_NBYTES_MLOFFYES *(volatile uint32_t *)0x40009148
- #define DMA_TCD10_SLAST *(volatile int32_t *)0x4000914C
- #define DMA_TCD10_DADDR *(volatile void * volatile *)0x40009150
- #define DMA_TCD10_DOFF *(volatile int16_t *)0x40009154
- #define DMA_TCD10_CITER_ELINKYES *(volatile uint16_t *)0x40009156
- #define DMA_TCD10_CITER_ELINKNO *(volatile uint16_t *)0x40009156
- #define DMA_TCD10_DLASTSGA *(volatile int32_t *)0x40009158
- #define DMA_TCD10_CSR *(volatile uint16_t *)0x4000915C
- #define DMA_TCD10_BITER_ELINKYES *(volatile uint16_t *)0x4000915E
- #define DMA_TCD10_BITER_ELINKNO *(volatile uint16_t *)0x4000915E
-
- #define DMA_TCD11_SADDR *(volatile const void * volatile *)0x40009160
- #define DMA_TCD11_SOFF *(volatile int16_t *)0x40009164
- #define DMA_TCD11_ATTR *(volatile uint16_t *)0x40009166
- #define DMA_TCD11_NBYTES_MLNO *(volatile uint32_t *)0x40009168
- #define DMA_TCD11_NBYTES_MLOFFNO *(volatile uint32_t *)0x40009168
- #define DMA_TCD11_NBYTES_MLOFFYES *(volatile uint32_t *)0x40009168
- #define DMA_TCD11_SLAST *(volatile int32_t *)0x4000916C
- #define DMA_TCD11_DADDR *(volatile void * volatile *)0x40009170
- #define DMA_TCD11_DOFF *(volatile int16_t *)0x40009174
- #define DMA_TCD11_CITER_ELINKYES *(volatile uint16_t *)0x40009176
- #define DMA_TCD11_CITER_ELINKNO *(volatile uint16_t *)0x40009176
- #define DMA_TCD11_DLASTSGA *(volatile int32_t *)0x40009178
- #define DMA_TCD11_CSR *(volatile uint16_t *)0x4000917C
- #define DMA_TCD11_BITER_ELINKYES *(volatile uint16_t *)0x4000917E
- #define DMA_TCD11_BITER_ELINKNO *(volatile uint16_t *)0x4000917E
-
- #define DMA_TCD12_SADDR *(volatile const void * volatile *)0x40009180
- #define DMA_TCD12_SOFF *(volatile int16_t *)0x40009184
- #define DMA_TCD12_ATTR *(volatile uint16_t *)0x40009186
- #define DMA_TCD12_NBYTES_MLNO *(volatile uint32_t *)0x40009188
- #define DMA_TCD12_NBYTES_MLOFFNO *(volatile uint32_t *)0x40009188
- #define DMA_TCD12_NBYTES_MLOFFYES *(volatile uint32_t *)0x40009188
- #define DMA_TCD12_SLAST *(volatile int32_t *)0x4000918C
- #define DMA_TCD12_DADDR *(volatile void * volatile *)0x40009190
- #define DMA_TCD12_DOFF *(volatile int16_t *)0x40009194
- #define DMA_TCD12_CITER_ELINKYES *(volatile uint16_t *)0x40009196
- #define DMA_TCD12_CITER_ELINKNO *(volatile uint16_t *)0x40009196
- #define DMA_TCD12_DLASTSGA *(volatile int32_t *)0x40009198
- #define DMA_TCD12_CSR *(volatile uint16_t *)0x4000919C
- #define DMA_TCD12_BITER_ELINKYES *(volatile uint16_t *)0x4000919E
- #define DMA_TCD12_BITER_ELINKNO *(volatile uint16_t *)0x4000919E
-
- #define DMA_TCD13_SADDR *(volatile const void * volatile *)0x400091A0
- #define DMA_TCD13_SOFF *(volatile int16_t *)0x400091A4
- #define DMA_TCD13_ATTR *(volatile uint16_t *)0x400091A6
- #define DMA_TCD13_NBYTES_MLNO *(volatile uint32_t *)0x400091A8
- #define DMA_TCD13_NBYTES_MLOFFNO *(volatile uint32_t *)0x400091A8
- #define DMA_TCD13_NBYTES_MLOFFYES *(volatile uint32_t *)0x400091A8
- #define DMA_TCD13_SLAST *(volatile int32_t *)0x400091AC
- #define DMA_TCD13_DADDR *(volatile void * volatile *)0x400091B0
- #define DMA_TCD13_DOFF *(volatile int16_t *)0x400091B4
- #define DMA_TCD13_CITER_ELINKYES *(volatile uint16_t *)0x400091B6
- #define DMA_TCD13_CITER_ELINKNO *(volatile uint16_t *)0x400091B6
- #define DMA_TCD13_DLASTSGA *(volatile int32_t *)0x400091B8
- #define DMA_TCD13_CSR *(volatile uint16_t *)0x400091BC
- #define DMA_TCD13_BITER_ELINKYES *(volatile uint16_t *)0x400091BE
- #define DMA_TCD13_BITER_ELINKNO *(volatile uint16_t *)0x400091BE
-
- #define DMA_TCD14_SADDR *(volatile const void * volatile *)0x400091C0
- #define DMA_TCD14_SOFF *(volatile int16_t *)0x400091C4
- #define DMA_TCD14_ATTR *(volatile uint16_t *)0x400091C6
- #define DMA_TCD14_NBYTES_MLNO *(volatile uint32_t *)0x400091C8
- #define DMA_TCD14_NBYTES_MLOFFNO *(volatile uint32_t *)0x400091C8
- #define DMA_TCD14_NBYTES_MLOFFYES *(volatile uint32_t *)0x400091C8
- #define DMA_TCD14_SLAST *(volatile int32_t *)0x400091CC
- #define DMA_TCD14_DADDR *(volatile void * volatile *)0x400091D0
- #define DMA_TCD14_DOFF *(volatile int16_t *)0x400091D4
- #define DMA_TCD14_CITER_ELINKYES *(volatile uint16_t *)0x400091D6
- #define DMA_TCD14_CITER_ELINKNO *(volatile uint16_t *)0x400091D6
- #define DMA_TCD14_DLASTSGA *(volatile int32_t *)0x400091D8
- #define DMA_TCD14_CSR *(volatile uint16_t *)0x400091DC
- #define DMA_TCD14_BITER_ELINKYES *(volatile uint16_t *)0x400091DE
- #define DMA_TCD14_BITER_ELINKNO *(volatile uint16_t *)0x400091DE
-
- #define DMA_TCD15_SADDR *(volatile const void * volatile *)0x400091E0
- #define DMA_TCD15_SOFF *(volatile int16_t *)0x400091E4
- #define DMA_TCD15_ATTR *(volatile uint16_t *)0x400091E6
- #define DMA_TCD15_NBYTES_MLNO *(volatile uint32_t *)0x400091E8
- #define DMA_TCD15_NBYTES_MLOFFNO *(volatile uint32_t *)0x400091E8
- #define DMA_TCD15_NBYTES_MLOFFYES *(volatile uint32_t *)0x400091E8
- #define DMA_TCD15_SLAST *(volatile int32_t *)0x400091EC
- #define DMA_TCD15_DADDR *(volatile void * volatile *)0x400091F0
- #define DMA_TCD15_DOFF *(volatile int16_t *)0x400091F4
- #define DMA_TCD15_CITER_ELINKYES *(volatile uint16_t *)0x400091F6
- #define DMA_TCD15_CITER_ELINKNO *(volatile uint16_t *)0x400091F6
- #define DMA_TCD15_DLASTSGA *(volatile int32_t *)0x400091F8
- #define DMA_TCD15_CSR *(volatile uint16_t *)0x400091FC
- #define DMA_TCD15_BITER_ELINKYES *(volatile uint16_t *)0x400091FE
- #define DMA_TCD15_BITER_ELINKNO *(volatile uint16_t *)0x400091FE
-
-
-
- #define EWM_CTRL *(volatile uint8_t *)0x40061000
- #define EWM_SERV *(volatile uint8_t *)0x40061001
- #define EWM_CMPL *(volatile uint8_t *)0x40061002
- #define EWM_CMPH *(volatile uint8_t *)0x40061003
-
-
- #define WDOG_STCTRLH *(volatile uint16_t *)0x40052000
- #define WDOG_STCTRLH_DISTESTWDOG (uint16_t)0x4000
- #define WDOG_STCTRLH_BYTESEL(n) (uint16_t)(((n) & 3) << 12)
- #define WDOG_STCTRLH_TESTSEL (uint16_t)0x0800
- #define WDOG_STCTRLH_TESTWDOG (uint16_t)0x0400
- #define WDOG_STCTRLH_WAITEN (uint16_t)0x0080
- #define WDOG_STCTRLH_STOPEN (uint16_t)0x0040
- #define WDOG_STCTRLH_DBGEN (uint16_t)0x0020
- #define WDOG_STCTRLH_ALLOWUPDATE (uint16_t)0x0010
- #define WDOG_STCTRLH_WINEN (uint16_t)0x0008
- #define WDOG_STCTRLH_IRQRSTEN (uint16_t)0x0004
- #define WDOG_STCTRLH_CLKSRC (uint16_t)0x0002
- #define WDOG_STCTRLH_WDOGEN (uint16_t)0x0001
- #define WDOG_STCTRLL *(volatile uint16_t *)0x40052002
- #define WDOG_TOVALH *(volatile uint16_t *)0x40052004
- #define WDOG_TOVALL *(volatile uint16_t *)0x40052006
- #define WDOG_WINH *(volatile uint16_t *)0x40052008
- #define WDOG_WINL *(volatile uint16_t *)0x4005200A
- #define WDOG_REFRESH *(volatile uint16_t *)0x4005200C
- #define WDOG_UNLOCK *(volatile uint16_t *)0x4005200E
- #define WDOG_UNLOCK_SEQ1 (uint16_t)0xC520
- #define WDOG_UNLOCK_SEQ2 (uint16_t)0xD928
- #define WDOG_TMROUTH *(volatile uint16_t *)0x40052010
- #define WDOG_TMROUTL *(volatile uint16_t *)0x40052012
- #define WDOG_RSTCNT *(volatile uint16_t *)0x40052014
- #define WDOG_PRESC *(volatile uint16_t *)0x40052016
-
-
- #define MCG_C1 *(volatile uint8_t *)0x40064000
- #define MCG_C1_IREFSTEN (uint8_t)0x01
- #define MCG_C1_IRCLKEN (uint8_t)0x02
- #define MCG_C1_IREFS (uint8_t)0x04
- #define MCG_C1_FRDIV(n) (uint8_t)(((n) & 0x07) << 3)
- #define MCG_C1_CLKS(n) (uint8_t)(((n) & 0x03) << 6)
- #define MCG_C2 *(volatile uint8_t *)0x40064001
- #define MCG_C2_IRCS (uint8_t)0x01
- #define MCG_C2_LP (uint8_t)0x02
- #define MCG_C2_EREFS (uint8_t)0x04
- #define MCG_C2_HGO0 (uint8_t)0x08
- #define MCG_C2_RANGE0(n) (uint8_t)(((n) & 0x03) << 4)
- #define MCG_C2_LOCRE0 (uint8_t)0x80
- #define MCG_C3 *(volatile uint8_t *)0x40064002
- #define MCG_C3_SCTRIM(n) (uint8_t)(n)
- #define MCG_C4 *(volatile uint8_t *)0x40064003
- #define MCG_C4_SCFTRIM (uint8_t)0x01
- #define MCG_C4_FCTRIM(n) (uint8_t)(((n) & 0x0F) << 1)
- #define MCG_C4_DRST_DRS(n) (uint8_t)(((n) & 0x03) << 5)
- #define MCG_C4_DMX32 (uint8_t)0x80
- #define MCG_C5 *(volatile uint8_t *)0x40064004
- #define MCG_C5_PRDIV0(n) (uint8_t)((n) & 0x1F)
- #define MCG_C5_PLLSTEN0 (uint8_t)0x20
- #define MCG_C5_PLLCLKEN0 (uint8_t)0x40
- #define MCG_C6 *(volatile uint8_t *)0x40064005
- #define MCG_C6_VDIV0(n) (uint8_t)((n) & 0x1F)
- #define MCG_C6_CME0 (uint8_t)0x20
- #define MCG_C6_PLLS (uint8_t)0x40
- #define MCG_C6_LOLIE0 (uint8_t)0x80
- #define MCG_S *(volatile uint8_t *)0x40064006
- #define MCG_S_IRCST (uint8_t)0x01
- #define MCG_S_OSCINIT0 (uint8_t)0x02
- #define MCG_S_CLKST(n) (uint8_t)(((n) & 0x03) << 2)
- #define MCG_S_CLKST_MASK (uint8_t)0x0C
- #define MCG_S_IREFST (uint8_t)0x10
- #define MCG_S_PLLST (uint8_t)0x20
- #define MCG_S_LOCK0 (uint8_t)0x40
- #define MCG_S_LOLS0 (uint8_t)0x80
- #define MCG_SC *(volatile uint8_t *)0x40064008
- #define MCG_SC_LOCS0 (uint8_t)0x01
- #define MCG_SC_FCRDIV(n) (uint8_t)(((n) & 0x07) << 1)
- #define MCG_SC_FLTPRSRV (uint8_t)0x10
- #define MCG_SC_ATMF (uint8_t)0x20
- #define MCG_SC_ATMS (uint8_t)0x40
- #define MCG_SC_ATME (uint8_t)0x80
- #define MCG_ATCVH *(volatile uint8_t *)0x4006400A
- #define MCG_ATCVL *(volatile uint8_t *)0x4006400B
- #define MCG_C7 *(volatile uint8_t *)0x4006400C
- #define MCG_C8 *(volatile uint8_t *)0x4006400D
-
-
- #define OSC0_CR *(volatile uint8_t *)0x40065000
- #define OSC_SC16P (uint8_t)0x01
- #define OSC_SC8P (uint8_t)0x02
- #define OSC_SC4P (uint8_t)0x04
- #define OSC_SC2P (uint8_t)0x08
- #define OSC_EREFSTEN (uint8_t)0x20
- #define OSC_ERCLKEN (uint8_t)0x80
-
-
- #define FMC_PFAPR *(volatile uint32_t *)0x4001F000
- #define FMC_PFB0CR *(volatile uint32_t *)0x4001F004
- #define FMC_TAGVDW0S0 *(volatile uint32_t *)0x4001F100
- #define FMC_TAGVDW0S1 *(volatile uint32_t *)0x4001F104
- #define FMC_TAGVDW1S0 *(volatile uint32_t *)0x4001F108
- #define FMC_TAGVDW1S1 *(volatile uint32_t *)0x4001F10C
- #define FMC_TAGVDW2S0 *(volatile uint32_t *)0x4001F110
- #define FMC_TAGVDW2S1 *(volatile uint32_t *)0x4001F114
- #define FMC_TAGVDW3S0 *(volatile uint32_t *)0x4001F118
- #define FMC_TAGVDW3S1 *(volatile uint32_t *)0x4001F11C
- #define FMC_DATAW0S0 *(volatile uint32_t *)0x4001F200
- #define FMC_DATAW0S1 *(volatile uint32_t *)0x4001F204
- #define FMC_DATAW1S0 *(volatile uint32_t *)0x4001F208
- #define FMC_DATAW1S1 *(volatile uint32_t *)0x4001F20C
- #define FMC_DATAW2S0 *(volatile uint32_t *)0x4001F210
- #define FMC_DATAW2S1 *(volatile uint32_t *)0x4001F214
- #define FMC_DATAW3S0 *(volatile uint32_t *)0x4001F218
- #define FMC_DATAW3S1 *(volatile uint32_t *)0x4001F21C
-
-
- #define FTFL_FSTAT *(volatile uint8_t *)0x40020000
- #define FTFL_FSTAT_CCIF (uint8_t)0x80
- #define FTFL_FSTAT_RDCOLERR (uint8_t)0x40
- #define FTFL_FSTAT_ACCERR (uint8_t)0x20
- #define FTFL_FSTAT_FPVIOL (uint8_t)0x10
- #define FTFL_FSTAT_MGSTAT0 (uint8_t)0x01
- #define FTFL_FCNFG *(volatile uint8_t *)0x40020001
- #define FTFL_FCNFG_CCIE (uint8_t)0x80
- #define FTFL_FCNFG_RDCOLLIE (uint8_t)0x40
- #define FTFL_FCNFG_ERSAREQ (uint8_t)0x20
- #define FTFL_FCNFG_ERSSUSP (uint8_t)0x10
- #define FTFL_FCNFG_PFLSH (uint8_t)0x04
- #define FTFL_FCNFG_RAMRDY (uint8_t)0x02
- #define FTFL_FCNFG_EEERDY (uint8_t)0x01
- #define FTFL_FSEC *(const uint8_t *)0x40020002
- #define FTFL_FOPT *(const uint8_t *)0x40020003
- #define FTFL_FCCOB3 *(volatile uint8_t *)0x40020004
- #define FTFL_FCCOB2 *(volatile uint8_t *)0x40020005
- #define FTFL_FCCOB1 *(volatile uint8_t *)0x40020006
- #define FTFL_FCCOB0 *(volatile uint8_t *)0x40020007
- #define FTFL_FCCOB7 *(volatile uint8_t *)0x40020008
- #define FTFL_FCCOB6 *(volatile uint8_t *)0x40020009
- #define FTFL_FCCOB5 *(volatile uint8_t *)0x4002000A
- #define FTFL_FCCOB4 *(volatile uint8_t *)0x4002000B
- #define FTFL_FCCOBB *(volatile uint8_t *)0x4002000C
- #define FTFL_FCCOBA *(volatile uint8_t *)0x4002000D
- #define FTFL_FCCOB9 *(volatile uint8_t *)0x4002000E
- #define FTFL_FCCOB8 *(volatile uint8_t *)0x4002000F
- #define FTFL_FPROT3 *(volatile uint8_t *)0x40020010
- #define FTFL_FPROT2 *(volatile uint8_t *)0x40020011
- #define FTFL_FPROT1 *(volatile uint8_t *)0x40020012
- #define FTFL_FPROT0 *(volatile uint8_t *)0x40020013
- #define FTFL_FEPROT *(volatile uint8_t *)0x40020016
- #define FTFL_FDPROT *(volatile uint8_t *)0x40020017
-
-
- #define CRC_CRC *(volatile uint32_t *)0x40032000
- #define CRC_GPOLY *(volatile uint32_t *)0x40032004
- #define CRC_CTRL *(volatile uint32_t *)0x40032008
-
-
- #define ADC0_SC1A *(volatile uint32_t *)0x4003B000
- #define ADC0_SC1B *(volatile uint32_t *)0x4003B004
- #define ADC_SC1_COCO (uint32_t)0x80
- #define ADC_SC1_AIEN (uint32_t)0x40
- #define ADC_SC1_DIFF (uint32_t)0x20
- #define ADC_SC1_ADCH(n) (uint32_t)((n) & 0x1F)
- #define ADC0_CFG1 *(volatile uint32_t *)0x4003B008
- #define ADC_CFG1_ADLPC (uint32_t)0x80
- #define ADC_CFG1_ADIV(n) (uint32_t)(((n) & 3) << 5)
- #define ADC_CFG1_ADLSMP (uint32_t)0x10
- #define ADC_CFG1_MODE(n) (uint32_t)(((n) & 3) << 2)
- #define ADC_CFG1_ADICLK(n) (uint32_t)(((n) & 3) << 0)
- #define ADC0_CFG2 *(volatile uint32_t *)0x4003B00C
- #define ADC_CFG2_MUXSEL (uint32_t)0x10
- #define ADC_CFG2_ADACKEN (uint32_t)0x08
- #define ADC_CFG2_ADHSC (uint32_t)0x04
- #define ADC_CFG2_ADLSTS(n) (uint32_t)(((n) & 3) << 0)
- #define ADC0_RA *(volatile uint32_t *)0x4003B010
- #define ADC0_RB *(volatile uint32_t *)0x4003B014
- #define ADC0_CV1 *(volatile uint32_t *)0x4003B018
- #define ADC0_CV2 *(volatile uint32_t *)0x4003B01C
- #define ADC0_SC2 *(volatile uint32_t *)0x4003B020
- #define ADC_SC2_ADACT (uint32_t)0x80
- #define ADC_SC2_ADTRG (uint32_t)0x40
- #define ADC_SC2_ACFE (uint32_t)0x20
- #define ADC_SC2_ACFGT (uint32_t)0x10
- #define ADC_SC2_ACREN (uint32_t)0x08
- #define ADC_SC2_DMAEN (uint32_t)0x04
- #define ADC_SC2_REFSEL(n) (uint32_t)(((n) & 3) << 0)
- #define ADC0_SC3 *(volatile uint32_t *)0x4003B024
- #define ADC_SC3_CAL (uint32_t)0x80
- #define ADC_SC3_CALF (uint32_t)0x40
- #define ADC_SC3_ADCO (uint32_t)0x08
- #define ADC_SC3_AVGE (uint32_t)0x04
- #define ADC_SC3_AVGS(n) (uint32_t)(((n) & 3) << 0)
- #define ADC0_OFS *(volatile uint32_t *)0x4003B028
- #define ADC0_PG *(volatile uint32_t *)0x4003B02C
- #define ADC0_MG *(volatile uint32_t *)0x4003B030
- #define ADC0_CLPD *(volatile uint32_t *)0x4003B034
- #define ADC0_CLPS *(volatile uint32_t *)0x4003B038
- #define ADC0_CLP4 *(volatile uint32_t *)0x4003B03C
- #define ADC0_CLP3 *(volatile uint32_t *)0x4003B040
- #define ADC0_CLP2 *(volatile uint32_t *)0x4003B044
- #define ADC0_CLP1 *(volatile uint32_t *)0x4003B048
- #define ADC0_CLP0 *(volatile uint32_t *)0x4003B04C
- #define ADC0_PGA *(volatile uint32_t *)0x4003B050
- #define ADC0_PGA_PGAEN (uint32_t)0x00800000
- #define ADC0_PGA_PGALPB (uint32_t)0x00100000
- #define ADC0_PGA_PGAG(n) (uint32_t)(((n) & 15) << 16)
- #define ADC0_CLMD *(volatile uint32_t *)0x4003B054
- #define ADC0_CLMS *(volatile uint32_t *)0x4003B058
- #define ADC0_CLM4 *(volatile uint32_t *)0x4003B05C
- #define ADC0_CLM3 *(volatile uint32_t *)0x4003B060
- #define ADC0_CLM2 *(volatile uint32_t *)0x4003B064
- #define ADC0_CLM1 *(volatile uint32_t *)0x4003B068
- #define ADC0_CLM0 *(volatile uint32_t *)0x4003B06C
-
- #define ADC1_SC1A *(volatile uint32_t *)0x400BB000
- #define ADC1_SC1B *(volatile uint32_t *)0x400BB004
- #define ADC1_CFG1 *(volatile uint32_t *)0x400BB008
- #define ADC1_CFG2 *(volatile uint32_t *)0x400BB00C
- #define ADC1_RA *(volatile uint32_t *)0x400BB010
- #define ADC1_RB *(volatile uint32_t *)0x400BB014
- #define ADC1_CV1 *(volatile uint32_t *)0x400BB018
- #define ADC1_CV2 *(volatile uint32_t *)0x400BB01C
- #define ADC1_SC2 *(volatile uint32_t *)0x400BB020
- #define ADC1_SC3 *(volatile uint32_t *)0x400BB024
- #define ADC1_OFS *(volatile uint32_t *)0x400BB028
- #define ADC1_PG *(volatile uint32_t *)0x400BB02C
- #define ADC1_MG *(volatile uint32_t *)0x400BB030
- #define ADC1_CLPD *(volatile uint32_t *)0x400BB034
- #define ADC1_CLPS *(volatile uint32_t *)0x400BB038
- #define ADC1_CLP4 *(volatile uint32_t *)0x400BB03C
- #define ADC1_CLP3 *(volatile uint32_t *)0x400BB040
- #define ADC1_CLP2 *(volatile uint32_t *)0x400BB044
- #define ADC1_CLP1 *(volatile uint32_t *)0x400BB048
- #define ADC1_CLP0 *(volatile uint32_t *)0x400BB04C
- #define ADC1_PGA *(volatile uint32_t *)0x400BB050
- #define ADC1_CLMD *(volatile uint32_t *)0x400BB054
- #define ADC1_CLMS *(volatile uint32_t *)0x400BB058
- #define ADC1_CLM4 *(volatile uint32_t *)0x400BB05C
- #define ADC1_CLM3 *(volatile uint32_t *)0x400BB060
- #define ADC1_CLM2 *(volatile uint32_t *)0x400BB064
- #define ADC1_CLM1 *(volatile uint32_t *)0x400BB068
- #define ADC1_CLM0 *(volatile uint32_t *)0x400BB06C
-
- #define DAC0_DAT0L *(volatile uint8_t *)0x400CC000
- #define DAC0_DATH *(volatile uint8_t *)0x400CC001
- #define DAC0_DAT1L *(volatile uint8_t *)0x400CC002
- #define DAC0_DAT2L *(volatile uint8_t *)0x400CC004
- #define DAC0_DAT3L *(volatile uint8_t *)0x400CC006
- #define DAC0_DAT4L *(volatile uint8_t *)0x400CC008
- #define DAC0_DAT5L *(volatile uint8_t *)0x400CC00A
- #define DAC0_DAT6L *(volatile uint8_t *)0x400CC00C
- #define DAC0_DAT7L *(volatile uint8_t *)0x400CC00E
- #define DAC0_DAT8L *(volatile uint8_t *)0x400CC010
- #define DAC0_DAT9L *(volatile uint8_t *)0x400CC012
- #define DAC0_DAT10L *(volatile uint8_t *)0x400CC014
- #define DAC0_DAT11L *(volatile uint8_t *)0x400CC016
- #define DAC0_DAT12L *(volatile uint8_t *)0x400CC018
- #define DAC0_DAT13L *(volatile uint8_t *)0x400CC01A
- #define DAC0_DAT14L *(volatile uint8_t *)0x400CC01C
- #define DAC0_DAT15L *(volatile uint8_t *)0x400CC01E
- #define DAC0_SR *(volatile uint8_t *)0x400CC020
- #define DAC0_C0 *(volatile uint8_t *)0x400CC021
- #define DAC_C0_DACEN 0x80
- #define DAC_C0_DACRFS 0x40
- #define DAC_C0_DACTRGSEL 0x20
- #define DAC_C0_DACSWTRG 0x10
- #define DAC_C0_LPEN 0x08
- #define DAC_C0_DACBWIEN 0x04
- #define DAC_C0_DACBTIEN 0x02
- #define DAC_C0_DACBBIEN 0x01
- #define DAC0_C1 *(volatile uint8_t *)0x400CC022
- #define DAC_C1_DMAEN 0x80
- #define DAC_C1_DACBFWM(n) (((n) & 3) << 3)
- #define DAC_C1_DACBFMD(n) (((n) & 3) << 0)
- #define DAC_C1_DACBFEN 0x00
-
- #define DAC0_C2 *(volatile uint8_t *)0x400CC023
- #define DAC_C2_DACBFRP(n) (((n) & 15) << 4)
- #define DAC_C2_DACBFUP(n) (((n) & 15) << 0)
-
-
-
-
-
-
- #define CMP0_CR0 *(volatile uint8_t *)0x40073000
- #define CMP0_CR1 *(volatile uint8_t *)0x40073001
- #define CMP0_FPR *(volatile uint8_t *)0x40073002
- #define CMP0_SCR *(volatile uint8_t *)0x40073003
- #define CMP0_DACCR *(volatile uint8_t *)0x40073004
- #define CMP0_MUXCR *(volatile uint8_t *)0x40073005
- #define CMP1_CR0 *(volatile uint8_t *)0x40073008
- #define CMP1_CR1 *(volatile uint8_t *)0x40073009
- #define CMP1_FPR *(volatile uint8_t *)0x4007300A
- #define CMP1_SCR *(volatile uint8_t *)0x4007300B
- #define CMP1_DACCR *(volatile uint8_t *)0x4007300C
- #define CMP1_MUXCR *(volatile uint8_t *)0x4007300D
-
-
- #define VREF_TRM *(volatile uint8_t *)0x40074000
- #define VREF_SC *(volatile uint8_t *)0x40074001
-
-
- #define PDB0_SC *(volatile uint32_t *)0x40036000
- #define PDB_SC_LDMOD(n) (((n) & 3) << 18)
- #define PDB_SC_PDBEIE 0x00020000
- #define PDB_SC_SWTRIG 0x00010000
- #define PDB_SC_DMAEN 0x00008000
- #define PDB_SC_PRESCALER(n) (((n) & 7) << 12)
- #define PDB_SC_TRGSEL(n) (((n) & 15) << 8)
- #define PDB_SC_PDBEN 0x00000080
- #define PDB_SC_PDBIF 0x00000040
- #define PDB_SC_PDBIE 0x00000020
- #define PDB_SC_MULT(n) (((n) & 3) << 2)
- #define PDB_SC_CONT 0x00000002
- #define PDB_SC_LDOK 0x00000001
- #define PDB0_MOD *(volatile uint32_t *)0x40036004
- #define PDB0_CNT *(volatile uint32_t *)0x40036008
- #define PDB0_IDLY *(volatile uint32_t *)0x4003600C
- #define PDB0_CH0C1 *(volatile uint32_t *)0x40036010
- #define PDB0_CH0S *(volatile uint32_t *)0x40036014
- #define PDB0_CH0DLY0 *(volatile uint32_t *)0x40036018
- #define PDB0_CH0DLY1 *(volatile uint32_t *)0x4003601C
- #define PDB0_POEN *(volatile uint32_t *)0x40036190
- #define PDB0_PO0DLY *(volatile uint32_t *)0x40036194
- #define PDB0_PO1DLY *(volatile uint32_t *)0x40036198
-
-
- #define FTM0_SC *(volatile uint32_t *)0x40038000
- #define FTM_SC_TOF 0x80
- #define FTM_SC_TOIE 0x40
- #define FTM_SC_CPWMS 0x20
- #define FTM_SC_CLKS(n) (((n) & 3) << 3)
- #define FTM_SC_PS(n) (((n) & 7) << 0)
- #define FTM0_CNT *(volatile uint32_t *)0x40038004
- #define FTM0_MOD *(volatile uint32_t *)0x40038008
- #define FTM0_C0SC *(volatile uint32_t *)0x4003800C
- #define FTM0_C0V *(volatile uint32_t *)0x40038010
- #define FTM0_C1SC *(volatile uint32_t *)0x40038014
- #define FTM0_C1V *(volatile uint32_t *)0x40038018
- #define FTM0_C2SC *(volatile uint32_t *)0x4003801C
- #define FTM0_C2V *(volatile uint32_t *)0x40038020
- #define FTM0_C3SC *(volatile uint32_t *)0x40038024
- #define FTM0_C3V *(volatile uint32_t *)0x40038028
- #define FTM0_C4SC *(volatile uint32_t *)0x4003802C
- #define FTM0_C4V *(volatile uint32_t *)0x40038030
- #define FTM0_C5SC *(volatile uint32_t *)0x40038034
- #define FTM0_C5V *(volatile uint32_t *)0x40038038
- #define FTM0_C6SC *(volatile uint32_t *)0x4003803C
- #define FTM0_C6V *(volatile uint32_t *)0x40038040
- #define FTM0_C7SC *(volatile uint32_t *)0x40038044
- #define FTM0_C7V *(volatile uint32_t *)0x40038048
- #define FTM0_CNTIN *(volatile uint32_t *)0x4003804C
- #define FTM0_STATUS *(volatile uint32_t *)0x40038050
- #define FTM0_MODE *(volatile uint32_t *)0x40038054
- #define FTM_MODE_FAULTIE 0x80
- #define FTM_MODE_FAULTM(n) (((n) & 3) << 5)
- #define FTM_MODE_CAPTEST 0x10
- #define FTM_MODE_PWMSYNC 0x08
- #define FTM_MODE_WPDIS 0x04
- #define FTM_MODE_INIT 0x02
- #define FTM_MODE_FTMEN 0x01
- #define FTM0_SYNC *(volatile uint32_t *)0x40038058
- #define FTM_SYNC_SWSYNC 0x80
- #define FTM_SYNC_TRIG2 0x40
- #define FTM_SYNC_TRIG1 0x20
- #define FTM_SYNC_TRIG0 0x10
- #define FTM_SYNC_SYNCHOM 0x08
- #define FTM_SYNC_REINIT 0x04
- #define FTM_SYNC_CNTMAX 0x02
- #define FTM_SYNC_CNTMIN 0x01
- #define FTM0_OUTINIT *(volatile uint32_t *)0x4003805C
- #define FTM0_OUTMASK *(volatile uint32_t *)0x40038060
- #define FTM0_COMBINE *(volatile uint32_t *)0x40038064
- #define FTM0_DEADTIME *(volatile uint32_t *)0x40038068
- #define FTM0_EXTTRIG *(volatile uint32_t *)0x4003806C
- #define FTM0_POL *(volatile uint32_t *)0x40038070
- #define FTM0_FMS *(volatile uint32_t *)0x40038074
- #define FTM0_FILTER *(volatile uint32_t *)0x40038078
- #define FTM0_FLTCTRL *(volatile uint32_t *)0x4003807C
- #define FTM0_QDCTRL *(volatile uint32_t *)0x40038080
- #define FTM0_CONF *(volatile uint32_t *)0x40038084
- #define FTM0_FLTPOL *(volatile uint32_t *)0x40038088
- #define FTM0_SYNCONF *(volatile uint32_t *)0x4003808C
- #define FTM0_INVCTRL *(volatile uint32_t *)0x40038090
- #define FTM0_SWOCTRL *(volatile uint32_t *)0x40038094
- #define FTM0_PWMLOAD *(volatile uint32_t *)0x40038098
- #define FTM1_SC *(volatile uint32_t *)0x40039000
- #define FTM1_CNT *(volatile uint32_t *)0x40039004
- #define FTM1_MOD *(volatile uint32_t *)0x40039008
- #define FTM1_C0SC *(volatile uint32_t *)0x4003900C
- #define FTM1_C0V *(volatile uint32_t *)0x40039010
- #define FTM1_C1SC *(volatile uint32_t *)0x40039014
- #define FTM1_C1V *(volatile uint32_t *)0x40039018
- #define FTM1_CNTIN *(volatile uint32_t *)0x4003904C
- #define FTM1_STATUS *(volatile uint32_t *)0x40039050
- #define FTM1_MODE *(volatile uint32_t *)0x40039054
- #define FTM1_SYNC *(volatile uint32_t *)0x40039058
- #define FTM1_OUTINIT *(volatile uint32_t *)0x4003905C
- #define FTM1_OUTMASK *(volatile uint32_t *)0x40039060
- #define FTM1_COMBINE *(volatile uint32_t *)0x40039064
- #define FTM1_DEADTIME *(volatile uint32_t *)0x40039068
- #define FTM1_EXTTRIG *(volatile uint32_t *)0x4003906C
- #define FTM1_POL *(volatile uint32_t *)0x40039070
- #define FTM1_FMS *(volatile uint32_t *)0x40039074
- #define FTM1_FILTER *(volatile uint32_t *)0x40039078
- #define FTM1_FLTCTRL *(volatile uint32_t *)0x4003907C
- #define FTM1_QDCTRL *(volatile uint32_t *)0x40039080
- #define FTM1_CONF *(volatile uint32_t *)0x40039084
- #define FTM1_FLTPOL *(volatile uint32_t *)0x40039088
- #define FTM1_SYNCONF *(volatile uint32_t *)0x4003908C
- #define FTM1_INVCTRL *(volatile uint32_t *)0x40039090
- #define FTM1_SWOCTRL *(volatile uint32_t *)0x40039094
- #define FTM1_PWMLOAD *(volatile uint32_t *)0x40039098
- #define FTM2_SC *(volatile uint32_t *)0x400B8000
- #define FTM2_CNT *(volatile uint32_t *)0x400B8004
- #define FTM2_MOD *(volatile uint32_t *)0x400B8008
- #define FTM2_C0SC *(volatile uint32_t *)0x400B800C
- #define FTM2_C0V *(volatile uint32_t *)0x400B8010
- #define FTM2_C1SC *(volatile uint32_t *)0x400B8014
- #define FTM2_C1V *(volatile uint32_t *)0x400B8018
- #define FTM2_CNTIN *(volatile uint32_t *)0x400B804C
- #define FTM2_STATUS *(volatile uint32_t *)0x400B8050
- #define FTM2_MODE *(volatile uint32_t *)0x400B8054
- #define FTM2_SYNC *(volatile uint32_t *)0x400B8058
- #define FTM2_OUTINIT *(volatile uint32_t *)0x400B805C
- #define FTM2_OUTMASK *(volatile uint32_t *)0x400B8060
- #define FTM2_COMBINE *(volatile uint32_t *)0x400B8064
- #define FTM2_DEADTIME *(volatile uint32_t *)0x400B8068
- #define FTM2_EXTTRIG *(volatile uint32_t *)0x400B806C
- #define FTM2_POL *(volatile uint32_t *)0x400B8070
- #define FTM2_FMS *(volatile uint32_t *)0x400B8074
- #define FTM2_FILTER *(volatile uint32_t *)0x400B8078
- #define FTM2_FLTCTRL *(volatile uint32_t *)0x400B807C
- #define FTM2_QDCTRL *(volatile uint32_t *)0x400B8080
- #define FTM2_CONF *(volatile uint32_t *)0x400B8084
- #define FTM2_FLTPOL *(volatile uint32_t *)0x400B8088
- #define FTM2_SYNCONF *(volatile uint32_t *)0x400B808C
- #define FTM2_INVCTRL *(volatile uint32_t *)0x400B8090
- #define FTM2_SWOCTRL *(volatile uint32_t *)0x400B8094
- #define FTM2_PWMLOAD *(volatile uint32_t *)0x400B8098
-
-
- #define PIT_MCR *(volatile uint32_t *)0x40037000
- #define PIT_LDVAL0 *(volatile uint32_t *)0x40037100
- #define PIT_CVAL0 *(volatile uint32_t *)0x40037104
- #define PIT_TCTRL0 *(volatile uint32_t *)0x40037108
- #define PIT_TFLG0 *(volatile uint32_t *)0x4003710C
- #define PIT_LDVAL1 *(volatile uint32_t *)0x40037110
- #define PIT_CVAL1 *(volatile uint32_t *)0x40037114
- #define PIT_TCTRL1 *(volatile uint32_t *)0x40037118
- #define PIT_TFLG1 *(volatile uint32_t *)0x4003711C
- #define PIT_LDVAL2 *(volatile uint32_t *)0x40037120
- #define PIT_CVAL2 *(volatile uint32_t *)0x40037124
- #define PIT_TCTRL2 *(volatile uint32_t *)0x40037128
- #define PIT_TFLG2 *(volatile uint32_t *)0x4003712C
- #define PIT_LDVAL3 *(volatile uint32_t *)0x40037130
- #define PIT_CVAL3 *(volatile uint32_t *)0x40037134
- #define PIT_TCTRL3 *(volatile uint32_t *)0x40037138
- #define PIT_TFLG3 *(volatile uint32_t *)0x4003713C
-
-
- #define LPTMR0_CSR *(volatile uint32_t *)0x40040000
- #define LPTMR0_PSR *(volatile uint32_t *)0x40040004
- #define LPTMR0_CMR *(volatile uint32_t *)0x40040008
- #define LPTMR0_CNR *(volatile uint32_t *)0x4004000C
-
-
- #define CMT_CGH1 *(volatile uint8_t *)0x40062000
- #define CMT_CGL1 *(volatile uint8_t *)0x40062001
- #define CMT_CGH2 *(volatile uint8_t *)0x40062002
- #define CMT_CGL2 *(volatile uint8_t *)0x40062003
- #define CMT_OC *(volatile uint8_t *)0x40062004
- #define CMT_MSC *(volatile uint8_t *)0x40062005
- #define CMT_CMD1 *(volatile uint8_t *)0x40062006
- #define CMT_CMD2 *(volatile uint8_t *)0x40062007
- #define CMT_CMD3 *(volatile uint8_t *)0x40062008
- #define CMT_CMD4 *(volatile uint8_t *)0x40062009
- #define CMT_PPS *(volatile uint8_t *)0x4006200A
- #define CMT_DMA *(volatile uint8_t *)0x4006200B
-
-
- #define RTC_TSR *(volatile uint32_t *)0x4003D000
- #define RTC_TPR *(volatile uint32_t *)0x4003D004
- #define RTC_TAR *(volatile uint32_t *)0x4003D008
- #define RTC_TCR *(volatile uint32_t *)0x4003D00C
- #define RTC_TCR_CIC(n) (((n) & 255) << 24)
- #define RTC_TCR_TCV(n) (((n) & 255) << 16)
- #define RTC_TCR_CIR(n) (((n) & 255) << 8)
- #define RTC_TCR_TCR(n) (((n) & 255) << 0)
- #define RTC_CR *(volatile uint32_t *)0x4003D010
- #define RTC_CR_SC2P (uint32_t)0x00002000
- #define RTC_CR_SC4P (uint32_t)0x00001000
- #define RTC_CR_SC8P (uint32_t)0x00000800
- #define RTC_CR_SC16P (uint32_t)0x00000400
- #define RTC_CR_CLKO (uint32_t)0x00000200
- #define RTC_CR_OSCE (uint32_t)0x00000100
- #define RTC_CR_UM (uint32_t)0x00000008
- #define RTC_CR_SUP (uint32_t)0x00000004
- #define RTC_CR_WPE (uint32_t)0x00000002
- #define RTC_CR_SWR (uint32_t)0x00000001
- #define RTC_SR *(volatile uint32_t *)0x4003D014
- #define RTC_SR_TCE (uint32_t)0x00000010
- #define RTC_SR_TAF (uint32_t)0x00000004
- #define RTC_SR_TOF (uint32_t)0x00000002
- #define RTC_SR_TIF (uint32_t)0x00000001
- #define RTC_LR *(volatile uint32_t *)0x4003D018
- #define RTC_IER *(volatile uint32_t *)0x4003D01C
- #define RTC_WAR *(volatile uint32_t *)0x4003D800
- #define RTC_RAR *(volatile uint32_t *)0x4003D804
-
-
- #define USB0_PERID *(const uint8_t *)0x40072000
- #define USB0_IDCOMP *(const uint8_t *)0x40072004
- #define USB0_REV *(const uint8_t *)0x40072008
- #define USB0_ADDINFO *(volatile uint8_t *)0x4007200C
- #define USB0_OTGISTAT *(volatile uint8_t *)0x40072010
- #define USB_OTGISTAT_IDCHG (uint8_t)0x80
- #define USB_OTGISTAT_ONEMSEC (uint8_t)0x40
- #define USB_OTGISTAT_LINE_STATE_CHG (uint8_t)0x20
- #define USB_OTGISTAT_SESSVLDCHG (uint8_t)0x08
- #define USB_OTGISTAT_B_SESS_CHG (uint8_t)0x04
- #define USB_OTGISTAT_AVBUSCHG (uint8_t)0x01
- #define USB0_OTGICR *(volatile uint8_t *)0x40072014
- #define USB_OTGICR_IDEN (uint8_t)0x80
- #define USB_OTGICR_ONEMSECEN (uint8_t)0x40
- #define USB_OTGICR_LINESTATEEN (uint8_t)0x20
- #define USB_OTGICR_SESSVLDEN (uint8_t)0x08
- #define USB_OTGICR_BSESSEN (uint8_t)0x04
- #define USB_OTGICR_AVBUSEN (uint8_t)0x01
- #define USB0_OTGSTAT *(volatile uint8_t *)0x40072018
- #define USB_OTGSTAT_ID (uint8_t)0x80
- #define USB_OTGSTAT_ONEMSECEN (uint8_t)0x40
- #define USB_OTGSTAT_LINESTATESTABLE (uint8_t)0x20
- #define USB_OTGSTAT_SESS_VLD (uint8_t)0x08
- #define USB_OTGSTAT_BSESSEND (uint8_t)0x04
- #define USB_OTGSTAT_AVBUSVLD (uint8_t)0x01
- #define USB0_OTGCTL *(volatile uint8_t *)0x4007201C
- #define USB_OTGCTL_DPHIGH (uint8_t)0x80
- #define USB_OTGCTL_DPLOW (uint8_t)0x20
- #define USB_OTGCTL_DMLOW (uint8_t)0x10
- #define USB_OTGCTL_OTGEN (uint8_t)0x04
- #define USB0_ISTAT *(volatile uint8_t *)0x40072080
- #define USB_ISTAT_STALL (uint8_t)0x80
- #define USB_ISTAT_ATTACH (uint8_t)0x40
- #define USB_ISTAT_RESUME (uint8_t)0x20
- #define USB_ISTAT_SLEEP (uint8_t)0x10
- #define USB_ISTAT_TOKDNE (uint8_t)0x08
- #define USB_ISTAT_SOFTOK (uint8_t)0x04
- #define USB_ISTAT_ERROR (uint8_t)0x02
- #define USB_ISTAT_USBRST (uint8_t)0x01
- #define USB0_INTEN *(volatile uint8_t *)0x40072084
- #define USB_INTEN_STALLEN (uint8_t)0x80
- #define USB_INTEN_ATTACHEN (uint8_t)0x40
- #define USB_INTEN_RESUMEEN (uint8_t)0x20
- #define USB_INTEN_SLEEPEN (uint8_t)0x10
- #define USB_INTEN_TOKDNEEN (uint8_t)0x08
- #define USB_INTEN_SOFTOKEN (uint8_t)0x04
- #define USB_INTEN_ERROREN (uint8_t)0x02
- #define USB_INTEN_USBRSTEN (uint8_t)0x01
- #define USB0_ERRSTAT *(volatile uint8_t *)0x40072088
- #define USB_ERRSTAT_BTSERR (uint8_t)0x80
- #define USB_ERRSTAT_DMAERR (uint8_t)0x20
- #define USB_ERRSTAT_BTOERR (uint8_t)0x10
- #define USB_ERRSTAT_DFN8 (uint8_t)0x08
- #define USB_ERRSTAT_CRC16 (uint8_t)0x04
- #define USB_ERRSTAT_CRC5EOF (uint8_t)0x02
- #define USB_ERRSTAT_PIDERR (uint8_t)0x01
- #define USB0_ERREN *(volatile uint8_t *)0x4007208C
- #define USB_ERREN_BTSERREN (uint8_t)0x80
- #define USB_ERREN_DMAERREN (uint8_t)0x20
- #define USB_ERREN_BTOERREN (uint8_t)0x10
- #define USB_ERREN_DFN8EN (uint8_t)0x08
- #define USB_ERREN_CRC16EN (uint8_t)0x04
- #define USB_ERREN_CRC5EOFEN (uint8_t)0x02
- #define USB_ERREN_PIDERREN (uint8_t)0x01
- #define USB0_STAT *(volatile uint8_t *)0x40072090
- #define USB_STAT_TX (uint8_t)0x08
- #define USB_STAT_ODD (uint8_t)0x04
- #define USB_STAT_ENDP(n) (uint8_t)((n) >> 4)
- #define USB0_CTL *(volatile uint8_t *)0x40072094
- #define USB_CTL_JSTATE (uint8_t)0x80
- #define USB_CTL_SE0 (uint8_t)0x40
- #define USB_CTL_TXSUSPENDTOKENBUSY (uint8_t)0x20
- #define USB_CTL_RESET (uint8_t)0x10
- #define USB_CTL_HOSTMODEEN (uint8_t)0x08
- #define USB_CTL_RESUME (uint8_t)0x04
- #define USB_CTL_ODDRST (uint8_t)0x02
- #define USB_CTL_USBENSOFEN (uint8_t)0x01
- #define USB0_ADDR *(volatile uint8_t *)0x40072098
- #define USB0_BDTPAGE1 *(volatile uint8_t *)0x4007209C
- #define USB0_FRMNUML *(volatile uint8_t *)0x400720A0
- #define USB0_FRMNUMH *(volatile uint8_t *)0x400720A4
- #define USB0_TOKEN *(volatile uint8_t *)0x400720A8
- #define USB0_SOFTHLD *(volatile uint8_t *)0x400720AC
- #define USB0_BDTPAGE2 *(volatile uint8_t *)0x400720B0
- #define USB0_BDTPAGE3 *(volatile uint8_t *)0x400720B4
- #define USB0_ENDPT0 *(volatile uint8_t *)0x400720C0
- #define USB_ENDPT_HOSTWOHUB (uint8_t)0x80
- #define USB_ENDPT_RETRYDIS (uint8_t)0x40
- #define USB_ENDPT_EPCTLDIS (uint8_t)0x10
- #define USB_ENDPT_EPRXEN (uint8_t)0x08
- #define USB_ENDPT_EPTXEN (uint8_t)0x04
- #define USB_ENDPT_EPSTALL (uint8_t)0x02
- #define USB_ENDPT_EPHSHK (uint8_t)0x01
- #define USB0_ENDPT1 *(volatile uint8_t *)0x400720C4
- #define USB0_ENDPT2 *(volatile uint8_t *)0x400720C8
- #define USB0_ENDPT3 *(volatile uint8_t *)0x400720CC
- #define USB0_ENDPT4 *(volatile uint8_t *)0x400720D0
- #define USB0_ENDPT5 *(volatile uint8_t *)0x400720D4
- #define USB0_ENDPT6 *(volatile uint8_t *)0x400720D8
- #define USB0_ENDPT7 *(volatile uint8_t *)0x400720DC
- #define USB0_ENDPT8 *(volatile uint8_t *)0x400720E0
- #define USB0_ENDPT9 *(volatile uint8_t *)0x400720E4
- #define USB0_ENDPT10 *(volatile uint8_t *)0x400720E8
- #define USB0_ENDPT11 *(volatile uint8_t *)0x400720EC
- #define USB0_ENDPT12 *(volatile uint8_t *)0x400720F0
- #define USB0_ENDPT13 *(volatile uint8_t *)0x400720F4
- #define USB0_ENDPT14 *(volatile uint8_t *)0x400720F8
- #define USB0_ENDPT15 *(volatile uint8_t *)0x400720FC
- #define USB0_USBCTRL *(volatile uint8_t *)0x40072100
- #define USB_USBCTRL_SUSP (uint8_t)0x80
- #define USB_USBCTRL_PDE (uint8_t)0x40
- #define USB0_OBSERVE *(volatile uint8_t *)0x40072104
- #define USB_OBSERVE_DPPU (uint8_t)0x80
- #define USB_OBSERVE_DPPD (uint8_t)0x40
- #define USB_OBSERVE_DMPD (uint8_t)0x10
- #define USB0_CONTROL *(volatile uint8_t *)0x40072108
- #define USB_CONTROL_DPPULLUPNONOTG (uint8_t)0x10
- #define USB0_USBTRC0 *(volatile uint8_t *)0x4007210C
- #define USB_USBTRC_USBRESET (uint8_t)0x80
- #define USB_USBTRC_USBRESMEN (uint8_t)0x20
- #define USB_USBTRC_SYNC_DET (uint8_t)0x02
- #define USB_USBTRC_USB_RESUME_INT (uint8_t)0x01
- #define USB0_USBFRMADJUST *(volatile uint8_t *)0x40072114
-
-
- #define USBDCD_CONTROL *(volatile uint32_t *)0x40035000
- #define USBDCD_CLOCK *(volatile uint32_t *)0x40035004
- #define USBDCD_STATUS *(volatile uint32_t *)0x40035008
- #define USBDCD_TIMER0 *(volatile uint32_t *)0x40035010
- #define USBDCD_TIMER1 *(volatile uint32_t *)0x40035014
- #define USBDCD_TIMER2 *(volatile uint32_t *)0x40035018
-
-
- #define SPI0_MCR *(volatile uint32_t *)0x4002C000
- #define SPI_MCR_MSTR (uint32_t)0x80000000
- #define SPI_MCR_CONT_SCKE (uint32_t)0x40000000
- #define SPI_MCR_DCONF(n) (((n) & 3) << 28)
- #define SPI_MCR_FRZ (uint32_t)0x08000000
- #define SPI_MCR_MTFE (uint32_t)0x04000000
- #define SPI_MCR_ROOE (uint32_t)0x01000000
- #define SPI_MCR_PCSIS(n) (((n) & 0x1F) << 16)
- #define SPI_MCR_DOZE (uint32_t)0x00008000
- #define SPI_MCR_MDIS (uint32_t)0x00004000
- #define SPI_MCR_DIS_TXF (uint32_t)0x00002000
- #define SPI_MCR_DIS_RXF (uint32_t)0x00001000
- #define SPI_MCR_CLR_TXF (uint32_t)0x00000800
- #define SPI_MCR_CLR_RXF (uint32_t)0x00000400
- #define SPI_MCR_SMPL_PT(n) (((n) & 3) << 8)
- #define SPI_MCR_HALT (uint32_t)0x00000001
- #define SPI0_TCR *(volatile uint32_t *)0x4002C008
- #define SPI0_CTAR0 *(volatile uint32_t *)0x4002C00C
- #define SPI_CTAR_DBR (uint32_t)0x80000000
- #define SPI_CTAR_FMSZ(n) (((n) & 15) << 27)
- #define SPI_CTAR_CPOL (uint32_t)0x04000000
- #define SPI_CTAR_CPHA (uint32_t)0x02000000
- #define SPI_CTAR_LSBFE (uint32_t)0x01000000
- #define SPI_CTAR_PCSSCK(n) (((n) & 3) << 22)
- #define SPI_CTAR_PASC(n) (((n) & 3) << 20)
- #define SPI_CTAR_PDT(n) (((n) & 3) << 18)
- #define SPI_CTAR_PBR(n) (((n) & 3) << 16)
- #define SPI_CTAR_CSSCK(n) (((n) & 15) << 12)
- #define SPI_CTAR_ASC(n) (((n) & 15) << 8)
- #define SPI_CTAR_DT(n) (((n) & 15) << 4)
- #define SPI_CTAR_BR(n) (((n) & 15) << 0)
- #define SPI0_CTAR0_SLAVE *(volatile uint32_t *)0x4002C00C
- #define SPI0_CTAR1 *(volatile uint32_t *)0x4002C010
- #define SPI0_SR *(volatile uint32_t *)0x4002C02C
- #define SPI_SR_TCF (uint32_t)0x80000000
- #define SPI_SR_TXRXS (uint32_t)0x40000000
- #define SPI_SR_EOQF (uint32_t)0x10000000
- #define SPI_SR_TFUF (uint32_t)0x08000000
- #define SPI_SR_TFFF (uint32_t)0x02000000
- #define SPI_SR_RFOF (uint32_t)0x00080000
- #define SPI_SR_RFDF (uint32_t)0x00020000
- #define SPI0_RSER *(volatile uint32_t *)0x4002C030
- #define SPI_RSER_TCF_RE (uint32_t)0x80000000
- #define SPI_RSER_EOQF_RE (uint32_t)0x10000000
- #define SPI_RSER_TFUF_RE (uint32_t)0x08000000
- #define SPI_RSER_TFFF_RE (uint32_t)0x02000000
- #define SPI_RSER_TFFF_DIRS (uint32_t)0x01000000
- #define SPI_RSER_RFOF_RE (uint32_t)0x00080000
- #define SPI_RSER_RFDF_RE (uint32_t)0x00020000
- #define SPI_RSER_RFDF_DIRS (uint32_t)0x00010000
- #define SPI0_PUSHR *(volatile uint32_t *)0x4002C034
- #define SPI_PUSHR_CONT (uint32_t)0x80000000
- #define SPI_PUSHR_CTAS(n) (((n) & 7) << 28)
- #define SPI_PUSHR_EOQ (uint32_t)0x08000000
- #define SPI_PUSHR_CTCNT (uint32_t)0x04000000
- #define SPI_PUSHR_PCS(n) (((n) & 31) << 16)
- #define SPI0_PUSHR_SLAVE *(volatile uint32_t *)0x4002C034
- #define SPI0_POPR *(volatile uint32_t *)0x4002C038
- #define SPI0_TXFR0 *(volatile uint32_t *)0x4002C03C
- #define SPI0_TXFR1 *(volatile uint32_t *)0x4002C040
- #define SPI0_TXFR2 *(volatile uint32_t *)0x4002C044
- #define SPI0_TXFR3 *(volatile uint32_t *)0x4002C048
- #define SPI0_RXFR0 *(volatile uint32_t *)0x4002C07C
- #define SPI0_RXFR1 *(volatile uint32_t *)0x4002C080
- #define SPI0_RXFR2 *(volatile uint32_t *)0x4002C084
- #define SPI0_RXFR3 *(volatile uint32_t *)0x4002C088
- typedef struct {
- volatile uint32_t MCR;
- volatile uint32_t unused1;
- volatile uint32_t TCR;
- volatile uint32_t CTAR0;
- volatile uint32_t CTAR1;
- volatile uint32_t CTAR2;
- volatile uint32_t CTAR3;
- volatile uint32_t CTAR4;
- volatile uint32_t CTAR5;
- volatile uint32_t CTAR6;
- volatile uint32_t CTAR7;
- volatile uint32_t SR;
- volatile uint32_t RSER;
- volatile uint32_t PUSHR;
- volatile uint32_t POPR;
- volatile uint32_t TXFR[16];
- volatile uint32_t RXFR[16];
- } SPI_t;
- #define SPI0 (*(SPI_t *)0x4002C000)
-
-
- #define I2C0_A1 *(volatile uint8_t *)0x40066000
- #define I2C0_F *(volatile uint8_t *)0x40066001
- #define I2C0_C1 *(volatile uint8_t *)0x40066002
- #define I2C_C1_IICEN (uint8_t)0x80
- #define I2C_C1_IICIE (uint8_t)0x40
- #define I2C_C1_MST (uint8_t)0x20
- #define I2C_C1_TX (uint8_t)0x10
- #define I2C_C1_TXAK (uint8_t)0x08
- #define I2C_C1_RSTA (uint8_t)0x04
- #define I2C_C1_WUEN (uint8_t)0x02
- #define I2C_C1_DMAEN (uint8_t)0x01
- #define I2C0_S *(volatile uint8_t *)0x40066003
- #define I2C_S_TCF (uint8_t)0x80
- #define I2C_S_IAAS (uint8_t)0x40
- #define I2C_S_BUSY (uint8_t)0x20
- #define I2C_S_ARBL (uint8_t)0x10
- #define I2C_S_RAM (uint8_t)0x08
- #define I2C_S_SRW (uint8_t)0x04
- #define I2C_S_IICIF (uint8_t)0x02
- #define I2C_S_RXAK (uint8_t)0x01
- #define I2C0_D *(volatile uint8_t *)0x40066004
- #define I2C0_C2 *(volatile uint8_t *)0x40066005
- #define I2C_C2_GCAEN (uint8_t)0x80
- #define I2C_C2_ADEXT (uint8_t)0x40
- #define I2C_C2_HDRS (uint8_t)0x20
- #define I2C_C2_SBRC (uint8_t)0x10
- #define I2C_C2_RMEN (uint8_t)0x08
- #define I2C_C2_AD(n) ((n) & 7)
- #define I2C0_FLT *(volatile uint8_t *)0x40066006
- #define I2C0_RA *(volatile uint8_t *)0x40066007
- #define I2C0_SMB *(volatile uint8_t *)0x40066008
- #define I2C0_A2 *(volatile uint8_t *)0x40066009
- #define I2C0_SLTH *(volatile uint8_t *)0x4006600A
- #define I2C0_SLTL *(volatile uint8_t *)0x4006600B
-
- #define I2C1_A1 *(volatile uint8_t *)0x40067000
- #define I2C1_F *(volatile uint8_t *)0x40067001
- #define I2C1_C1 *(volatile uint8_t *)0x40067002
- #define I2C1_S *(volatile uint8_t *)0x40067003
- #define I2C1_D *(volatile uint8_t *)0x40067004
- #define I2C1_C2 *(volatile uint8_t *)0x40067005
- #define I2C1_FLT *(volatile uint8_t *)0x40067006
- #define I2C1_RA *(volatile uint8_t *)0x40067007
- #define I2C1_SMB *(volatile uint8_t *)0x40067008
- #define I2C1_A2 *(volatile uint8_t *)0x40067009
- #define I2C1_SLTH *(volatile uint8_t *)0x4006700A
- #define I2C1_SLTL *(volatile uint8_t *)0x4006700B
-
-
- #define UART0_BDH *(volatile uint8_t *)0x4006A000
- #define UART0_BDL *(volatile uint8_t *)0x4006A001
- #define UART0_C1 *(volatile uint8_t *)0x4006A002
- #define UART_C1_LOOPS (uint8_t)0x80
- #define UART_C1_UARTSWAI (uint8_t)0x40
- #define UART_C1_RSRC (uint8_t)0x20
- #define UART_C1_M (uint8_t)0x10
- #define UART_C1_WAKE (uint8_t)0x08
- #define UART_C1_ILT (uint8_t)0x04
- #define UART_C1_PE (uint8_t)0x02
- #define UART_C1_PT (uint8_t)0x01
- #define UART0_C2 *(volatile uint8_t *)0x4006A003
- #define UART_C2_TIE (uint8_t)0x80
- #define UART_C2_TCIE (uint8_t)0x40
- #define UART_C2_RIE (uint8_t)0x20
- #define UART_C2_ILIE (uint8_t)0x10
- #define UART_C2_TE (uint8_t)0x08
- #define UART_C2_RE (uint8_t)0x04
- #define UART_C2_RWU (uint8_t)0x02
- #define UART_C2_SBK (uint8_t)0x01
- #define UART0_S1 *(volatile uint8_t *)0x4006A004
- #define UART_S1_TDRE (uint8_t)0x80
- #define UART_S1_TC (uint8_t)0x40
- #define UART_S1_RDRF (uint8_t)0x20
- #define UART_S1_IDLE (uint8_t)0x10
- #define UART_S1_OR (uint8_t)0x08
- #define UART_S1_NF (uint8_t)0x04
- #define UART_S1_FE (uint8_t)0x02
- #define UART_S1_PF (uint8_t)0x01
- #define UART0_S2 *(volatile uint8_t *)0x4006A005
- #define UART0_C3 *(volatile uint8_t *)0x4006A006
- #define UART0_D *(volatile uint8_t *)0x4006A007
- #define UART0_MA1 *(volatile uint8_t *)0x4006A008
- #define UART0_MA2 *(volatile uint8_t *)0x4006A009
- #define UART0_C4 *(volatile uint8_t *)0x4006A00A
- #define UART0_C5 *(volatile uint8_t *)0x4006A00B
- #define UART0_ED *(volatile uint8_t *)0x4006A00C
- #define UART0_MODEM *(volatile uint8_t *)0x4006A00D
- #define UART0_IR *(volatile uint8_t *)0x4006A00E
- #define UART0_PFIFO *(volatile uint8_t *)0x4006A010
- #define UART_PFIFO_TXFE (uint8_t)0x80
- #define UART_PFIFO_RXFE (uint8_t)0x08
- #define UART0_CFIFO *(volatile uint8_t *)0x4006A011
- #define UART_CFIFO_TXFLUSH (uint8_t)0x80
- #define UART_CFIFO_RXFLUSH (uint8_t)0x40
- #define UART_CFIFO_RXOFE (uint8_t)0x04
- #define UART_CFIFO_TXOFE (uint8_t)0x02
- #define UART_CFIFO_RXUFE (uint8_t)0x01
- #define UART0_SFIFO *(volatile uint8_t *)0x4006A012
- #define UART_SFIFO_TXEMPT (uint8_t)0x80
- #define UART_SFIFO_RXEMPT (uint8_t)0x40
- #define UART_SFIFO_RXOF (uint8_t)0x04
- #define UART_SFIFO_TXOF (uint8_t)0x02
- #define UART_SFIFO_RXUF (uint8_t)0x01
- #define UART0_TWFIFO *(volatile uint8_t *)0x4006A013
- #define UART0_TCFIFO *(volatile uint8_t *)0x4006A014
- #define UART0_RWFIFO *(volatile uint8_t *)0x4006A015
- #define UART0_RCFIFO *(volatile uint8_t *)0x4006A016
- #define UART0_C7816 *(volatile uint8_t *)0x4006A018
- #define UART0_IE7816 *(volatile uint8_t *)0x4006A019
- #define UART0_IS7816 *(volatile uint8_t *)0x4006A01A
- #define UART0_WP7816T0 *(volatile uint8_t *)0x4006A01B
- #define UART0_WP7816T1 *(volatile uint8_t *)0x4006A01B
- #define UART0_WN7816 *(volatile uint8_t *)0x4006A01C
- #define UART0_WF7816 *(volatile uint8_t *)0x4006A01D
- #define UART0_ET7816 *(volatile uint8_t *)0x4006A01E
- #define UART0_TL7816 *(volatile uint8_t *)0x4006A01F
- #define UART0_C6 *(volatile uint8_t *)0x4006A021
- #define UART0_PCTH *(volatile uint8_t *)0x4006A022
- #define UART0_PCTL *(volatile uint8_t *)0x4006A023
- #define UART0_B1T *(volatile uint8_t *)0x4006A024
- #define UART0_SDTH *(volatile uint8_t *)0x4006A025
- #define UART0_SDTL *(volatile uint8_t *)0x4006A026
- #define UART0_PRE *(volatile uint8_t *)0x4006A027
- #define UART0_TPL *(volatile uint8_t *)0x4006A028
- #define UART0_IE *(volatile uint8_t *)0x4006A029
- #define UART0_WB *(volatile uint8_t *)0x4006A02A
- #define UART0_S3 *(volatile uint8_t *)0x4006A02B
- #define UART0_S4 *(volatile uint8_t *)0x4006A02C
- #define UART0_RPL *(volatile uint8_t *)0x4006A02D
- #define UART0_RPREL *(volatile uint8_t *)0x4006A02E
- #define UART0_CPW *(volatile uint8_t *)0x4006A02F
- #define UART0_RIDT *(volatile uint8_t *)0x4006A030
- #define UART0_TIDT *(volatile uint8_t *)0x4006A031
- #define UART1_BDH *(volatile uint8_t *)0x4006B000
- #define UART1_BDL *(volatile uint8_t *)0x4006B001
- #define UART1_C1 *(volatile uint8_t *)0x4006B002
- #define UART1_C2 *(volatile uint8_t *)0x4006B003
- #define UART1_S1 *(volatile uint8_t *)0x4006B004
- #define UART1_S2 *(volatile uint8_t *)0x4006B005
- #define UART1_C3 *(volatile uint8_t *)0x4006B006
- #define UART1_D *(volatile uint8_t *)0x4006B007
- #define UART1_MA1 *(volatile uint8_t *)0x4006B008
- #define UART1_MA2 *(volatile uint8_t *)0x4006B009
- #define UART1_C4 *(volatile uint8_t *)0x4006B00A
- #define UART1_C5 *(volatile uint8_t *)0x4006B00B
- #define UART1_ED *(volatile uint8_t *)0x4006B00C
- #define UART1_MODEM *(volatile uint8_t *)0x4006B00D
- #define UART1_IR *(volatile uint8_t *)0x4006B00E
- #define UART1_PFIFO *(volatile uint8_t *)0x4006B010
- #define UART1_CFIFO *(volatile uint8_t *)0x4006B011
- #define UART1_SFIFO *(volatile uint8_t *)0x4006B012
- #define UART1_TWFIFO *(volatile uint8_t *)0x4006B013
- #define UART1_TCFIFO *(volatile uint8_t *)0x4006B014
- #define UART1_RWFIFO *(volatile uint8_t *)0x4006B015
- #define UART1_RCFIFO *(volatile uint8_t *)0x4006B016
- #define UART1_C7816 *(volatile uint8_t *)0x4006B018
- #define UART1_IE7816 *(volatile uint8_t *)0x4006B019
- #define UART1_IS7816 *(volatile uint8_t *)0x4006B01A
- #define UART1_WP7816T0 *(volatile uint8_t *)0x4006B01B
- #define UART1_WP7816T1 *(volatile uint8_t *)0x4006B01B
- #define UART1_WN7816 *(volatile uint8_t *)0x4006B01C
- #define UART1_WF7816 *(volatile uint8_t *)0x4006B01D
- #define UART1_ET7816 *(volatile uint8_t *)0x4006B01E
- #define UART1_TL7816 *(volatile uint8_t *)0x4006B01F
- #define UART1_C6 *(volatile uint8_t *)0x4006B021
- #define UART1_PCTH *(volatile uint8_t *)0x4006B022
- #define UART1_PCTL *(volatile uint8_t *)0x4006B023
- #define UART1_B1T *(volatile uint8_t *)0x4006B024
- #define UART1_SDTH *(volatile uint8_t *)0x4006B025
- #define UART1_SDTL *(volatile uint8_t *)0x4006B026
- #define UART1_PRE *(volatile uint8_t *)0x4006B027
- #define UART1_TPL *(volatile uint8_t *)0x4006B028
- #define UART1_IE *(volatile uint8_t *)0x4006B029
- #define UART1_WB *(volatile uint8_t *)0x4006B02A
- #define UART1_S3 *(volatile uint8_t *)0x4006B02B
- #define UART1_S4 *(volatile uint8_t *)0x4006B02C
- #define UART1_RPL *(volatile uint8_t *)0x4006B02D
- #define UART1_RPREL *(volatile uint8_t *)0x4006B02E
- #define UART1_CPW *(volatile uint8_t *)0x4006B02F
- #define UART1_RIDT *(volatile uint8_t *)0x4006B030
- #define UART1_TIDT *(volatile uint8_t *)0x4006B031
- #define UART2_BDH *(volatile uint8_t *)0x4006C000
- #define UART2_BDL *(volatile uint8_t *)0x4006C001
- #define UART2_C1 *(volatile uint8_t *)0x4006C002
- #define UART2_C2 *(volatile uint8_t *)0x4006C003
- #define UART2_S1 *(volatile uint8_t *)0x4006C004
- #define UART2_S2 *(volatile uint8_t *)0x4006C005
- #define UART2_C3 *(volatile uint8_t *)0x4006C006
- #define UART2_D *(volatile uint8_t *)0x4006C007
- #define UART2_MA1 *(volatile uint8_t *)0x4006C008
- #define UART2_MA2 *(volatile uint8_t *)0x4006C009
- #define UART2_C4 *(volatile uint8_t *)0x4006C00A
- #define UART2_C5 *(volatile uint8_t *)0x4006C00B
- #define UART2_ED *(volatile uint8_t *)0x4006C00C
- #define UART2_MODEM *(volatile uint8_t *)0x4006C00D
- #define UART2_IR *(volatile uint8_t *)0x4006C00E
- #define UART2_PFIFO *(volatile uint8_t *)0x4006C010
- #define UART2_CFIFO *(volatile uint8_t *)0x4006C011
- #define UART2_SFIFO *(volatile uint8_t *)0x4006C012
- #define UART2_TWFIFO *(volatile uint8_t *)0x4006C013
- #define UART2_TCFIFO *(volatile uint8_t *)0x4006C014
- #define UART2_RWFIFO *(volatile uint8_t *)0x4006C015
- #define UART2_RCFIFO *(volatile uint8_t *)0x4006C016
- #define UART2_C7816 *(volatile uint8_t *)0x4006C018
- #define UART2_IE7816 *(volatile uint8_t *)0x4006C019
- #define UART2_IS7816 *(volatile uint8_t *)0x4006C01A
- #define UART2_WP7816T0 *(volatile uint8_t *)0x4006C01B
- #define UART2_WP7816T1 *(volatile uint8_t *)0x4006C01B
- #define UART2_WN7816 *(volatile uint8_t *)0x4006C01C
- #define UART2_WF7816 *(volatile uint8_t *)0x4006C01D
- #define UART2_ET7816 *(volatile uint8_t *)0x4006C01E
- #define UART2_TL7816 *(volatile uint8_t *)0x4006C01F
- #define UART2_C6 *(volatile uint8_t *)0x4006C021
- #define UART2_PCTH *(volatile uint8_t *)0x4006C022
- #define UART2_PCTL *(volatile uint8_t *)0x4006C023
- #define UART2_B1T *(volatile uint8_t *)0x4006C024
- #define UART2_SDTH *(volatile uint8_t *)0x4006C025
- #define UART2_SDTL *(volatile uint8_t *)0x4006C026
- #define UART2_PRE *(volatile uint8_t *)0x4006C027
- #define UART2_TPL *(volatile uint8_t *)0x4006C028
- #define UART2_IE *(volatile uint8_t *)0x4006C029
- #define UART2_WB *(volatile uint8_t *)0x4006C02A
- #define UART2_S3 *(volatile uint8_t *)0x4006C02B
- #define UART2_S4 *(volatile uint8_t *)0x4006C02C
- #define UART2_RPL *(volatile uint8_t *)0x4006C02D
- #define UART2_RPREL *(volatile uint8_t *)0x4006C02E
- #define UART2_CPW *(volatile uint8_t *)0x4006C02F
- #define UART2_RIDT *(volatile uint8_t *)0x4006C030
- #define UART2_TIDT *(volatile uint8_t *)0x4006C031
-
-
- #define I2S0_TCSR *(volatile uint32_t *)0x4002F000
- #define I2S_TCSR_TE (uint32_t)0x80000000
- #define I2S_TCSR_STOPE (uint32_t)0x40000000
- #define I2S_TCSR_DBGE (uint32_t)0x20000000
- #define I2S_TCSR_BCE (uint32_t)0x10000000
- #define I2S_TCSR_FR (uint32_t)0x02000000
- #define I2S_TCSR_SR (uint32_t)0x01000000
- #define I2S_TCSR_WSF (uint32_t)0x00100000
- #define I2S_TCSR_SEF (uint32_t)0x00080000
- #define I2S_TCSR_FEF (uint32_t)0x00040000
- #define I2S_TCSR_FWF (uint32_t)0x00020000
- #define I2S_TCSR_FRF (uint32_t)0x00010000
- #define I2S_TCSR_WSIE (uint32_t)0x00001000
- #define I2S_TCSR_SEIE (uint32_t)0x00000800
- #define I2S_TCSR_FEIE (uint32_t)0x00000400
- #define I2S_TCSR_FWIE (uint32_t)0x00000200
- #define I2S_TCSR_FRIE (uint32_t)0x00000100
- #define I2S_TCSR_FWDE (uint32_t)0x00000002
- #define I2S_TCSR_FRDE (uint32_t)0x00000001
- #define I2S0_TCR1 *(volatile uint32_t *)0x4002F004
- #define I2S_TCR1_TFW(n) ((uint32_t)n & 0x03)
- #define I2S0_TCR2 *(volatile uint32_t *)0x4002F008
- #define I2S_TCR2_DIV(n) ((uint32_t)n & 0xff)
- #define I2S_TCR2_BCD ((uint32_t)1<<24)
- #define I2S_TCR2_BCP ((uint32_t)1<<25)
- #define I2S_TCR2_MSEL(n) ((uint32_t)(n & 3)<<26)
- #define I2S_TCR2_BCI ((uint32_t)1<<28)
- #define I2S_TCR2_BCS ((uint32_t)1<<29)
- #define I2S_TCR2_SYNC(n) ((uint32_t)(n & 3)<<30)
- #define I2S0_TCR3 *(volatile uint32_t *)0x4002F00C
- #define I2S_TCR3_WDFL(n) ((uint32_t)n & 0x0f)
- #define I2S_TCR3_TCE ((uint32_t)0x10000)
- #define I2S0_TCR4 *(volatile uint32_t *)0x4002F010
- #define I2S_TCR4_FSD ((uint32_t)1)
- #define I2S_TCR4_FSP ((uint32_t)2)
- #define I2S_TCR4_FSE ((uint32_t)8)
- #define I2S_TCR4_MF ((uint32_t)0x10)
- #define I2S_TCR4_SYWD(n) ((uint32_t)(n & 0x1f)<<8)
- #define I2S_TCR4_FRSZ(n) ((uint32_t)(n & 0x0f)<<16)
- #define I2S0_TCR5 *(volatile uint32_t *)0x4002F014
- #define I2S_TCR5_FBT(n) ((uint32_t)(n & 0x1f)<<8)
- #define I2S_TCR5_W0W(n) ((uint32_t)(n & 0x1f)<<16)
- #define I2S_TCR5_WNW(n) ((uint32_t)(n & 0x1f)<<24)
- #define I2S0_TDR0 *(volatile uint32_t *)0x4002F020
- #define I2S0_TDR1 *(volatile uint32_t *)0x4002F024
- #define I2S0_TFR0 *(volatile uint32_t *)0x4002F040
- #define I2S0_TFR1 *(volatile uint32_t *)0x4002F044
- #define I2S_TFR_RFP(n) ((uint32_t)n & 7)
- #define I2S_TFR_WFP(n) ((uint32_t)(n & 7)<<16)
- #define I2S0_TMR *(volatile uint32_t *)0x4002F060
- #define I2S_TMR_TWM(n) ((uint32_t)n & 0xFFFFFFFF)
- #define I2S0_RCSR *(volatile uint32_t *)0x4002F080
- #define I2S_RCSR_RE (uint32_t)0x80000000
- #define I2S_RCSR_STOPE (uint32_t)0x40000000
- #define I2S_RCSR_DBGE (uint32_t)0x20000000
- #define I2S_RCSR_BCE (uint32_t)0x10000000
- #define I2S_RCSR_FR (uint32_t)0x02000000
- #define I2S_RCSR_SR (uint32_t)0x01000000
- #define I2S_RCSR_WSF (uint32_t)0x00100000
- #define I2S_RCSR_SEF (uint32_t)0x00080000
- #define I2S_RCSR_FEF (uint32_t)0x00040000
- #define I2S_RCSR_FWF (uint32_t)0x00020000
- #define I2S_RCSR_FRF (uint32_t)0x00010000
- #define I2S_RCSR_WSIE (uint32_t)0x00001000
- #define I2S_RCSR_SEIE (uint32_t)0x00000800
- #define I2S_RCSR_FEIE (uint32_t)0x00000400
- #define I2S_RCSR_FWIE (uint32_t)0x00000200
- #define I2S_RCSR_FRIE (uint32_t)0x00000100
- #define I2S_RCSR_FWDE (uint32_t)0x00000002
- #define I2S_RCSR_FRDE (uint32_t)0x00000001
- #define I2S0_RCR1 *(volatile uint32_t *)0x4002F084
- #define I2S_RCR1_RFW(n) ((uint32_t)n & 0x03)
- #define I2S0_RCR2 *(volatile uint32_t *)0x4002F088
- #define I2S_RCR2_DIV(n) ((uint32_t)n & 0xff)
- #define I2S_RCR2_BCD ((uint32_t)1<<24)
- #define I2S_RCR2_BCP ((uint32_t)1<<25)
- #define I2S_RCR2_MSEL(n) ((uint32_t)(n & 3)<<26)
- #define I2S_RCR2_BCI ((uint32_t)1<<28)
- #define I2S_RCR2_BCS ((uint32_t)1<<29)
- #define I2S_RCR2_SYNC(n) ((uint32_t)(n & 3)<<30)
- #define I2S0_RCR3 *(volatile uint32_t *)0x4002F08C
- #define I2S_RCR3_WDFL(n) ((uint32_t)n & 0x0f)
- #define I2S_RCR3_RCE ((uint32_t)0x10000)
- #define I2S0_RCR4 *(volatile uint32_t *)0x4002F090
- #define I2S_RCR4_FSD ((uint32_t)1)
- #define I2S_RCR4_FSP ((uint32_t)2)
- #define I2S_RCR4_FSE ((uint32_t)8)
- #define I2S_RCR4_MF ((uint32_t)0x10)
- #define I2S_RCR4_SYWD(n) ((uint32_t)(n & 0x1f)<<8)
- #define I2S_RCR4_FRSZ(n) ((uint32_t)(n & 0x0f)<<16)
- #define I2S0_RCR5 *(volatile uint32_t *)0x4002F094
- #define I2S_RCR5_FBT(n) ((uint32_t)(n & 0x1f)<<8)
- #define I2S_RCR5_W0W(n) ((uint32_t)(n & 0x1f)<<16)
- #define I2S_RCR5_WNW(n) ((uint32_t)(n & 0x1f)<<24)
- #define I2S0_RDR0 *(volatile uint32_t *)0x4002F0A0
- #define I2S0_RDR1 *(volatile uint32_t *)0x4002F0A4
- #define I2S0_RFR0 *(volatile uint32_t *)0x4002F0C0
- #define I2S0_RFR1 *(volatile uint32_t *)0x4002F0C4
- #define I2S_RFR_RFP(n) ((uint32_t)n & 7)
- #define I2S_RFR_WFP(n) ((uint32_t)(n & 7)<<16)
- #define I2S0_RMR *(volatile uint32_t *)0x4002F0E0
- #define I2S_RMR_RWM(n) ((uint32_t)n & 0xFFFFFFFF)
- #define I2S0_MCR *(volatile uint32_t *)0x4002F100
- #define I2S_MCR_DUF ((uint32_t)1<<31)
- #define I2S_MCR_MOE ((uint32_t)1<<30)
- #define I2S_MCR_MICS(n) ((uint32_t)(n & 3)<<24)
- #define I2S0_MDR *(volatile uint32_t *)0x4002F104
- #define I2S_MDR_FRACT(n) ((uint32_t)(n & 0xff)<<12)
- #define I2S_MDR_DIVIDE(n) ((uint32_t)(n & 0xfff))
-
-
- #define GPIOA_PDOR *(volatile uint32_t *)0x400FF000
- #define GPIOA_PSOR *(volatile uint32_t *)0x400FF004
- #define GPIOA_PCOR *(volatile uint32_t *)0x400FF008
- #define GPIOA_PTOR *(volatile uint32_t *)0x400FF00C
- #define GPIOA_PDIR *(volatile uint32_t *)0x400FF010
- #define GPIOA_PDDR *(volatile uint32_t *)0x400FF014
- #define GPIOB_PDOR *(volatile uint32_t *)0x400FF040
- #define GPIOB_PSOR *(volatile uint32_t *)0x400FF044
- #define GPIOB_PCOR *(volatile uint32_t *)0x400FF048
- #define GPIOB_PTOR *(volatile uint32_t *)0x400FF04C
- #define GPIOB_PDIR *(volatile uint32_t *)0x400FF050
- #define GPIOB_PDDR *(volatile uint32_t *)0x400FF054
- #define GPIOC_PDOR *(volatile uint32_t *)0x400FF080
- #define GPIOC_PSOR *(volatile uint32_t *)0x400FF084
- #define GPIOC_PCOR *(volatile uint32_t *)0x400FF088
- #define GPIOC_PTOR *(volatile uint32_t *)0x400FF08C
- #define GPIOC_PDIR *(volatile uint32_t *)0x400FF090
- #define GPIOC_PDDR *(volatile uint32_t *)0x400FF094
- #define GPIOD_PDOR *(volatile uint32_t *)0x400FF0C0
- #define GPIOD_PSOR *(volatile uint32_t *)0x400FF0C4
- #define GPIOD_PCOR *(volatile uint32_t *)0x400FF0C8
- #define GPIOD_PTOR *(volatile uint32_t *)0x400FF0CC
- #define GPIOD_PDIR *(volatile uint32_t *)0x400FF0D0
- #define GPIOD_PDDR *(volatile uint32_t *)0x400FF0D4
- #define GPIOE_PDOR *(volatile uint32_t *)0x400FF100
- #define GPIOE_PSOR *(volatile uint32_t *)0x400FF104
- #define GPIOE_PCOR *(volatile uint32_t *)0x400FF108
- #define GPIOE_PTOR *(volatile uint32_t *)0x400FF10C
- #define GPIOE_PDIR *(volatile uint32_t *)0x400FF110
- #define GPIOE_PDDR *(volatile uint32_t *)0x400FF114
-
-
- #define TSI0_GENCS *(volatile uint32_t *)0x40045000
- #define TSI_GENCS_LPCLKS (uint32_t)0x10000000
- #define TSI_GENCS_LPSCNITV(n) (((n) & 15) << 24)
- #define TSI_GENCS_NSCN(n) (((n) & 31) << 19)
- #define TSI_GENCS_PS(n) (((n) & 7) << 16)
- #define TSI_GENCS_EOSF (uint32_t)0x00008000
- #define TSI_GENCS_OUTRGF (uint32_t)0x00004000
- #define TSI_GENCS_EXTERF (uint32_t)0x00002000
- #define TSI_GENCS_OVRF (uint32_t)0x00001000
- #define TSI_GENCS_SCNIP (uint32_t)0x00000200
- #define TSI_GENCS_SWTS (uint32_t)0x00000100
- #define TSI_GENCS_TSIEN (uint32_t)0x00000080
- #define TSI_GENCS_TSIIE (uint32_t)0x00000040
- #define TSI_GENCS_ERIE (uint32_t)0x00000020
- #define TSI_GENCS_ESOR (uint32_t)0x00000010
- #define TSI_GENCS_STM (uint32_t)0x00000002
- #define TSI_GENCS_STPE (uint32_t)0x00000001
- #define TSI0_SCANC *(volatile uint32_t *)0x40045004
- #define TSI_SCANC_REFCHRG(n) (((n) & 15) << 24)
- #define TSI_SCANC_EXTCHRG(n) (((n) & 7) << 16)
- #define TSI_SCANC_SMOD(n) (((n) & 255) << 8)
- #define TSI_SCANC_AMCLKS(n) (((n) & 3) << 3)
- #define TSI_SCANC_AMPSC(n) (((n) & 7) << 0)
- #define TSI0_PEN *(volatile uint32_t *)0x40045008
- #define TSI0_WUCNTR *(volatile uint32_t *)0x4004500C
- #define TSI0_CNTR1 *(volatile uint32_t *)0x40045100
- #define TSI0_CNTR3 *(volatile uint32_t *)0x40045104
- #define TSI0_CNTR5 *(volatile uint32_t *)0x40045108
- #define TSI0_CNTR7 *(volatile uint32_t *)0x4004510C
- #define TSI0_CNTR9 *(volatile uint32_t *)0x40045110
- #define TSI0_CNTR11 *(volatile uint32_t *)0x40045114
- #define TSI0_CNTR13 *(volatile uint32_t *)0x40045118
- #define TSI0_CNTR15 *(volatile uint32_t *)0x4004511C
- #define TSI0_THRESHOLD *(volatile uint32_t *)0x40045120
-
-
- #define NVIC_ENABLE_IRQ(n) (*((volatile uint32_t *)0xE000E100 + (n >> 5)) = (1 << (n & 31)))
- #define NVIC_DISABLE_IRQ(n) (*((volatile uint32_t *)0xE000E180 + (n >> 5)) = (1 << (n & 31)))
- #define NVIC_SET_PENDING(n) (*((volatile uint32_t *)0xE000E200 + (n >> 5)) = (1 << (n & 31)))
- #define NVIC_CLEAR_PENDING(n) (*((volatile uint32_t *)0xE000E280 + (n >> 5)) = (1 << (n & 31)))
-
- #define NVIC_ISER0 *(volatile uint32_t *)0xE000E100
- #define NVIC_ISER1 *(volatile uint32_t *)0xE000E104
- #define NVIC_ICER0 *(volatile uint32_t *)0xE000E180
- #define NVIC_ICER1 *(volatile uint32_t *)0xE000E184
-
-
-
-
- #define NVIC_SET_PRIORITY(irqnum, priority) (*((volatile uint8_t *)0xE000E400 + (irqnum)) = (uint8_t)(priority))
- #define NVIC_GET_PRIORITY(irqnum) (*((uint8_t *)0xE000E400 + (irqnum)))
-
- #if defined(__MK20DX128__)
- #define IRQ_DMA_CH0 0
- #define IRQ_DMA_CH1 1
- #define IRQ_DMA_CH2 2
- #define IRQ_DMA_CH3 3
- #define IRQ_DMA_ERROR 4
- #define IRQ_FTFL_COMPLETE 6
- #define IRQ_FTFL_COLLISION 7
- #define IRQ_LOW_VOLTAGE 8
- #define IRQ_LLWU 9
- #define IRQ_WDOG 10
- #define IRQ_I2C0 11
- #define IRQ_SPI0 12
- #define IRQ_I2S0_TX 13
- #define IRQ_I2S0_RX 14
- #define IRQ_UART0_LON 15
- #define IRQ_UART0_STATUS 16
- #define IRQ_UART0_ERROR 17
- #define IRQ_UART1_STATUS 18
- #define IRQ_UART1_ERROR 19
- #define IRQ_UART2_STATUS 20
- #define IRQ_UART2_ERROR 21
- #define IRQ_ADC0 22
- #define IRQ_CMP0 23
- #define IRQ_CMP1 24
- #define IRQ_FTM0 25
- #define IRQ_FTM1 26
- #define IRQ_CMT 27
- #define IRQ_RTC_ALARM 28
- #define IRQ_RTC_SECOND 29
- #define IRQ_PIT_CH0 30
- #define IRQ_PIT_CH1 31
- #define IRQ_PIT_CH2 32
- #define IRQ_PIT_CH3 33
- #define IRQ_PDB 34
- #define IRQ_USBOTG 35
- #define IRQ_USBDCD 36
- #define IRQ_TSI 37
- #define IRQ_MCG 38
- #define IRQ_LPTMR 39
- #define IRQ_PORTA 40
- #define IRQ_PORTB 41
- #define IRQ_PORTC 42
- #define IRQ_PORTD 43
- #define IRQ_PORTE 44
- #define IRQ_SOFTWARE 45
- #define NVIC_NUM_INTERRUPTS 46
-
- #elif defined(__MK20DX256__)
- #define IRQ_DMA_CH0 0
- #define IRQ_DMA_CH1 1
- #define IRQ_DMA_CH2 2
- #define IRQ_DMA_CH3 3
- #define IRQ_DMA_CH4 4
- #define IRQ_DMA_CH5 5
- #define IRQ_DMA_CH6 6
- #define IRQ_DMA_CH7 7
- #define IRQ_DMA_CH8 8
- #define IRQ_DMA_CH9 9
- #define IRQ_DMA_CH10 10
- #define IRQ_DMA_CH11 11
- #define IRQ_DMA_CH12 12
- #define IRQ_DMA_CH13 13
- #define IRQ_DMA_CH14 14
- #define IRQ_DMA_CH15 15
- #define IRQ_DMA_ERROR 16
- #define IRQ_FTFL_COMPLETE 18
- #define IRQ_FTFL_COLLISION 19
- #define IRQ_LOW_VOLTAGE 20
- #define IRQ_LLWU 21
- #define IRQ_WDOG 22
- #define IRQ_I2C0 24
- #define IRQ_I2C1 25
- #define IRQ_SPI0 26
- #define IRQ_SPI1 27
- #define IRQ_CAN_MESSAGE 29
- #define IRQ_CAN_BUS_OFF 30
- #define IRQ_CAN_ERROR 31
- #define IRQ_CAN_TX_WARN 32
- #define IRQ_CAN_RX_WARN 33
- #define IRQ_CAN_WAKEUP 34
- #define IRQ_I2S0_TX 35
- #define IRQ_I2S0_RX 36
- #define IRQ_UART0_LON 44
- #define IRQ_UART0_STATUS 45
- #define IRQ_UART0_ERROR 46
- #define IRQ_UART1_STATUS 47
- #define IRQ_UART1_ERROR 48
- #define IRQ_UART2_STATUS 49
- #define IRQ_UART2_ERROR 50
- #define IRQ_ADC0 57
- #define IRQ_ADC1 58
- #define IRQ_CMP0 59
- #define IRQ_CMP1 60
- #define IRQ_CMP2 61
- #define IRQ_FTM0 62
- #define IRQ_FTM1 63
- #define IRQ_FTM2 64
- #define IRQ_CMT 65
- #define IRQ_RTC_ALARM 66
- #define IRQ_RTC_SECOND 67
- #define IRQ_PIT_CH0 68
- #define IRQ_PIT_CH1 69
- #define IRQ_PIT_CH2 70
- #define IRQ_PIT_CH3 71
- #define IRQ_PDB 72
- #define IRQ_USBOTG 73
- #define IRQ_USBDCD 74
- #define IRQ_DAC0 81
- #define IRQ_TSI 83
- #define IRQ_MCG 84
- #define IRQ_LPTMR 85
- #define IRQ_PORTA 87
- #define IRQ_PORTB 88
- #define IRQ_PORTC 89
- #define IRQ_PORTD 90
- #define IRQ_PORTE 91
- #define IRQ_SOFTWARE 94
- #define NVIC_NUM_INTERRUPTS 95
-
- #endif
-
-
-
-
-
- #define __disable_irq() asm volatile("CPSID i");
- #define __enable_irq() asm volatile("CPSIE i");
-
-
- #define SCB_CPUID *(const uint32_t *)0xE000ED00
- #define SCB_ICSR *(volatile uint32_t *)0xE000ED04
- #define SCB_ICSR_PENDSTSET (uint32_t)0x04000000
- #define SCB_VTOR *(volatile uint32_t *)0xE000ED08
- #define SCB_AIRCR *(volatile uint32_t *)0xE000ED0C
- #define SCB_SCR *(volatile uint32_t *)0xE000ED10
- #define SCB_CCR *(volatile uint32_t *)0xE000ED14
- #define SCB_SHPR1 *(volatile uint32_t *)0xE000ED18
- #define SCB_SHPR2 *(volatile uint32_t *)0xE000ED1C
- #define SCB_SHPR3 *(volatile uint32_t *)0xE000ED20
- #define SCB_SHCSR *(volatile uint32_t *)0xE000ED24
- #define SCB_CFSR *(volatile uint32_t *)0xE000ED28
- #define SCB_HFSR *(volatile uint32_t *)0xE000ED2C
- #define SCB_DFSR *(volatile uint32_t *)0xE000ED30
- #define SCB_MMFAR *(volatile uint32_t *)0xE000ED34
-
- #define SYST_CSR *(volatile uint32_t *)0xE000E010
- #define SYST_CSR_COUNTFLAG (uint32_t)0x00010000
- #define SYST_CSR_CLKSOURCE (uint32_t)0x00000004
- #define SYST_CSR_TICKINT (uint32_t)0x00000002
- #define SYST_CSR_ENABLE (uint32_t)0x00000001
- #define SYST_RVR *(volatile uint32_t *)0xE000E014
- #define SYST_CVR *(volatile uint32_t *)0xE000E018
- #define SYST_CALIB *(const uint32_t *)0xE000E01C
-
-
- #define ARM_DEMCR *(volatile uint32_t *)0xE000EDFC
- #define ARM_DEMCR_TRCENA (1 << 24)
- #define ARM_DWT_CTRL *(volatile uint32_t *)0xE0001000
- #define ARM_DWT_CTRL_CYCCNTENA (1 << 0)
- #define ARM_DWT_CYCCNT *(volatile uint32_t *)0xE0001004
-
- extern int nvic_execution_priority(void);
-
- extern void nmi_isr(void);
- extern void hard_fault_isr(void);
- extern void memmanage_fault_isr(void);
- extern void bus_fault_isr(void);
- extern void usage_fault_isr(void);
- extern void svcall_isr(void);
- extern void debugmonitor_isr(void);
- extern void pendablesrvreq_isr(void);
- extern void systick_isr(void);
- extern void dma_ch0_isr(void);
- extern void dma_ch1_isr(void);
- extern void dma_ch2_isr(void);
- extern void dma_ch3_isr(void);
- extern void dma_ch4_isr(void);
- extern void dma_ch5_isr(void);
- extern void dma_ch6_isr(void);
- extern void dma_ch7_isr(void);
- extern void dma_ch8_isr(void);
- extern void dma_ch9_isr(void);
- extern void dma_ch10_isr(void);
- extern void dma_ch11_isr(void);
- extern void dma_ch12_isr(void);
- extern void dma_ch13_isr(void);
- extern void dma_ch14_isr(void);
- extern void dma_ch15_isr(void);
- extern void dma_error_isr(void);
- extern void mcm_isr(void);
- extern void flash_cmd_isr(void);
- extern void flash_error_isr(void);
- extern void low_voltage_isr(void);
- extern void wakeup_isr(void);
- extern void watchdog_isr(void);
- extern void i2c0_isr(void);
- extern void i2c1_isr(void);
- extern void i2c2_isr(void);
- extern void spi0_isr(void);
- extern void spi1_isr(void);
- extern void spi2_isr(void);
- extern void sdhc_isr(void);
- extern void can0_message_isr(void);
- extern void can0_bus_off_isr(void);
- extern void can0_error_isr(void);
- extern void can0_tx_warn_isr(void);
- extern void can0_rx_warn_isr(void);
- extern void can0_wakeup_isr(void);
- extern void i2s0_tx_isr(void);
- extern void i2s0_rx_isr(void);
- extern void uart0_lon_isr(void);
- extern void uart0_status_isr(void);
- extern void uart0_error_isr(void);
- extern void uart1_status_isr(void);
- extern void uart1_error_isr(void);
- extern void uart2_status_isr(void);
- extern void uart2_error_isr(void);
- extern void uart3_status_isr(void);
- extern void uart3_error_isr(void);
- extern void uart4_status_isr(void);
- extern void uart4_error_isr(void);
- extern void uart5_status_isr(void);
- extern void uart5_error_isr(void);
- extern void adc0_isr(void);
- extern void adc1_isr(void);
- extern void cmp0_isr(void);
- extern void cmp1_isr(void);
- extern void cmp2_isr(void);
- extern void ftm0_isr(void);
- extern void ftm1_isr(void);
- extern void ftm2_isr(void);
- extern void ftm3_isr(void);
- extern void cmt_isr(void);
- extern void rtc_alarm_isr(void);
- extern void rtc_seconds_isr(void);
- extern void pit0_isr(void);
- extern void pit1_isr(void);
- extern void pit2_isr(void);
- extern void pit3_isr(void);
- extern void pdb_isr(void);
- extern void usb_isr(void);
- extern void usb_charge_isr(void);
- extern void dac0_isr(void);
- extern void dac1_isr(void);
- extern void tsi0_isr(void);
- extern void mcg_isr(void);
- extern void lptmr_isr(void);
- extern void porta_isr(void);
- extern void portb_isr(void);
- extern void portc_isr(void);
- extern void portd_isr(void);
- extern void porte_isr(void);
- extern void software_isr(void);
-
-
-
- #ifdef __cplusplus
- }
- #endif
- #endif
|