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

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

Detailed Description

Board specific definitions for the FRDM-KL43Z.

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 "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 KINETIS_FOPT   (0xff & ~(NV_FOPT_BOOTSRC_SEL_MASK | NV_FOPT_BOOTPIN_OPT_MASK))
 FOPT setting.
 

LED pin definitions and handlers

#define LED0_PIN   GPIO_PIN(PORT_D, 5)
 
#define LED1_PIN   GPIO_PIN(PORT_E, 31)
 
#define LED0_MASK   (1 << 5)
 
#define LED1_MASK   (1 << 31)
 
#define LED0_ON   (GPIOD->PCOR = LED0_MASK)
 
#define LED0_OFF   (GPIOD->PSOR = LED0_MASK)
 
#define LED0_TOGGLE   (GPIOD->PTOR = LED0_MASK)
 
#define LED1_ON   (GPIOE->PCOR = LED1_MASK)
 
#define LED1_OFF   (GPIOE->PSOR = LED1_MASK)
 
#define LED1_TOGGLE   (GPIOE->PTOR = LED1_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_OVERHEAD   (4)
 
#define XTIMER_HZ   (32768ul)
 

MAG3110 3-axis magnetometer bus configuration

#define MAG3110_PARAM_I2C   I2C_DEV(0)
 
#define MAG3110_PARAM_ADDR   0x0E
 

MMA8451Q 3-axis accelerometer bus configuration

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