board.h File Reference

Board specific definitions for openlabs-kw41z-mini. More...

Detailed Description

Board specific definitions for openlabs-kw41z-mini.

Author
Joakim NohlgÄrd joaki.nosp@m.m.no.nosp@m.hlgar.nosp@m.d@ei.nosp@m.stec..nosp@m.se
Thomas Stilwell stilw.nosp@m.ellt.nosp@m.@open.nosp@m.labs.nosp@m..co

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.

Macros

#define PTB3_OUTPUT_OSC32K   (0)
 Enable LF oscillator output on PTB3 to aid debugging or calibration.
 
#define PTB3_OUTPUT_OSCERCLK   (0)
 Enable HF oscillator output on PTB3 to aid debugging or calibration.
 

Functions

void board_init (void)
 Initialize board-specific hardware, including clock, LEDs, and stdio.
 
#define KINETIS_FOPT   0xFB /* disable NMI (0xFF to enable) */
 

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)
 

xtimer configuration

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