-
Notifications
You must be signed in to change notification settings - Fork 2
/
custom_board_v0.h
76 lines (50 loc) · 1.75 KB
/
custom_board_v0.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* custom_board_v0.h
*
* Created on: 18 déc. 2019
* Author: Vincent
*/
#ifndef CUSTOM_BOARD_V0_H_
#define CUSTOM_BOARD_V0_H_
#ifdef __cplusplus
extern "C" {
#endif
#define LEDS_NUMBER 4
#define LED_1 NRF_GPIO_PIN_MAP(0, 17)
#define LED_2 NRF_GPIO_PIN_MAP(0, 18)
#define LED_3 NRF_GPIO_PIN_MAP(0, 19)
#define LED_4 NRF_GPIO_PIN_MAP(0, 20)
#define LEDS_ACTIVE_STATE 1
#define LEDS_INV_MASK LEDS_MASK
#define LEDS_LIST { LED_1, LED_2, LED_3, LED_4 }
#define LEDS_INV_MASK LEDS_MASK
#define BSP_LED_0 LED_1
#define BSP_LED_1 LED_2
#define BSP_LED_2 LED_3
#define BSP_LED_3 LED_4
// There is only one button for the application
// as the second button is used for a RESET.
#define BUTTONS_NUMBER 1
//#define BUTTON_START 17 #define BUTTON_1 NRF_GPIO_PIN_MAP(1,6)
#define BUTTON_1 NRF_GPIO_PIN_MAP(0, 13)
//#define BUTTON_STOP 19
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP
#define BUTTONS_ACTIVE_STATE 0
#define BUTTONS_LIST { BUTTON_1 }
#define BSP_BUTTON_0 BUTTON_1
//#define HAS_LSM6
#define SDA_PIN_NUMBER NRF_GPIO_PIN_MAP(0, 25)
#define SCL_PIN_NUMBER NRF_GPIO_PIN_MAP(0, 24)
#define LSM6_INT1 NRF_GPIO_PIN_MAP(0, 23)
#define LSM6_INT2 NRF_GPIO_PIN_MAP(0, 26)
#define VL53_INT NRF_GPIO_PIN_MAP(0, 22)
#define VNH_INA1 NRF_GPIO_PIN_MAP(0, 4)
#define VNH_INB1 NRF_GPIO_PIN_MAP(0, 28)
#define VNH_PWM1 NRF_GPIO_PIN_MAP(0, 29)
#define VNH_CS1 NRF_SAADC_INPUT_AIN6 /*NRF_GPIO_PIN_MAP(0, 30)*/
#define VNH_DIAG1 NRF_GPIO_PIN_MAP(0, 31)
#define HWFC true
#ifdef __cplusplus
}
#endif
#endif /* CUSTOM_BOARD_V0_H_ */