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// Serial port pins
42#define BOARD_USART_TX_PIN 40
43#define BOARD_USART_RX_PIN 41
44#define BOARD_USART_CTS_PIN 12 /* For USE_USART_HW_FLOW_CONTROL */
45#define BOARD_USART_RTS_PIN 11 /* For USE_USART_HW_FLOW_CONTROL */
46
47// I2C pins
48#define BOARD_I2C_SDA_PIN BOARD_USART_CTS_PIN
49#define BOARD_I2C_SCL_PIN BOARD_USART_RTS_PIN
50
51// List of GPIO pins
52#define BOARD_GPIO_PIN_LIST {19, /* P0.19 */\
53 22, /* P0.22 */\
54 41, /* P1.09. required by the dual_mcu app. usart wakeup pin (= BOARD_USART_RX) */\
55 2} /* P0.02. required by the dual_mcu app (indication signal) */
56
57// User friendly name for GPIOs (IDs mapped to the BOARD_GPIO_PIN_LIST table)
58#define BOARD_GPIO_ID_LED1 0 // mapped to pin P0.19
59#define BOARD_GPIO_ID_LED2 1 // mapped to pin P0.22
60#define BOARD_GPIO_ID_USART_WAKEUP 2 // mapped to pin P1.09
61#define BOARD_GPIO_ID_UART_IRQ 3 // mapped to pin P0.02
62
63// List of LED IDs
64#define BOARD_LED_ID_LIST {BOARD_GPIO_ID_LED1, BOARD_GPIO_ID_LED2}
65
66// Active low polarity for LEDs
67#define BOARD_LED_ACTIVE_LOW false
68
69#endif /* BOARD_WUERTH_261101102XXXX_BOARD_H_ */