@ -63,7 +63,7 @@ extern "C"
# define TIMER_NUMOF (1U)
# define TIMER_0_EN 1
# define TIMER_1_EN 0
# define TIMER_IRQ_PRIO 1
# define TIMER_IRQ_PRIO CPU_DEFAULT_IRQ_PRIO
# define TIMER_BASE PIT
# define TIMER_MAX_VALUE (0xffffffff)
# define TIMER_CLOCK SystemBusClock
@ -94,7 +94,7 @@ extern "C"
# define UART_2_EN 0
# define UART_3_EN 0
# define UART_4_EN 0
# define UART_IRQ_PRIO 1
# define UART_IRQ_PRIO CPU_DEFAULT_IRQ_PRIO
/* UART 0 device configuration */
# define UART_0_DEV UART1
@ -301,7 +301,7 @@ extern "C"
# define SPI_0_CLKDIS() (BITBAND_REG32(SIM->SCGC6, SIM_SCGC6_SPI0_SHIFT) = 0)
# define SPI_0_IRQ MULLE_PASTE_PARTS(SPI, SPI_0_INDEX, _IRQn)
# define SPI_0_IRQ_HANDLER MULLE_PASTE_PARTS(isr_spi, SPI_0_INDEX, )
# define SPI_0_IRQ_PRIO 1
# define SPI_0_IRQ_PRIO CPU_DEFAULT_IRQ_PRIO
# define SPI_0_FREQ SystemBusClock
/* SPI 0 pin configuration */
# define SPI_0_SCK_PORT PORTD
@ -335,7 +335,7 @@ extern "C"
# define SPI_1_CLKDIS() (BITBAND_REG32(SIM->SCGC6, SIM_SCGC6_SPI1_SHIFT) = 0)
# define SPI_1_IRQ MULLE_PASTE_PARTS(SPI, SPI_1_INDEX, _IRQn)
# define SPI_1_IRQ_HANDLER MULLE_PASTE_PARTS(isr_spi, SPI_1_INDEX, )
# define SPI_1_IRQ_PRIO 1
# define SPI_1_IRQ_PRIO CPU_DEFAULT_IRQ_PRIO
# define SPI_1_FREQ SystemBusClock
/* SPI 0 pin configuration */
# define SPI_1_SCK_PORT PORTE
@ -369,7 +369,7 @@ extern "C"
# define SPI_2_CLKDIS() (BITBAND_REG32(SIM->SCGC6, SIM_SCGC6_SPI0_SHIFT) = 0)
# define SPI_2_IRQ MULLE_PASTE_PARTS(SPI, SPI_2_INDEX, _IRQn)
/* #define SPI_2_IRQ_HANDLER MULLE_PASTE_PARTS(isr_spi, SPI_2_INDEX, ) */
# define SPI_2_IRQ_PRIO 1
# define SPI_2_IRQ_PRIO CPU_DEFAULT_IRQ_PRIO
# define SPI_2_FREQ SystemBusClock
/* SPI 2 pin configuration, must be the same as the other RIOT device using this
* hardware module */
@ -429,7 +429,7 @@ extern "C"
# define I2C_CLK SystemBusClock
# define I2C_0_EN 1
# define I2C_1_EN 0
# define I2C_IRQ_PRIO 1
# define I2C_IRQ_PRIO CPU_DEFAULT_IRQ_PRIO
/**
* @ name I2C baud rate configuration
* @ {
@ -468,304 +468,7 @@ extern "C"
* @ name GPIO configuration
* @ {
*/
# define GPIO_0_EN 1
# define GPIO_1_EN 1
# define GPIO_2_EN 1
# define GPIO_3_EN 1
# define GPIO_4_EN 1
# define GPIO_5_EN 1
# define GPIO_6_EN 1
# define GPIO_7_EN 1
# define GPIO_8_EN 1
# define GPIO_9_EN 1
# define GPIO_10_EN 1
# define GPIO_11_EN 1
# define GPIO_12_EN 1
# define GPIO_13_EN 1
# define GPIO_14_EN 1
# define GPIO_15_EN 1
# define GPIO_16_EN 1
# define GPIO_17_EN 1
# define GPIO_18_EN 1
# define GPIO_19_EN 1
# define GPIO_20_EN 1
# define GPIO_21_EN 1
# define GPIO_22_EN 1
# define GPIO_23_EN 1
# define GPIO_24_EN 1
# define GPIO_25_EN 1
# define GPIO_26_EN 1
# define GPIO_IRQ_PRIO 1
/* GPIO channel 0 config */
/* Red LED */
# define GPIO_0_PORT PORTC
# define GPIO_0_PORT_BASE PORTC_BASE
# define GPIO_0_DEV PTC
# define GPIO_0_PIN 15
# define GPIO_0_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTC_SHIFT) = 1)
# define GPIO_0_IRQ PORTC_IRQn
# define GPIO_0_ISR isr_portc_pin_detect
/* GPIO channel 1 config */
/* Yellow LED */
# define GPIO_1_PORT PORTC
# define GPIO_1_PORT_BASE PORTC_BASE
# define GPIO_1_DEV PTC
# define GPIO_1_PIN 14
# define GPIO_1_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTC_SHIFT) = 1)
# define GPIO_1_IRQ PORTC_IRQn
# define GPIO_1_ISR isr_portc_pin_detect
/* GPIO channel 2 config */
/* Green LED */
# define GPIO_2_PORT PORTC
# define GPIO_2_PORT_BASE PORTC_BASE
# define GPIO_2_DEV PTC
# define GPIO_2_PIN 13
# define GPIO_2_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTC_SHIFT) = 1)
# define GPIO_2_IRQ PORTC_IRQn
# define GPIO_2_ISR isr_portc_pin_detect
/* GPIO channel 3 config */
/* LIS3DH INT1 */
# define GPIO_3_PORT PORTC
# define GPIO_3_PORT_BASE PORTC_BASE
# define GPIO_3_DEV PTC
# define GPIO_3_PIN 18
# define GPIO_3_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTC_SHIFT) = 1)
# define GPIO_3_IRQ PORTC_IRQn
# define GPIO_3_ISR isr_portc_pin_detect
/* GPIO channel 4 config */
/* LIS3DH INT2 */
# define GPIO_4_PORT PORTC
# define GPIO_4_PORT_BASE PORTC_BASE
# define GPIO_4_DEV PTC
# define GPIO_4_PIN 17
# define GPIO_4_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTC_SHIFT) = 1)
# define GPIO_4_IRQ PORTC_IRQn
# define GPIO_4_ISR isr_portc_pin_detect
/* GPIO channel 5 config */
/* VSEC enable */
# define GPIO_5_PORT PORTB
# define GPIO_5_PORT_BASE PORTB_BASE
# define GPIO_5_DEV PTB
# define GPIO_5_PIN 16
# define GPIO_5_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTB_SHIFT) = 1)
# define GPIO_5_IRQ PORTB_IRQn
# define GPIO_5_ISR isr_portb_pin_detect
/* GPIO channel 6 config */
/* AVDD enable */
# define GPIO_6_PORT PORTB
# define GPIO_6_PORT_BASE PORTB_BASE
# define GPIO_6_DEV PTB
# define GPIO_6_PIN 17
# define GPIO_6_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTB_SHIFT) = 1)
# define GPIO_6_IRQ PORTB_IRQn
# define GPIO_6_ISR isr_portb_pin_detect
/* GPIO channel 7 config */
/* VPERIPH enable */
# define GPIO_7_PORT PORTD
# define GPIO_7_PORT_BASE PORTD_BASE
# define GPIO_7_DEV PTD
# define GPIO_7_PIN 7
# define GPIO_7_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTD_SHIFT) = 1)
# define GPIO_7_IRQ PORTD_IRQn
# define GPIO_7_ISR isr_portd_pin_detect
/* GPIO channel 8 config */
/* MC34673 enable */
# define GPIO_8_PORT PORTB
# define GPIO_8_PORT_BASE PORTB_BASE
# define GPIO_8_DEV PTB
# define GPIO_8_PIN 23
# define GPIO_8_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTB_SHIFT) = 1)
# define GPIO_8_IRQ PORTB_IRQn
# define GPIO_8_ISR isr_portb_pin_detect
/* GPIO channel 9 config */
/* MC34673 CHG */
# define GPIO_9_PORT PORTB
# define GPIO_9_PORT_BASE PORTB_BASE
# define GPIO_9_DEV PTB
# define GPIO_9_PIN 22
# define GPIO_9_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTB_SHIFT) = 1)
# define GPIO_9_IRQ PORTB_IRQn
# define GPIO_9_ISR isr_portb_pin_detect
/* GPIO channel 10 config */
/* MC34673 PPR */
# define GPIO_10_PORT PORTB
# define GPIO_10_PORT_BASE PORTB_BASE
# define GPIO_10_DEV PTB
# define GPIO_10_PIN 21
# define GPIO_10_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTB_SHIFT) = 1)
# define GPIO_10_IRQ PORTB_IRQn
# define GPIO_10_ISR isr_portb_pin_detect
/* GPIO channel 11 config */
/* MC34673 FAST */
# define GPIO_11_PORT PORTB
# define GPIO_11_PORT_BASE PORTB_BASE
# define GPIO_11_DEV PTB
# define GPIO_11_PIN 20
# define GPIO_11_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTB_SHIFT) = 1)
# define GPIO_11_IRQ PORTB_IRQn
# define GPIO_11_ISR isr_portb_pin_detect
/* GPIO channel 12 config */
/* AT86RF212 IRQ */
# define GPIO_12_PORT PORTB
# define GPIO_12_PORT_BASE PORTB_BASE
# define GPIO_12_DEV PTB
# define GPIO_12_PIN 9
# define GPIO_12_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTB_SHIFT) = 1)
# define GPIO_12_IRQ PORTB_IRQn
# define GPIO_12_ISR isr_portb_pin_detect
/* GPIO channel 13 config */
/* AT86RF212 SLP_TR */
# define GPIO_13_PORT PORTE
# define GPIO_13_PORT_BASE PORTE_BASE
# define GPIO_13_DEV PTE
# define GPIO_13_PIN 6
# define GPIO_13_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTE_SHIFT) = 1)
# define GPIO_13_IRQ PORTE_IRQn
# define GPIO_13_ISR isr_porte_pin_detect
/* GPIO channel 14 config */
/* AT86RF212 SS */
# define GPIO_14_PORT PORTD
# define GPIO_14_PORT_BASE PORTD_BASE
# define GPIO_14_DEV PTD
# define GPIO_14_PIN 4
# define GPIO_14_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTD_SHIFT) = 1)
# define GPIO_14_IRQ PORTD_IRQn
# define GPIO_14_ISR isr_portd_pin_detect
/* GPIO channel 15 config */
/* LIS3DH CS */
# define GPIO_15_PORT PORTD
# define GPIO_15_PORT_BASE PORTD_BASE
# define GPIO_15_DEV PTD
# define GPIO_15_PIN 0
# define GPIO_15_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTD_SHIFT) = 1)
# define GPIO_15_IRQ PORTD_IRQn
# define GPIO_15_ISR isr_portd_pin_detect
/* GPIO channel 16 config */
/* FM25L04B CS */
# define GPIO_16_PORT PORTD
# define GPIO_16_PORT_BASE PORTD_BASE
# define GPIO_16_DEV PTD
# define GPIO_16_PIN 6
# define GPIO_16_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTD_SHIFT) = 1)
# define GPIO_16_IRQ PORTD_IRQn
# define GPIO_16_ISR isr_portd_pin_detect
/* GPIO channel 17 config */
/* M25P16 CS */
# define GPIO_17_PORT PORTD
# define GPIO_17_PORT_BASE PORTD_BASE
# define GPIO_17_DEV PTD
# define GPIO_17_PIN 5
# define GPIO_17_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTD_SHIFT) = 1)
# define GPIO_17_IRQ PORTD_IRQn
# define GPIO_17_ISR isr_portd_pin_detect
/* GPIO channel 18 config */
/* General purpose expansion PTB18 */
# define GPIO_18_PORT PORTB
# define GPIO_18_PORT_BASE PORTB_BASE
# define GPIO_18_DEV PTB
# define GPIO_18_PIN 18
# define GPIO_18_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTB_SHIFT) = 1)
# define GPIO_18_IRQ PORTB_IRQn
# define GPIO_18_ISR isr_portb_pin_detect
/* GPIO channel 19 config */
/* General purpose expansion PTB19 */
# define GPIO_19_PORT PORTB
# define GPIO_19_PORT_BASE PORTB_BASE
# define GPIO_19_DEV PTB
# define GPIO_19_PIN 19
# define GPIO_19_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTB_SHIFT) = 1)
# define GPIO_19_IRQ PORTB_IRQn
# define GPIO_19_ISR isr_portb_pin_detect
/* GPIO channel 20 config */
/* General purpose expansion PTC0 */
# define GPIO_20_PORT PORTC
# define GPIO_20_PORT_BASE PORTC_BASE
# define GPIO_20_DEV PTC
# define GPIO_20_PIN 0
# define GPIO_20_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTC_SHIFT) = 1)
# define GPIO_20_IRQ PORTC_IRQn
# define GPIO_20_ISR isr_portc_pin_detect
/* GPIO channel 21 config */
/* General purpose expansion PTC1 */
# define GPIO_21_PORT PORTC
# define GPIO_21_PORT_BASE PORTC_BASE
# define GPIO_21_DEV PTC
# define GPIO_21_PIN 1
# define GPIO_21_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTC_SHIFT) = 1)
# define GPIO_21_IRQ PORTC_IRQn
# define GPIO_21_ISR isr_portc_pin_detect
/* GPIO channel 22 config */
/* General purpose expansion PTC2 */
# define GPIO_22_PORT PORTC
# define GPIO_22_PORT_BASE PORTC_BASE
# define GPIO_22_DEV PTC
# define GPIO_22_PIN 2
# define GPIO_22_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTC_SHIFT) = 1)
# define GPIO_22_IRQ PORTC_IRQn
# define GPIO_22_ISR isr_portc_pin_detect
/* GPIO channel 23 config */
/* General purpose expansion PTC5 */
# define GPIO_23_PORT PORTC
# define GPIO_23_PORT_BASE PORTC_BASE
# define GPIO_23_DEV PTC
# define GPIO_23_PIN 5
# define GPIO_23_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTC_SHIFT) = 1)
# define GPIO_23_IRQ PORTC_IRQn
# define GPIO_23_ISR isr_portc_pin_detect
/* GPIO channel 24 config */
/* General purpose expansion PTC6 */
# define GPIO_24_PORT PORTC
# define GPIO_24_PORT_BASE PORTC_BASE
# define GPIO_24_DEV PTC
# define GPIO_24_PIN 6
# define GPIO_24_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTC_SHIFT) = 1)
# define GPIO_24_IRQ PORTC_IRQn
# define GPIO_24_ISR isr_portc_pin_detect
/* GPIO channel 25 config */
/* General purpose expansion PTC7 */
# define GPIO_25_PORT PORTC
# define GPIO_25_PORT_BASE PORTC_BASE
# define GPIO_25_DEV PTC
# define GPIO_25_PIN 7
# define GPIO_25_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTC_SHIFT) = 1)
# define GPIO_25_IRQ PORTC_IRQn
# define GPIO_25_ISR isr_portc_pin_detect
/* GPIO channel 26 config */
/* General purpose expansion PTE4 */
# define GPIO_26_PORT PORTE
# define GPIO_26_PORT_BASE PORTE_BASE
# define GPIO_26_DEV PTE
# define GPIO_26_PIN 4
# define GPIO_26_CLKEN() (BITBAND_REG32(SIM->SCGC5, SIM_SCGC5_PORTE_SHIFT) = 1)
# define GPIO_26_IRQ PORTE_IRQn
# define GPIO_26_ISR isr_porte_pin_detect
# define GPIO_IRQ_PRIO CPU_DEFAULT_IRQ_PRIO
/** @} */
@ -782,7 +485,7 @@ extern "C"
* @ {
*/
# define RTT_NUMOF (1U)
# define RTT_IRQ_PRIO 1
# define RTT_IRQ_PRIO CPU_DEFAULT_IRQ_PRIO
# define RTT_IRQ RTC_IRQn
# define RTT_ISR isr_rtc_alarm
# define RTT_DEV RTC