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

Board specific definitions for the phyWAVE evaluation board. More...

Detailed Description

Board specific definitions for the phyWAVE evaluation board.

Author
Johann Fischer j.fis.nosp@m.cher.nosp@m.@phyt.nosp@m.ec.d.nosp@m.e
Sebastian Meiling s@mln.nosp@m.g.ne.nosp@m.t

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.

LED pin definitions and handlers

#define LED0_PIN   GPIO_PIN(PORT_D, 6)
 
#define LED1_PIN   GPIO_PIN(PORT_D, 4)
 
#define LED2_PIN   GPIO_PIN(PORT_A, 4)
 
#define LED0_MASK   (1 << 6)
 
#define LED1_MASK   (1 << 4)
 
#define LED2_MASK   (1 << 4)
 
#define LED0_ON   (GPIOD->PCOR = LED0_MASK)
 
#define LED0_OFF   (GPIOD->PSOR = LED0_MASK)
 
#define LED0_TOGGLE   (GPIOD->PTOR = LED0_MASK)
 
#define LED1_ON   (GPIOD->PCOR = LED1_MASK)
 
#define LED1_OFF   (GPIOD->PSOR = LED1_MASK)
 
#define LED1_TOGGLE   (GPIOD->PTOR = LED1_MASK)
 
#define LED2_ON   (GPIOA->PCOR = LED2_MASK)
 
#define LED2_OFF   (GPIOA->PSOR = LED2_MASK)
 
#define LED2_TOGGLE   (GPIOA->PTOR = LED2_MASK)
 

Macro for button S1/S2.

#define BTN0_PIN   GPIO_PIN(PORT_D, 1)
 
#define BTN0_MODE   GPIO_IN_PU
 

Macro for capacitive sensor button.

#define BTN1_PORT   PORTC
 
#define BTN1_PIN   GPIO_PIN(PORT_C, 6)
 
#define BTN1_MODE   GPIO_IN
 

KW2XRF configuration

{spi bus, cs pin, int pin, spi speed,}

#define KW2XRF_PARAM_SPI   SPI_DEV(1)
 
#define KW2XRF_PARAM_SPI_CLK   (SPI_CLK_10MHZ)
 
#define KW2XRF_PARAM_CS   GPIO_PIN(KW2XDRF_PORT, KW2XDRF_PCS0_PIN)
 
#define KW2XRF_PARAM_INT   GPIO_PIN(KW2XDRF_PORT, KW2XDRF_IRQ_PIN)
 
#define KW2XRF_PARAM_RESET   GPIO_PIN(KW2XDRF_IRQ_PIN, KW2XDRF_RST_PIN)
 
#define KW2XRF_SHARED_SPI   (0)
 

TMP006 configuration

#define TMP00X_PARAM_ADDR   (0x41)
 

Macro Definition Documentation

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Definition at line 62 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PORT_D, 1)

Definition at line 61 of file board.h.

◆ BTN1_MODE

#define BTN1_MODE   GPIO_IN

Definition at line 71 of file board.h.

◆ BTN1_PIN

#define BTN1_PIN   GPIO_PIN(PORT_C, 6)

Definition at line 70 of file board.h.

◆ BTN1_PORT

#define BTN1_PORT   PORTC

Definition at line 69 of file board.h.

◆ KW2XRF_PARAM_CS

#define KW2XRF_PARAM_CS   GPIO_PIN(KW2XDRF_PORT, KW2XDRF_PCS0_PIN)

Definition at line 82 of file board.h.

◆ KW2XRF_PARAM_INT

#define KW2XRF_PARAM_INT   GPIO_PIN(KW2XDRF_PORT, KW2XDRF_IRQ_PIN)

Definition at line 83 of file board.h.

◆ KW2XRF_PARAM_RESET

#define KW2XRF_PARAM_RESET   GPIO_PIN(KW2XDRF_IRQ_PIN, KW2XDRF_RST_PIN)

Definition at line 84 of file board.h.

◆ KW2XRF_PARAM_SPI

#define KW2XRF_PARAM_SPI   SPI_DEV(1)

Definition at line 80 of file board.h.

◆ KW2XRF_PARAM_SPI_CLK

#define KW2XRF_PARAM_SPI_CLK   (SPI_CLK_10MHZ)

Definition at line 81 of file board.h.

◆ KW2XRF_SHARED_SPI

#define KW2XRF_SHARED_SPI   (0)

Definition at line 85 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 6)

Definition at line 40 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (GPIOD->PSOR = LED0_MASK)

Definition at line 45 of file board.h.

◆ LED0_ON

#define LED0_ON   (GPIOD->PCOR = LED0_MASK)

Definition at line 44 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(PORT_D, 6)

Definition at line 36 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (GPIOD->PTOR = LED0_MASK)

Definition at line 46 of file board.h.

◆ LED1_MASK

#define LED1_MASK   (1 << 4)

Definition at line 41 of file board.h.

◆ LED1_OFF

#define LED1_OFF   (GPIOD->PSOR = LED1_MASK)

Definition at line 49 of file board.h.

◆ LED1_ON

#define LED1_ON   (GPIOD->PCOR = LED1_MASK)

Definition at line 48 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(PORT_D, 4)

Definition at line 37 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   (GPIOD->PTOR = LED1_MASK)

Definition at line 50 of file board.h.

◆ LED2_MASK

#define LED2_MASK   (1 << 4)

Definition at line 42 of file board.h.

◆ LED2_OFF

#define LED2_OFF   (GPIOA->PSOR = LED2_MASK)

Definition at line 53 of file board.h.

◆ LED2_ON

#define LED2_ON   (GPIOA->PCOR = LED2_MASK)

Definition at line 52 of file board.h.

◆ LED2_PIN

#define LED2_PIN   GPIO_PIN(PORT_A, 4)

Definition at line 38 of file board.h.

◆ LED2_TOGGLE

#define LED2_TOGGLE   (GPIOA->PTOR = LED2_MASK)

Definition at line 54 of file board.h.

◆ TMP00X_PARAM_ADDR

#define TMP00X_PARAM_ADDR   (0x41)

Definition at line 93 of file board.h.