10 #include "Arial12x12.h" |
10 #include "Arial12x12.h" |
11 |
11 |
12 #include "SSD1322.h" |
12 #include "SSD1322.h" |
13 #include "hp34comm.h" |
13 #include "hp34comm.h" |
14 |
14 |
15 |
15 #if (defined STM32L432xx) |
16 #if (defined STM32F303x8) || (defined STM32L432xx) |
|
17 // display |
16 // display |
18 #define DSP_MOSI PA_7 //A6 |
17 #define DSP_MOSI PA_7 //A6 |
19 #define DSP_MISO PA_6 //A5 |
18 #define DSP_MISO PA_6 //A5 |
20 #define DSP_SCLK PA_5 //A4 |
19 #define DSP_SCLK PA_5 //A4 |
21 #define DSP_CS PB_0 //D3 |
20 #define DSP_CS PB_0 //D3 |
|
21 #define DSP_RST PB_5 //D11 |
|
22 #define DSP_DC PB_4 //D12 |
|
23 // UART for RX (CPU->DP) and TX (DP->CPU) combined |
|
24 #define HP_RX PA_10 // serial1 RX |
|
25 // misc |
|
26 #define DBGPIN PA_12 |
|
27 |
|
28 #elif (defined STM32F303x8) |
|
29 // display |
|
30 #define DSP_MOSI PA_7 //A6 |
|
31 #define DSP_MISO PA_6 //A5 |
|
32 #define DSP_SCLK PA_5 //A4 |
|
33 #define DSP_CS PA_4 |
22 #define DSP_RST PB_5 //D11 |
34 #define DSP_RST PB_5 //D11 |
23 #define DSP_DC PB_4 //D12 |
35 #define DSP_DC PB_4 //D12 |
24 // UART for RX (CPU->DP) and TX (DP->CPU) combined |
36 // UART for RX (CPU->DP) and TX (DP->CPU) combined |
25 #define HP_RX PA_10 // serial1 RX |
37 #define HP_RX PA_10 // serial1 RX |
26 // misc |
38 // misc |