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

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)
 

Macro Definition Documentation

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Definition at line 79 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PORT_B, 2)

Definition at line 78 of file board.h.

◆ CONFIG_ZTIMER_USEC_DEV

#define CONFIG_ZTIMER_USEC_DEV   (TIMER_PIT_DEV(0))

Definition at line 108 of file board.h.

◆ CONFIG_ZTIMER_USEC_FREQ

#define CONFIG_ZTIMER_USEC_FREQ   (1000000LU)

Definition at line 109 of file board.h.

◆ CONFIG_ZTIMER_USEC_TYPE

#define CONFIG_ZTIMER_USEC_TYPE   ZTIMER_TYPE_PERIPH_TIMER

Definition at line 107 of file board.h.

◆ CONFIG_ZTIMER_USEC_WIDTH

#define CONFIG_ZTIMER_USEC_WIDTH   (32)

Definition at line 110 of file board.h.

◆ KINETIS_FOPT

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

Definition at line 37 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 3)

Definition at line 51 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (GPIOB->PSOR = LED0_MASK)

Definition at line 53 of file board.h.

◆ LED0_ON

#define LED0_ON   (GPIOB->PCOR = LED0_MASK)

Definition at line 52 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PORT_B, 3)

Definition at line 50 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (GPIOB->PTOR = LED0_MASK)

Definition at line 54 of file board.h.

◆ XTIMER_BACKOFF

#define XTIMER_BACKOFF   (5)

Definition at line 97 of file board.h.

◆ XTIMER_CHAN

#define XTIMER_CHAN   (0)

Definition at line 94 of file board.h.

◆ XTIMER_DEV

#define XTIMER_DEV   (TIMER_LPTMR_DEV(0))

Definition at line 93 of file board.h.

◆ XTIMER_HZ

#define XTIMER_HZ   (32768ul)

Definition at line 99 of file board.h.

◆ XTIMER_ISR_BACKOFF

#define XTIMER_ISR_BACKOFF   (5)

Definition at line 98 of file board.h.

◆ XTIMER_WIDTH

#define XTIMER_WIDTH   (16)

Definition at line 96 of file board.h.