Wirepas SDK
board.h
Go to the documentation of this file.
1 /* Copyright 2021 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
12 #ifndef BOARD_WUERTH_261101102XXXX_BOARD_H_
13 #define BOARD_WUERTH_261101102XXXX_BOARD_H_
14 
15 // NRF_GPIO is mapped to NRF_P0 , for pins P0.00 ... P0.31
16 // Use NRF_P1 for pins P1.00 ... P1.15
17 // With nrf_gpio.h, use SW_pin (logical pins, port-aware)
18 
41 // Interrupt pin for dual mcu app, unread indication
42 #define BOARD_UART_IRQ_PIN 2
43 
44 // Serial port pins
45 #define BOARD_USART_TX_PIN 40
46 #define BOARD_USART_RX_PIN 41
47 #define BOARD_USART_CTS_PIN 12 /* For USE_USART_HW_FLOW_CONTROL */
48 #define BOARD_USART_RTS_PIN 11 /* For USE_USART_HW_FLOW_CONTROL */
49 
50 // I2C pins
51 #define BOARD_I2C_SDA_PIN BOARD_USART_CTS_PIN
52 #define BOARD_I2C_SCL_PIN BOARD_USART_RTS_PIN
53 
54 // List of GPIO pins for the LEDs on the board: LED 1 to LED 2
55 #define BOARD_LED_PIN_LIST {19, 22}
56 
57 // Active low polarity for LEDs
58 #define BOARD_LED_ACTIVE_LOW false
59 
60 // List of GPIO pins for buttons on the board:
61 // #define BOARD_BUTTON_PIN_LIST {}
62 
63 // Active low polarity for buttons
64 #define BOARD_BUTTON_ACTIVE_LOW true
65 
66 
67 #endif /* BOARD_WUERTH_261101102XXXX_BOARD_H_ */