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

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.

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

Button pin definitions

#define BTN0_PIN   GPIO_PIN(PORT_B, 2)
 
#define BTN0_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))
 
#define CONFIG_ZTIMER_USEC_FREQ   (1000000LU)
 
#define CONFIG_ZTIMER_USEC_WIDTH   (32)