I am trying to make the custom_board.h header file but I have some questions. I am using the PCA10040.h as a starting point. However I am confused on some of the things included for in that file
1. What's LED_START, LED_STOP and is that necessary?
2. Same for Buttons
3. What is the difference between SER_APP_RX_PIN and RX_PIN_NUMBER and SER_CON_RX_PIN? They all are UART pins so I am carious why 3 different definitions
4. I need a chip disable signal and I2C for my board, I have defined them starting from line 58 to 63, is it done properly?
5. How do I call this header file in the c file? Is it #include "custom_board.h" first in the boards.h file and that way #include bsh.h would work in the c file or do I need to do something different?
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef CUSTOM_BOARD_H
#define CUSTOM_BOARD_H
#ifdef __cplusplus
extern "C" {
#endif
#include "nrf_gpio.h"
// LEDs definitions for custom_board
#define LEDS_NUMBER 4
#define LED_START 25
#define LED_1 25
#define LED_2 26
#define LED_3 27
#define LED_STOP 27
#define LEDS_ACTIVE_STATE 0
#define LEDS_INV_MASK LEDS_MASK