stm32/boards/B_L072Z_LRWAN1: Add pin definitions for internal SX1262.

Includes fixing the SCK connection pin.

This work was funded through GitHub Sponsors.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
This commit is contained in:
Angus Gratton
2022-05-31 16:37:40 +10:00
committed by Damien George
parent cb31c0ae9c
commit 3aabdf2f6b
2 changed files with 20 additions and 5 deletions

View File

@@ -40,8 +40,9 @@
#define MICROPY_HW_I2C1_SDA (pin_B9)
// SPI buses
// SPI1 on the CMWX1ZZABZ module is connected internally to the SX1276
#define MICROPY_HW_SPI1_NSS (pin_A15)
#define MICROPY_HW_SPI1_SCK (pin_A5)
#define MICROPY_HW_SPI1_SCK (pin_B3)
#define MICROPY_HW_SPI1_MISO (pin_A6)
#define MICROPY_HW_SPI1_MOSI (pin_A7)
#define MICROPY_HW_SPI2_NSS (pin_B12)

View File

@@ -29,17 +29,26 @@ LED_RED,PB7
,PA3
,PA4
,PA5
,PA6
,PA7
SX_MISO,PA6
SX_MOSI,PA7
,PA8
,PA9
,PA10
,PA11
,PA12
SX_TCXO_VCC,PA12
# Note about SX_TCXO_VCC: Unlike all of the other SX_ pins, PA12 is only
# connected to TCXO_VCC on the Discovery Board and will have a different
# connection on custom hardware using the same Murata module.
#
# By default it also does nothing, need to move jumper JP9 to make it control
# TCXO_VCC at all. Note PA12 is by default also USB DP so need to disable
# USB - call pyb.usb_mode(None) or rebuild without MICROPY_HW_ENABLE_USB -
# in order to use it at all.
,PA13
,PA14
,PA15
SX_CS,PA15
,PB2
SX_SCK,PB3
,PB5
,PB6
,PB7
@@ -49,3 +58,8 @@ LED_RED,PB7
,PB13
,PB14
,PB15
SX_RESET,PC0
SX_DIO0,PB4
SX_DIO1,PB1
SX_DIO2,PB0
SX_DIO3,PC13
1 D0 PA3
29 PA3
30 PA4
31 PA5
32 SX_MISO PA6
33 SX_MOSI PA7
34 PA8
35 PA9
36 PA10
37 PA11
38 SX_TCXO_VCC PA12
39 # Note about SX_TCXO_VCC: Unlike all of the other SX_ pins PA12 is only
40 # connected to TCXO_VCC on the Discovery Board and will have a different
41 # connection on custom hardware using the same Murata module.
42 #
43 # By default it also does nothing need to move jumper JP9 to make it control
44 # TCXO_VCC at all. Note PA12 is by default also USB DP so need to disable
45 # USB - call pyb.usb_mode(None) or rebuild without MICROPY_HW_ENABLE_USB -
46 # in order to use it at all.
47 PA13
48 PA14
49 SX_CS PA15
50 PB2
51 SX_SCK PB3
52 PB5
53 PB6
54 PB7
58 PB13
59 PB14
60 PB15
61 SX_RESET PC0
62 SX_DIO0 PB4
63 SX_DIO1 PB1
64 SX_DIO2 PB0
65 SX_DIO3 PC13