File tree Expand file tree Collapse file tree 2 files changed +20
-37
lines changed Expand file tree Collapse file tree 2 files changed +20
-37
lines changed Original file line number Diff line number Diff line change 22
22
extern " C" {
23
23
#endif
24
24
25
- // Pin number
26
- // This array allows to wrap Arduino pin number(Dx or x)
27
- // to STM32 PinName (PX_n)
28
25
const PinName digitalPin[] = {
29
- PA_1, // D0 - RFSW0
30
- PA_2, // D1 - RFSW1
31
- PA_4, // D2 - NSS
32
- PA_5, // D3 - CLK
33
- PA_6, // D4 - MISO
34
- PA_7, // D5 - MOSI
35
- PB_0, // D6 - DIO2
36
- PB_1, // D7 - DIO3
37
- PB_2, // D8 - DIO1
38
- PB_4, // D9 - Status LED trigger, connect to an external LED to show status of LoRaWAN processing
39
- PB_5, // D10 - Status LED trigger, connect to an external LED, Reserved
26
+ PA_1, // D0 - RFSW0
27
+ PA_2, // D1 - RFSW1
28
+ PA_4, // D2 - NSS
29
+ PA_5, // D3 - CLK
30
+ PA_6, // D4 - MISO
31
+ PA_7, // D5 - MOSI
32
+ PB_0, // D6 - DIO2
33
+ PB_1, // D7 - DIO3
34
+ PB_2, // D8 - DIO1
35
+ PB_4, // D9 - Status LED trigger, connect to an external LED to show status of LoRaWAN processing
36
+ PB_5, // D10 - Status LED trigger, connect to an external LED, Reserved
40
37
PB_10, // D11 - DIO0
41
38
PB_11, // D12 - NRST
42
- PC_0, // D13
43
- PB_6, // D14 - UART_TX
39
+ PC_0, // D13
40
+ PB_6, // D14 - UART_TX
44
41
PB_7, // D15 - UART_RX
45
- PA_9, // D16 - UART_TX
42
+ PA_9, // D16 - UART_TX
46
43
PA_10 // D17 - UART_RX
47
44
};
48
45
@@ -58,17 +55,6 @@ extern "C" {
58
55
/* *
59
56
* @brief System Clock Configuration
60
57
* The system Clock is configured as follow :
61
- * System Clock source = PLL (HSI)
62
- * SYSCLK(Hz) = 32000000
63
- * HCLK(Hz) = 32000000
64
- * AHB Prescaler = 1
65
- * APB1 Prescaler = 1
66
- * APB2 Prescaler = 1
67
- * HSE Frequency(Hz) = 8000000
68
- * HSI Frequency(Hz) = 16000000
69
- * PLLMUL = 8
70
- * PLLDIV = 2
71
- * Flash Latency(WS) = 1
72
58
* @retval None
73
59
*/
74
60
WEAK void SystemClock_Config (void )
Original file line number Diff line number Diff line change @@ -29,29 +29,26 @@ extern "C" {
29
29
30
30
#define PA1 0
31
31
#define PA2 1
32
- #define PA4 2
32
+ #define PA4 2
33
33
#define PA5 3
34
34
#define PA6 4
35
35
#define PA7 5
36
- #define PB0 6
36
+ #define PB0 6
37
37
#define PB1 7
38
38
#define PB2 8
39
39
#define PB4 9
40
40
#define PB5 10
41
- #define PB10 11
42
- #define PB11 12
43
- #define PC0 13 // A0 Dummie
41
+ #define PB10 11
42
+ #define PB11 12
43
+ #define PC0 13
44
44
#define PB6 14 // TX Module LoRa
45
45
#define PB7 15 // RX
46
46
#define PA9 16 // TX Boot
47
- #define PA10 17 // RX Boot
47
+ #define PA10 17 // RX Boot
48
48
49
49
50
50
// This must be a literal
51
51
#define NUM_DIGITAL_PINS 18
52
- // This must be a literal with a value less than or equal to to MAX_ANALOG_INPUTS
53
- #define NUM_ANALOG_INPUTS 1
54
- #define NUM_ANALOG_FIRST 1
55
52
56
53
// On-board LED pin number
57
54
#define LED_BUILTIN PB4
You can’t perform that action at this time.
0 commit comments