Wirepas SDK
board.h
Go to the documentation of this file.
1 /* Copyright 2018 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
13 #ifndef BOARD_RUUVITAG_H_
14 #define BOARD_RUUVITAG_H_
15 
16 // Define the SPI instance to use
17 #define USE_SPI0
18 // SPI Port pins
19 #define BOARD_SPI_SCK_PIN 29
20 #define BOARD_SPI_MOSI_PIN 25
21 #define BOARD_SPI_MISO_PIN 28
22 
23 // SPI Chip Select for various sensor
24 #define BOARD_SPI_LIS2DH12_CS_PIN 8
25 #define BOARD_SPI_BME280_CS_PIN 3
26 
27 // INT pins
28 #define BOARD_LIS2DH12_INT1_PIN 2
29 //#define BOARD_LIS2DH12_INT2_PIN 6
30 
31 
32 
33 // List of GPIO pins for the LEDs on the board: LED1, LED2
34 #define BOARD_LED_PIN_LIST {17, 19}
35 
36 // Active low polarity for LEDs
37 #define BOARD_LED_ACTIVE_LOW true
38 
39 // List of GPIO pins for buttons on the board: Button1
40 #define BOARD_BUTTON_PIN_LIST {13}
41 
42 // Active low polarity for buttons
43 #define BOARD_BUTTON_ACTIVE_LOW true
44 
45 // Active internal pull-up for buttons
46 #define BOARD_BUTTON_INTERNAL_PULL true
47 
48 // The board supports DCDC (#define BOARD_SUPPORT_DCDC)
49 // Since SDK v1.2 (bootloader > v7) this option has been move to
50 // board/<board_name>/config.mk. Set board_hw_dcdc to yes to enable DCDC.
51 #ifdef BOARD_SUPPORT_DCDC
52 #error This option has been moved to board/<board_name>/config.mk
53 #endif
54 
55 
56 #endif /* BOARD_RUUVITAG_H_ */