blob: dc1e7d09819885a67cb73b34688633ec26f45777 (
plain)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use of the information. NO
* WARRANTY of ANY KIND is provided. This heading must NOT be removed from
* the file.
*
*/
#ifndef BLE400_H
#define BLE400_H
// LEDs definitions for BLE400
#define LEDS_NUMBER 1
#define LED_START 22
#define LED_0 22
#define LED_STOP 22
#define LEDS_LIST { LED_0 }
#define BSP_LED_0 LED_0
#define BSP_LED_0_MASK (1<<BSP_LED_0)
#define LEDS_MASK (BSP_LED_0_MASK)
/* all LEDs are lit when GPIO is low */
#define LEDS_INV_MASK LEDS_MASK
#define BUTTONS_NUMBER 2
#define BUTTON_START 3
#define BUTTON_1 3
#define BUTTON_2 4
#define BUTTON_STOP 4
#define BUTTON_PULL NRF_GPIO_PIN_NOPULL
#define BUTTONS_LIST { BUTTON_1, BUTTON_2 }
#define BSP_BUTTON_0 BUTTON_1
#define BSP_BUTTON_1 BUTTON_2
#define BSP_BUTTON_0_MASK (1<<BSP_BUTTON_0)
#define BSP_BUTTON_1_MASK (1<<BSP_BUTTON_1)
#define BUTTONS_MASK (BSP_BUTTON_0_MASK|BSP_BUTTON_1_MASK)
#define RX_PIN_NUMBER 18
#define TX_PIN_NUMBER 19
//#define CTS_PIN_NUMBER 10
//#define RTS_PIN_NUMBER 8
#define HWFC false
#if 0
#define SPIS_MISO_PIN 28 // SPI MISO signal.
#define SPIS_CSN_PIN 12 // SPI CSN signal.
#define SPIS_MOSI_PIN 25 // SPI MOSI signal.
#define SPIS_SCK_PIN 29 // SPI SCK signal.
#define SPIM0_SCK_PIN 4 /**< SPI clock GPIO pin number. */
#define SPIM0_MOSI_PIN 1 /**< SPI Master Out Slave In GPIO pin number. */
#define SPIM0_MISO_PIN 3 /**< SPI Master In Slave Out GPIO pin number. */
#define SPIM0_SS_PIN 2 /**< SPI Slave Select GPIO pin number. */
#define SPIM1_SCK_PIN 15 /**< SPI clock GPIO pin number. */
#define SPIM1_MOSI_PIN 12 /**< SPI Master Out Slave In GPIO pin number. */
#define SPIM1_MISO_PIN 14 /**< SPI Master In Slave Out GPIO pin number. */
#define SPIM1_SS_PIN 13 /**< SPI Slave Select GPIO pin number. */
// serialization APPLICATION board
#define SER_APP_RX_PIN 12 // UART RX pin number.
#define SER_APP_TX_PIN 13 // UART TX pin number.
#define SER_APP_CTS_PIN 15 // UART Clear To Send pin number.
#define SER_APP_RTS_PIN 14 // UART Request To Send pin number.
#define SER_APP_SPIM0_SCK_PIN 29 // SPI clock GPIO pin number.
#define SER_APP_SPIM0_MOSI_PIN 25 // SPI Master Out Slave In GPIO pin number
#define SER_APP_SPIM0_MISO_PIN 28 // SPI Master In Slave Out GPIO pin number
#define SER_APP_SPIM0_SS_PIN 12 // SPI Slave Select GPIO pin number
#define SER_APP_SPIM0_RDY_PIN 14 // SPI READY GPIO pin number
#define SER_APP_SPIM0_REQ_PIN 13 // SPI REQUEST GPIO pin number
// serialization CONNECTIVITY board
#define SER_CON_RX_PIN 13 // UART RX pin number.
#define SER_CON_TX_PIN 12 // UART TX pin number.
#define SER_CON_CTS_PIN 14 // UART Clear To Send pin number. Not used if HWFC is set to false.
#define SER_CON_RTS_PIN 15 // UART Request To Send pin number. Not used if HWFC is set to false.
#define SER_CON_SPIS_SCK_PIN 29 // SPI SCK signal.
#define SER_CON_SPIS_MOSI_PIN 25 // SPI MOSI signal.
#define SER_CON_SPIS_MISO_PIN 28 // SPI MISO signal.
#define SER_CON_SPIS_CSN_PIN 12 // SPI CSN signal.
#define SER_CON_SPIS_RDY_PIN 14 // SPI READY GPIO pin number.
#define SER_CON_SPIS_REQ_PIN 13 // SPI REQUEST GPIO pin number.
#endif
#endif // BLE400_H
|