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_MDBT50Q_RX_H_
14#define BOARD_MDBT50Q_RX_H_
15
16// Serial port
17// There is no serial port but a USB connection
18
19// List of GPIO pins
20#define BOARD_GPIO_PIN_LIST {45, /* P1.13 */\
21 43, /* P1.11 */\
22 15} /* P0.15 */
23
24// User friendly name for GPIOs (IDs mapped to the BOARD_GPIO_PIN_LIST table)
25#define BOARD_GPIO_ID_LED0 0 // mapped to pin P1.13
26#define BOARD_GPIO_ID_LED1 1 // mapped to pin P1.11
27#define BOARD_GPIO_ID_BUTTON0 2 // mapped to pin P0.15
28
29// List of LED IDs
30#define BOARD_LED_ID_LIST {BOARD_GPIO_ID_LED0, BOARD_GPIO_ID_LED1}
31
32// Active low polarity for LEDs
33#define BOARD_LED_ACTIVE_LOW true
34
35// List of button IDs
36#define BOARD_BUTTON_ID_LIST {BOARD_GPIO_ID_BUTTON0}
37
38// Active low polarity for buttons
39#define BOARD_BUTTON_ACTIVE_LOW true
40
41// Active internal pull-up for buttons
42#define BOARD_BUTTON_INTERNAL_PULL true
43
44// The board supports DCDC (#define BOARD_SUPPORT_DCDC)
45// Since SDK v1.2 (stack v5.1.x) this option has been move to
46// board/<board_name>/config.mk. Set board_hw_dcdc to yes to enable DCDC.
47#ifdef BOARD_SUPPORT_DCDC
48#error This option has been moved to board/<board_name>/config.mk
49#endif
50
51#endif /* BOARD_MDBT50Q_RX_H_ */