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

Board specific configuration for the Phytec 'reel board'. More...

Detailed Description

Board specific configuration for the Phytec 'reel board'.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file board.h.

#include "cpu.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 configuration

#define LED0_PIN   GPIO_PIN(0, 11)
 
#define LED1_PIN   GPIO_PIN(0, 12)
 
#define LED2_PIN   GPIO_PIN(1, 9)
 
#define LED3_PIN   GPIO_PIN(0, 13)
 
#define LED0_MASK   (1 << 11)
 
#define LED1_MASK   (1 << 12)
 
#define LED2_MASK   (1 << 9)
 
#define LED3_MASK   (1 << 13)
 
#define LED_MASK_P0   (LED0_MASK | LED1_MASK | LED3_MASK)
 
#define LED_MASK_P1   (LED2_MASK)
 
#define LED0_ON   (NRF_P0->OUTCLR = LED0_MASK)
 
#define LED0_OFF   (NRF_P0->OUTSET = LED0_MASK)
 
#define LED0_TOGGLE   (NRF_P0->OUT ^= LED0_MASK)
 
#define LED1_ON   (NRF_P0->OUTCLR = LED1_MASK)
 
#define LED1_OFF   (NRF_P0->OUTSET = LED1_MASK)
 
#define LED1_TOGGLE   (NRF_P0->OUT ^= LED1_MASK)
 
#define LED2_ON   (NRF_P1->OUTCLR = LED2_MASK)
 
#define LED2_OFF   (NRF_P1->OUTSET = LED2_MASK)
 
#define LED2_TOGGLE   (NRF_P1->OUT ^= LED2_MASK)
 
#define LED3_ON   (NRF_P0->OUTCLR = LED3_MASK)
 
#define LED3_OFF   (NRF_P0->OUTSET = LED3_MASK)
 
#define LED3_TOGGLE   (NRF_P0->OUT ^= LED3_MASK)
 

Button pin configuration

#define BTN0_PIN   GPIO_PIN(0, 7)
 
#define BTN0_MODE   GPIO_IN_PU
 

Electronic paper display configuration (SSD1673fb)

#define SSD1673_SPI   SPI_DEV(0)
 
#define SSD1673_CS   GPIO_PIN(0, 17)
 
#define SSD1673_BUSY   GPIO_PIN(0, 14)
 
#define SSD1673_RESET   GPIO_PIN(0, 15)
 
#define SSD1673_DC_INPUT   GPIO_PIN(0, 16)
 

Humidity and temperature sensor configuration (HDC1010)

#define HDC1010_PARAM_I2C   I2C_DEV(0)
 
#define HDC1010_PARAM_ADDR   (0x43)
 
#define HDC1010_PIN_DRDY   GPIO_PIN(0, 22)
 

Digital accelerometer configuration (MMA8652FC)

#define MMA8X5X_PARAM_I2C   I2C_DEV(0)
 
#define MMA8X5X_PARAM_ADDR   (0x1d)
 
#define MMA8X5X_PARAM_PIN_INT1   GPIO_PIN(0, 24)
 
#define MMA8X5X_PARAM_PIN_INT2   GPIO_PIN(0, 25)
 

Digital proximity and ambient light sensor configuration (ADPS9960)

#define ADPS9960_PARAM_I2C   I2C_DEV(0)
 
#define ADPS9960_PARAM_ADDR   (0x29)
 
#define ADPS9960_PARAM_PIN_INT   GPIO_PIN(0, 23)
 

Macro Definition Documentation

◆ ADPS9960_PARAM_ADDR

#define ADPS9960_PARAM_ADDR   (0x29)

Definition at line 104 of file board.h.

◆ ADPS9960_PARAM_I2C

#define ADPS9960_PARAM_I2C   I2C_DEV(0)

Definition at line 103 of file board.h.

◆ ADPS9960_PARAM_PIN_INT

#define ADPS9960_PARAM_PIN_INT   GPIO_PIN(0, 23)

Definition at line 105 of file board.h.

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Definition at line 66 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(0, 7)

Definition at line 65 of file board.h.

◆ HDC1010_PARAM_ADDR

#define HDC1010_PARAM_ADDR   (0x43)

Definition at line 85 of file board.h.

◆ HDC1010_PARAM_I2C

#define HDC1010_PARAM_I2C   I2C_DEV(0)

Definition at line 84 of file board.h.

◆ HDC1010_PIN_DRDY

#define HDC1010_PIN_DRDY   GPIO_PIN(0, 22)

Definition at line 86 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 11)

Definition at line 37 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (NRF_P0->OUTSET = LED0_MASK)

Definition at line 45 of file board.h.

◆ LED0_ON

#define LED0_ON   (NRF_P0->OUTCLR = LED0_MASK)

Definition at line 44 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(0, 11)

Definition at line 32 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (NRF_P0->OUT ^= LED0_MASK)

Definition at line 46 of file board.h.

◆ LED1_MASK

#define LED1_MASK   (1 << 12)

Definition at line 38 of file board.h.

◆ LED1_OFF

#define LED1_OFF   (NRF_P0->OUTSET = LED1_MASK)

Definition at line 49 of file board.h.

◆ LED1_ON

#define LED1_ON   (NRF_P0->OUTCLR = LED1_MASK)

Definition at line 48 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(0, 12)

Definition at line 33 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   (NRF_P0->OUT ^= LED1_MASK)

Definition at line 50 of file board.h.

◆ LED2_MASK

#define LED2_MASK   (1 << 9)

Definition at line 39 of file board.h.

◆ LED2_OFF

#define LED2_OFF   (NRF_P1->OUTSET = LED2_MASK)

Definition at line 53 of file board.h.

◆ LED2_ON

#define LED2_ON   (NRF_P1->OUTCLR = LED2_MASK)

Definition at line 52 of file board.h.

◆ LED2_PIN

#define LED2_PIN   GPIO_PIN(1, 9)

Definition at line 34 of file board.h.

◆ LED2_TOGGLE

#define LED2_TOGGLE   (NRF_P1->OUT ^= LED2_MASK)

Definition at line 54 of file board.h.

◆ LED3_MASK

#define LED3_MASK   (1 << 13)

Definition at line 40 of file board.h.

◆ LED3_OFF

#define LED3_OFF   (NRF_P0->OUTSET = LED3_MASK)

Definition at line 57 of file board.h.

◆ LED3_ON

#define LED3_ON   (NRF_P0->OUTCLR = LED3_MASK)

Definition at line 56 of file board.h.

◆ LED3_PIN

#define LED3_PIN   GPIO_PIN(0, 13)

Definition at line 35 of file board.h.

◆ LED3_TOGGLE

#define LED3_TOGGLE   (NRF_P0->OUT ^= LED3_MASK)

Definition at line 58 of file board.h.

◆ LED_MASK_P0

#define LED_MASK_P0   (LED0_MASK | LED1_MASK | LED3_MASK)

Definition at line 41 of file board.h.

◆ LED_MASK_P1

#define LED_MASK_P1   (LED2_MASK)

Definition at line 42 of file board.h.

◆ MMA8X5X_PARAM_ADDR

#define MMA8X5X_PARAM_ADDR   (0x1d)

Definition at line 94 of file board.h.

◆ MMA8X5X_PARAM_I2C

#define MMA8X5X_PARAM_I2C   I2C_DEV(0)

Definition at line 93 of file board.h.

◆ MMA8X5X_PARAM_PIN_INT1

#define MMA8X5X_PARAM_PIN_INT1   GPIO_PIN(0, 24)

Definition at line 95 of file board.h.

◆ MMA8X5X_PARAM_PIN_INT2

#define MMA8X5X_PARAM_PIN_INT2   GPIO_PIN(0, 25)

Definition at line 96 of file board.h.

◆ SSD1673_BUSY

#define SSD1673_BUSY   GPIO_PIN(0, 14)

Definition at line 75 of file board.h.

◆ SSD1673_CS

#define SSD1673_CS   GPIO_PIN(0, 17)

Definition at line 74 of file board.h.

◆ SSD1673_DC_INPUT

#define SSD1673_DC_INPUT   GPIO_PIN(0, 16)

Definition at line 77 of file board.h.

◆ SSD1673_RESET

#define SSD1673_RESET   GPIO_PIN(0, 15)

Definition at line 76 of file board.h.

◆ SSD1673_SPI

#define SSD1673_SPI   SPI_DEV(0)

Definition at line 73 of file board.h.