Wirepas SDK
board.h File Reference

Detailed Description

Board definition for the Ruuvitag device

Definition in file board.h.

Go to the source code of this file.

Macros

#define USE_SPI0
 
#define BOARD_SPI_SCK_PIN   29
 
#define BOARD_SPI_MOSI_PIN   25
 
#define BOARD_SPI_MISO_PIN   28
 
#define BOARD_GPIO_PIN_LIST
 
#define BOARD_GPIO_ID_LED1   0
 
#define BOARD_GPIO_ID_LED2   1
 
#define BOARD_GPIO_ID_BUTTON1   2
 
#define BOARD_GPIO_ID_LIS2DX12_INT1   3
 
#define BOARD_GPIO_ID_LIS2DX12_SPI_CS   4
 
#define BOARD_GPIO_ID_BME280_SPI_CS   5
 
#define BOARD_LED_ID_LIST   {BOARD_GPIO_ID_LED1, BOARD_GPIO_ID_LED2}
 
#define BOARD_LED_ACTIVE_LOW   true
 
#define BOARD_BUTTON_ID_LIST   {BOARD_GPIO_ID_BUTTON1}
 
#define BOARD_BUTTON_ACTIVE_LOW   true
 
#define BOARD_BUTTON_INTERNAL_PULL   true
 

Macro Definition Documentation

◆ BOARD_BUTTON_ACTIVE_LOW

#define BOARD_BUTTON_ACTIVE_LOW   true

Definition at line 50 of file board.h.

◆ BOARD_BUTTON_ID_LIST

#define BOARD_BUTTON_ID_LIST   {BOARD_GPIO_ID_BUTTON1}

Definition at line 47 of file board.h.

◆ BOARD_BUTTON_INTERNAL_PULL

#define BOARD_BUTTON_INTERNAL_PULL   true

Definition at line 53 of file board.h.

◆ BOARD_GPIO_ID_BME280_SPI_CS

#define BOARD_GPIO_ID_BME280_SPI_CS   5
Examples
ruuvi_evk/app.c.

Definition at line 38 of file board.h.

◆ BOARD_GPIO_ID_BUTTON1

#define BOARD_GPIO_ID_BUTTON1   2

Definition at line 34 of file board.h.

◆ BOARD_GPIO_ID_LED1

#define BOARD_GPIO_ID_LED1   0

Definition at line 32 of file board.h.

◆ BOARD_GPIO_ID_LED2

#define BOARD_GPIO_ID_LED2   1

Definition at line 33 of file board.h.

◆ BOARD_GPIO_ID_LIS2DX12_INT1

#define BOARD_GPIO_ID_LIS2DX12_INT1   3

Definition at line 35 of file board.h.

◆ BOARD_GPIO_ID_LIS2DX12_SPI_CS

#define BOARD_GPIO_ID_LIS2DX12_SPI_CS   4
Examples
ruuvi_evk/app.c.

Definition at line 37 of file board.h.

◆ BOARD_GPIO_PIN_LIST

#define BOARD_GPIO_PIN_LIST
Value:
{17, /* P0.17 */\
19, /* P0.19 */\
13, /* P0.13 */\
2, /* P0.02. LIS2DH12 INT1 pin. can be replaced by P0.06 if you want to use the LIS2DH12 INT2 pin instead */\
8, /* P0.08. SPI CS pin for the LIS2DH12 accelerometer */\
3} /* P0.03. SPI CS pin for the BME280 pressure/humidity/temperature sensor */

Definition at line 24 of file board.h.

◆ BOARD_LED_ACTIVE_LOW

#define BOARD_LED_ACTIVE_LOW   true

Definition at line 44 of file board.h.

◆ BOARD_LED_ID_LIST

#define BOARD_LED_ID_LIST   {BOARD_GPIO_ID_LED1, BOARD_GPIO_ID_LED2}

Definition at line 41 of file board.h.

◆ BOARD_SPI_MISO_PIN

#define BOARD_SPI_MISO_PIN   28

Definition at line 21 of file board.h.

◆ BOARD_SPI_MOSI_PIN

#define BOARD_SPI_MOSI_PIN   25

Definition at line 20 of file board.h.

◆ BOARD_SPI_SCK_PIN

#define BOARD_SPI_SCK_PIN   29

Definition at line 19 of file board.h.

◆ USE_SPI0

#define USE_SPI0

Definition at line 17 of file board.h.