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

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

Detailed Description

Board specific definitions for the FRDM-KW41Z.

Author
Joakim NohlgÄrd joaki.nosp@m.m.no.nosp@m.hlgar.nosp@m.d@ei.nosp@m.stec..nosp@m.se

Definition in file board.h.

#include "cpu.h"
#include "board_common.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.

LED pin definitions and handlers

#define LED0_PIN   GPIO_PIN(PORT_B, 0)
 
#define LED0_MASK   (1 << 0)
 
#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_C, 1)
 
#define LED1_MASK   (1 << 1)
 
#define LED1_ON   (GPIOC->PCOR = LED1_MASK)
 
#define LED1_OFF   (GPIOC->PSOR = LED1_MASK)
 
#define LED1_TOGGLE   (GPIOC->PTOR = LED1_MASK)
 
#define LED2_PIN   GPIO_PIN(PORT_A, 19)
 
#define LED2_MASK   (1 << 19)
 
#define LED2_ON   (GPIOA->PCOR = LED2_MASK)
 
#define LED2_OFF   (GPIOA->PSOR = LED2_MASK)
 
#define LED2_TOGGLE   (GPIOA->PTOR = LED2_MASK)
 
#define LED3_PIN   GPIO_PIN(PORT_A, 18)
 
#define LED3_MASK   (1 << 18)
 
#define LED3_ON   (GPIOA->PCOR = LED3_MASK)
 
#define LED3_OFF   (GPIOA->PSOR = LED3_MASK)
 
#define LED3_TOGGLE   (GPIOA->PTOR = LED3_MASK)
 

Button pin definitions

#define BTN0_PIN   GPIO_PIN(PORT_C, 4)
 
#define BTN0_MODE   GPIO_IN_PU
 
#define BTN1_PIN   GPIO_PIN(PORT_C, 5)
 
#define BTN1_MODE   GPIO_IN_PU
 

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))
 

NOR flash hardware configuration

#define FRDM_NOR_SPI_DEV   SPI_DEV(0)
 
#define FRDM_NOR_SPI_CLK   SPI_CLK_5MHZ
 
#define FRDM_NOR_SPI_CS   SPI_HWCS(0)
 Flash CS pin.
 

FXOS8700CQ 3-axis accelerometer and magnetometer bus configuration

#define FXOS8700_PARAM_I2C   I2C_DEV(0)
 
#define FXOS8700_PARAM_ADDR   0x1F
 

Macro Definition Documentation

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Definition at line 65 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PORT_C, 4)

Definition at line 64 of file board.h.

◆ BTN1_MODE

#define BTN1_MODE   GPIO_IN_PU

Definition at line 68 of file board.h.

◆ BTN1_PIN

#define BTN1_PIN   GPIO_PIN(PORT_C, 5)

Definition at line 67 of file board.h.

◆ CONFIG_ZTIMER_USEC_DEV

#define CONFIG_ZTIMER_USEC_DEV   (TIMER_PIT_DEV(0))

Definition at line 97 of file board.h.

◆ CONFIG_ZTIMER_USEC_TYPE

#define CONFIG_ZTIMER_USEC_TYPE   ZTIMER_TYPE_PERIPH_TIMER

Definition at line 96 of file board.h.

◆ FRDM_NOR_SPI_CLK

#define FRDM_NOR_SPI_CLK   SPI_CLK_5MHZ

Definition at line 105 of file board.h.

◆ FRDM_NOR_SPI_CS

#define FRDM_NOR_SPI_CS   SPI_HWCS(0)

Flash CS pin.

Definition at line 106 of file board.h.

◆ FRDM_NOR_SPI_DEV

#define FRDM_NOR_SPI_DEV   SPI_DEV(0)

Definition at line 104 of file board.h.

◆ FXOS8700_PARAM_ADDR

#define FXOS8700_PARAM_ADDR   0x1F

Definition at line 114 of file board.h.

◆ FXOS8700_PARAM_I2C

#define FXOS8700_PARAM_I2C   I2C_DEV(0)

Definition at line 113 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 0)

Definition at line 36 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (GPIOB->PSOR = LED0_MASK)

Definition at line 38 of file board.h.

◆ LED0_ON

#define LED0_ON   (GPIOB->PCOR = LED0_MASK)

Definition at line 37 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PORT_B, 0)

Definition at line 35 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (GPIOB->PTOR = LED0_MASK)

Definition at line 39 of file board.h.

◆ LED1_MASK

#define LED1_MASK   (1 << 1)

Definition at line 41 of file board.h.

◆ LED1_OFF

#define LED1_OFF   (GPIOC->PSOR = LED1_MASK)

Definition at line 43 of file board.h.

◆ LED1_ON

#define LED1_ON   (GPIOC->PCOR = LED1_MASK)

Definition at line 42 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(PORT_C, 1)

Definition at line 40 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   (GPIOC->PTOR = LED1_MASK)

Definition at line 44 of file board.h.

◆ LED2_MASK

#define LED2_MASK   (1 << 19)

Definition at line 46 of file board.h.

◆ LED2_OFF

#define LED2_OFF   (GPIOA->PSOR = LED2_MASK)

Definition at line 48 of file board.h.

◆ LED2_ON

#define LED2_ON   (GPIOA->PCOR = LED2_MASK)

Definition at line 47 of file board.h.

◆ LED2_PIN

#define LED2_PIN   GPIO_PIN(PORT_A, 19)

Definition at line 45 of file board.h.

◆ LED2_TOGGLE

#define LED2_TOGGLE   (GPIOA->PTOR = LED2_MASK)

Definition at line 49 of file board.h.

◆ LED3_MASK

#define LED3_MASK   (1 << 18)

Definition at line 51 of file board.h.

◆ LED3_OFF

#define LED3_OFF   (GPIOA->PSOR = LED3_MASK)

Definition at line 53 of file board.h.

◆ LED3_ON

#define LED3_ON   (GPIOA->PCOR = LED3_MASK)

Definition at line 52 of file board.h.

◆ LED3_PIN

#define LED3_PIN   GPIO_PIN(PORT_A, 18)

Definition at line 50 of file board.h.

◆ LED3_TOGGLE

#define LED3_TOGGLE   (GPIOA->PTOR = LED3_MASK)

Definition at line 54 of file board.h.

◆ XTIMER_BACKOFF

#define XTIMER_BACKOFF   (5)

Definition at line 86 of file board.h.

◆ XTIMER_CHAN

#define XTIMER_CHAN   (0)

Definition at line 83 of file board.h.

◆ XTIMER_DEV

#define XTIMER_DEV   (TIMER_LPTMR_DEV(0))

Definition at line 82 of file board.h.

◆ XTIMER_HZ

#define XTIMER_HZ   (32768ul)

Definition at line 88 of file board.h.

◆ XTIMER_ISR_BACKOFF

#define XTIMER_ISR_BACKOFF   (5)

Definition at line 87 of file board.h.

◆ XTIMER_WIDTH

#define XTIMER_WIDTH   (16)

Definition at line 85 of file board.h.