Loading...
Searching...
No Matches
board.h File Reference

Board specific definitions for the USB-KW41Z. More...

Detailed Description

Board specific definitions for the USB-KW41Z.

Author
Joakim Nohlgård joaki.nosp@m.m.no.nosp@m.hlgar.nosp@m.d@ei.nosp@m.stec..nosp@m.se
José Alamos jose..nosp@m.alam.nosp@m.os@ha.nosp@m.w-ha.nosp@m.mburg.nosp@m..de

Definition in file board.h.

#include "cpu.h"
#include "periph_conf.h"
+ Include dependency graph for board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define KINETIS_FOPT   (0xff & ~(NV_FOPT_NMI_DIS_MASK))
 

LED pin definitions and handlers

#define LED0_PIN   GPIO_PIN(PORT_B, 3)
 
#define LED0_MASK   (1 << 3)
 
#define LED0_ON   (GPIOB->PCOR = LED0_MASK)
 
#define LED0_OFF   (GPIOB->PSOR = LED0_MASK)
 
#define LED0_TOGGLE   (GPIOB->PTOR = LED0_MASK)
 
#define LED1_PIN   GPIO_PIN(PORT_B, 1)
 
#define LED1_MASK   (1 << 1)
 
#define LED1_ON   (GPIOB->PCOR = LED1_MASK)
 
#define LED1_OFF   (GPIOB->PSOR = LED1_MASK)
 
#define LED1_TOGGLE   (GPIOB->PTOR = LED1_MASK)
 
#define LED2_PIN   GPIO_PIN(PORT_B, 0)
 
#define LED2_MASK   (1 << 0)
 
#define LED2_ON   (GPIOB->PCOR = LED2_MASK)
 
#define LED2_OFF   (GPIOB->PSOR = LED2_MASK)
 
#define LED2_TOGGLE   (GPIOB->PTOR = LED2_MASK)
 
#define LED3_PIN   GPIO_PIN(PORT_B, 18)
 
#define LED3_MASK   (1 << 18)
 
#define LED3_ON   (GPIOB->PCOR = LED3_MASK)
 
#define LED3_OFF   (GPIOB->PSOR = LED3_MASK)
 
#define LED3_TOGGLE   (GPIOB->PTOR = LED3_MASK)
 

Button pin definitions

#define BTN0_PIN   GPIO_PIN(PORT_C, 5)
 
#define BTN0_MODE   GPIO_IN_PU
 

Sensors voltage pin definitions (V_PERIPH)

#define V_PERIPH_PIN   GPIO_PIN(PORT_C, 19)
 
#define V_PERIPH_MASK   (1 << 19)
 
#define V_PERIPH_ON   (GPIOC->PSOR = V_PERIPH_MASK)
 
#define V_PERIPH_OFF   (GPIOC->PCOR = V_PERIPH_MASK)
 

xtimer configuration

#define XTIMER_DEV   (TIMER_LPTMR_DEV(0))
 
#define XTIMER_CHAN   (0)
 
#define XTIMER_WIDTH   (16)
 
#define XTIMER_BACKOFF   (5)
 
#define XTIMER_ISR_BACKOFF   (5)
 
#define XTIMER_HZ   (32768ul)
 

ztimer configuration

#define CONFIG_ZTIMER_USEC_TYPE   ZTIMER_TYPE_PERIPH_TIMER
 
#define CONFIG_ZTIMER_USEC_DEV   (TIMER_PIT_DEV(0))
 

Define the interface for the CCS811 gas sensors

#define CCS811_PARAM_I2C_DEV   (I2C_DEV(0))
 
#define CCS811_PARAM_I2C_ADDR   (0x5A)
 
#define CCS811_PARAM_RESET_PIN   (GPIO_UNDEF)
 
#define CCS811_PARAM_WAKE_PIN   (GPIO_PIN(1, 2))
 
#define CCS811_PARAM_INT_PIN   (GPIO_PIN(1, 3))
 
#define CCS811_PARAM_INT_MODE   (CCS811_INT_NONE)
 

Define the interface for the TCS37727 RGB light sensor

#define TCS37727_PARAM_I2C   (I2C_DEV(0))
 
#define TCS37727_PARAM_ADDR   (0x29)
 

Define the interface for the MMA8X5X accelerometer

#define MMA8X5X_PARAM_I2C   (I2C_DEV(0))
 
#define MMA8X5X_PARAM_ADDR   (0x1D)
 

Macro Definition Documentation

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Definition at line 73 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PORT_C, 5)

Definition at line 72 of file board.h.

◆ CCS811_PARAM_I2C_ADDR

#define CCS811_PARAM_I2C_ADDR   (0x5A)

Definition at line 120 of file board.h.

◆ CCS811_PARAM_I2C_DEV

#define CCS811_PARAM_I2C_DEV   (I2C_DEV(0))

Definition at line 119 of file board.h.

◆ CCS811_PARAM_INT_MODE

#define CCS811_PARAM_INT_MODE   (CCS811_INT_NONE)

Definition at line 124 of file board.h.

◆ CCS811_PARAM_INT_PIN

#define CCS811_PARAM_INT_PIN   (GPIO_PIN(1, 3))

Definition at line 123 of file board.h.

◆ CCS811_PARAM_RESET_PIN

#define CCS811_PARAM_RESET_PIN   (GPIO_UNDEF)

Definition at line 121 of file board.h.

◆ CCS811_PARAM_WAKE_PIN

#define CCS811_PARAM_WAKE_PIN   (GPIO_PIN(1, 2))

Definition at line 122 of file board.h.

◆ CONFIG_ZTIMER_USEC_DEV

#define CONFIG_ZTIMER_USEC_DEV   (TIMER_PIT_DEV(0))

Definition at line 112 of file board.h.

◆ CONFIG_ZTIMER_USEC_TYPE

#define CONFIG_ZTIMER_USEC_TYPE   ZTIMER_TYPE_PERIPH_TIMER

Definition at line 111 of file board.h.

◆ KINETIS_FOPT

#define KINETIS_FOPT   (0xff & ~(NV_FOPT_NMI_DIS_MASK))

Definition at line 34 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 3)

Definition at line 41 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (GPIOB->PSOR = LED0_MASK)

Definition at line 43 of file board.h.

◆ LED0_ON

#define LED0_ON   (GPIOB->PCOR = LED0_MASK)

Definition at line 42 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PORT_B, 3)

Definition at line 40 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (GPIOB->PTOR = LED0_MASK)

Definition at line 44 of file board.h.

◆ LED1_MASK

#define LED1_MASK   (1 << 1)

Definition at line 47 of file board.h.

◆ LED1_OFF

#define LED1_OFF   (GPIOB->PSOR = LED1_MASK)

Definition at line 49 of file board.h.

◆ LED1_ON

#define LED1_ON   (GPIOB->PCOR = LED1_MASK)

Definition at line 48 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(PORT_B, 1)

Definition at line 46 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   (GPIOB->PTOR = LED1_MASK)

Definition at line 50 of file board.h.

◆ LED2_MASK

#define LED2_MASK   (1 << 0)

Definition at line 53 of file board.h.

◆ LED2_OFF

#define LED2_OFF   (GPIOB->PSOR = LED2_MASK)

Definition at line 55 of file board.h.

◆ LED2_ON

#define LED2_ON   (GPIOB->PCOR = LED2_MASK)

Definition at line 54 of file board.h.

◆ LED2_PIN

#define LED2_PIN   GPIO_PIN(PORT_B, 0)

Definition at line 52 of file board.h.

◆ LED2_TOGGLE

#define LED2_TOGGLE   (GPIOB->PTOR = LED2_MASK)

Definition at line 56 of file board.h.

◆ LED3_MASK

#define LED3_MASK   (1 << 18)

Definition at line 59 of file board.h.

◆ LED3_OFF

#define LED3_OFF   (GPIOB->PSOR = LED3_MASK)

Definition at line 61 of file board.h.

◆ LED3_ON

#define LED3_ON   (GPIOB->PCOR = LED3_MASK)

Definition at line 60 of file board.h.

◆ LED3_PIN

#define LED3_PIN   GPIO_PIN(PORT_B, 18)

Definition at line 58 of file board.h.

◆ LED3_TOGGLE

#define LED3_TOGGLE   (GPIOB->PTOR = LED3_MASK)

Definition at line 62 of file board.h.

◆ MMA8X5X_PARAM_ADDR

#define MMA8X5X_PARAM_ADDR   (0x1D)

Definition at line 140 of file board.h.

◆ MMA8X5X_PARAM_I2C

#define MMA8X5X_PARAM_I2C   (I2C_DEV(0))

Definition at line 139 of file board.h.

◆ TCS37727_PARAM_ADDR

#define TCS37727_PARAM_ADDR   (0x29)

Definition at line 132 of file board.h.

◆ TCS37727_PARAM_I2C

#define TCS37727_PARAM_I2C   (I2C_DEV(0))

Definition at line 131 of file board.h.

◆ V_PERIPH_MASK

#define V_PERIPH_MASK   (1 << 19)

Definition at line 81 of file board.h.

◆ V_PERIPH_OFF

#define V_PERIPH_OFF   (GPIOC->PCOR = V_PERIPH_MASK)

Definition at line 83 of file board.h.

◆ V_PERIPH_ON

#define V_PERIPH_ON   (GPIOC->PSOR = V_PERIPH_MASK)

Definition at line 82 of file board.h.

◆ V_PERIPH_PIN

#define V_PERIPH_PIN   GPIO_PIN(PORT_C, 19)

Definition at line 80 of file board.h.

◆ XTIMER_BACKOFF

#define XTIMER_BACKOFF   (5)

Definition at line 101 of file board.h.

◆ XTIMER_CHAN

#define XTIMER_CHAN   (0)

Definition at line 98 of file board.h.

◆ XTIMER_DEV

#define XTIMER_DEV   (TIMER_LPTMR_DEV(0))

Definition at line 97 of file board.h.

◆ XTIMER_HZ

#define XTIMER_HZ   (32768ul)

Definition at line 103 of file board.h.

◆ XTIMER_ISR_BACKOFF

#define XTIMER_ISR_BACKOFF   (5)

Definition at line 102 of file board.h.

◆ XTIMER_WIDTH

#define XTIMER_WIDTH   (16)

Definition at line 100 of file board.h.