Skip to content

Commit a8365a3

Browse files
committed
Clean up
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent d138bd5 commit a8365a3

File tree

2 files changed

+20
-37
lines changed

2 files changed

+20
-37
lines changed

variants/RHF76_052/variant.cpp

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,24 @@
2222
extern "C" {
2323
#endif
2424

25-
// Pin number
26-
// This array allows to wrap Arduino pin number(Dx or x)
27-
// to STM32 PinName (PX_n)
2825
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
4037
PB_10, //D11 - DIO0
4138
PB_11, //D12 - NRST
42-
PC_0, //D13
43-
PB_6, //D14 - UART_TX
39+
PC_0, //D13
40+
PB_6, //D14 - UART_TX
4441
PB_7, //D15 - UART_RX
45-
PA_9, //D16 - UART_TX
42+
PA_9, //D16 - UART_TX
4643
PA_10 //D17 - UART_RX
4744
};
4845

@@ -58,17 +55,6 @@ extern "C" {
5855
/**
5956
* @brief System Clock Configuration
6057
* 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
7258
* @retval None
7359
*/
7460
WEAK void SystemClock_Config(void)

variants/RHF76_052/variant.h

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,26 @@ extern "C" {
2929

3030
#define PA1 0
3131
#define PA2 1
32-
#define PA4 2
32+
#define PA4 2
3333
#define PA5 3
3434
#define PA6 4
3535
#define PA7 5
36-
#define PB0 6
36+
#define PB0 6
3737
#define PB1 7
3838
#define PB2 8
3939
#define PB4 9
4040
#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
4444
#define PB6 14 // TX Module LoRa
4545
#define PB7 15 // RX
4646
#define PA9 16 // TX Boot
47-
#define PA10 17 // RX Boot
47+
#define PA10 17 // RX Boot
4848

4949

5050
// This must be a literal
5151
#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
5552

5653
// On-board LED pin number
5754
#define LED_BUILTIN PB4

0 commit comments

Comments
 (0)