Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7799334

Browse files
authored
Merge pull request#254 from fpistm/RAK811_LORA_TRACKER
Add RAK811 LoRa Tracker Board
2 parents621d235 +a4291d8 commit7799334

File tree

8 files changed

+1276
-0
lines changed

8 files changed

+1276
-0
lines changed

‎boards.txt‎

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ menu.usb=USB interface
88
menu.opt=Optimize
99
menu.upload_method=Upload method
1010
menu.flash=Flash Memory Size
11+
menu.ram=RAM Size
1112

1213
################################################################################
1314
# Nucleo 144 boards
@@ -582,6 +583,48 @@ Maple.menu.upload_method.serialMethod=Serial
582583
Maple.menu.upload_method.serialMethod.upload.protocol=maple_serial
583584
Maple.menu.upload_method.serialMethod.upload.tool=serial_upload
584585

586+
################################################################################
587+
# RAK boards
588+
589+
RAK.name=RAKWireless
590+
591+
RAK.build.vid=0x0483
592+
RAK.build.pid=0x5711
593+
RAK.vid.0=0x0483
594+
RAK.pid.0=0x5711
595+
596+
RAK.build.core=arduino
597+
RAK.build.board=RAK
598+
RAK.build.extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial}
599+
600+
# RAK811_TRACKER board
601+
RAK.menu.pnum.RAK811_TRACKER=RAK811 LoRa Tracker
602+
RAK.menu.pnum.RAK811_TRACKER.upload.maximum_size=131072
603+
RAK.menu.pnum.RAK811_TRACKER.build.mcu=cortex-m3
604+
RAK.menu.pnum.RAK811_TRACKER.build.board=RAK811_TRACKER
605+
RAK.menu.pnum.RAK811_TRACKER.build.series=STM32L1xx
606+
RAK.menu.pnum.RAK811_TRACKER.build.product_line=STM32L151xB
607+
RAK.menu.pnum.RAK811_TRACKER.build.variant=RAK811_TRACKER
608+
RAK.menu.pnum.RAK811_TRACKER.build.cmsis_lib_gcc=arm_cortexM3l_math
609+
610+
RAK.menu.ram.xB=16Kb (default)
611+
RAK.menu.ram.xB.upload.maximum_data_size=16384
612+
RAK.menu.ram.xB.build.ldscript=ldscript.ld
613+
RAK.menu.ram.xB.build.product_line=STM32L151xB
614+
RAK.menu.ram.xBA=32Kb
615+
RAK.menu.ram.xBA.upload.maximum_data_size=32768
616+
RAK.menu.ram.xBA.build.ldscript=ldscript_xba.ld
617+
RAK.menu.ram.xBA.build.product_line=STM32L151xBA
618+
619+
# Upload menu
620+
RAK.menu.upload_method.serialMethod=Serial
621+
RAK.menu.upload_method.serialMethod.upload.protocol=maple_serial
622+
RAK.menu.upload_method.serialMethod.upload.tool=serial_upload
623+
624+
RAK.menu.upload_method.STLink=STLink
625+
RAK.menu.upload_method.STLink.upload.protocol=STLink
626+
RAK.menu.upload_method.STLink.upload.tool=stlink_upload
627+
585628
###############################
586629
# RemRam
587630

@@ -666,6 +709,12 @@ Maple.menu.xserial.none.build.xSerial=-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE
666709
Maple.menu.xserial.disabled=Disabled (No Serial)
667710
Maple.menu.xserial.disabled.build.xSerial=
668711

712+
RAK.menu.xserial.generic=Enabled with generic Serial
713+
RAK.menu.xserial.none=Enabled without generic Serial
714+
RAK.menu.xserial.none.build.xSerial=-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE
715+
RAK.menu.xserial.disabled=Disabled (No Serial)
716+
RAK.menu.xserial.disabled.build.xSerial=
717+
669718
RemRam.menu.xserial.generic=Enabled with generic Serial
670719
RemRam.menu.xserial.none=Enabled without generic Serial
671720
RemRam.menu.xserial.none.build.xSerial=-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE
@@ -882,6 +931,32 @@ Maple.menu.opt.ogstd=Debug (-g)
882931
Maple.menu.opt.ogstd.build.flags.optimize=-g -Og
883932
Maple.menu.opt.ogstd.build.flags.ldspecs=
884933

934+
RAK.menu.opt.osstd=Smallest (-Os default)
935+
RAK.menu.opt.oslto=Smallest (-Os) with LTO
936+
RAK.menu.opt.oslto.build.flags.optimize=-Os -flto
937+
RAK.menu.opt.oslto.build.flags.ldspecs=-flto
938+
RAK.menu.opt.o1std=Fast (-O1)
939+
RAK.menu.opt.o1std.build.flags.optimize=-O1
940+
RAK.menu.opt.o1std.build.flags.ldspecs=
941+
RAK.menu.opt.o1lto=Fast (-O1) with LTO
942+
RAK.menu.opt.o1lto.build.flags.optimize=-O1 -flto
943+
RAK.menu.opt.o1lto.build.flags.ldspecs=-flto
944+
RAK.menu.opt.o2std=Faster (-O2)
945+
RAK.menu.opt.o2std.build.flags.optimize=-O2
946+
RAK.menu.opt.o2std.build.flags.ldspecs=
947+
RAK.menu.opt.o2lto=Faster (-O2) with LTO
948+
RAK.menu.opt.o2lto.build.flags.optimize=-O2 -flto
949+
RAK.menu.opt.o2lto.build.flags.ldspecs=-flto
950+
RAK.menu.opt.o3std=Fastest (-O3)
951+
RAK.menu.opt.o3std.build.flags.optimize=-O3
952+
RAK.menu.opt.o3std.build.flags.ldspecs=
953+
RAK.menu.opt.o3lto=Fastest (-O3) with LTO
954+
RAK.menu.opt.o3lto.build.flags.optimize=-O3 -flto
955+
RAK.menu.opt.o3lto.build.flags.ldspecs=-flto
956+
RAK.menu.opt.ogstd=Debug (-g)
957+
RAK.menu.opt.ogstd.build.flags.optimize=-g -Og
958+
RAK.menu.opt.ogstd.build.flags.ldspecs=
959+
885960
RemRam.menu.opt.osstd=Smallest (-Os default)
886961
RemRam.menu.opt.oslto=Smallest (-Os) with LTO
887962
RemRam.menu.opt.oslto.build.flags.optimize=-Os -flto
Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,221 @@
1+
/*
2+
*******************************************************************************
3+
* Copyright (c) 2018, STMicroelectronics
4+
* All rights reserved.
5+
*
6+
* Redistribution and use in source and binary forms, with or without
7+
* modification, are permitted provided that the following conditions are met:
8+
*
9+
* 1. Redistributions of source code must retain the above copyright notice,
10+
* this list of conditions and the following disclaimer.
11+
* 2. Redistributions in binary form must reproduce the above copyright notice,
12+
* this list of conditions and the following disclaimer in the documentation
13+
* and/or other materials provided with the distribution.
14+
* 3. Neither the name of STMicroelectronics nor the names of its contributors
15+
* may be used to endorse or promote products derived from this software
16+
* without specific prior written permission.
17+
*
18+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28+
*******************************************************************************
29+
* Automatically generated from STM32L151C(6-8-B)Tx(A).xml
30+
*/
31+
#include"Arduino.h"
32+
#include"PeripheralPins.h"
33+
34+
/* =====
35+
* Note: Commented lines are alternative possibilities which are not used per default.
36+
* If you change them, you will have to know what you do
37+
* =====
38+
*/
39+
40+
//*** ADC ***
41+
42+
#ifdefHAL_ADC_MODULE_ENABLED
43+
constPinMapPinMap_ADC[]= {
44+
// {PA_0, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 0, 0)}, // ADC_IN0
45+
{PA_1,ADC1,STM_PIN_DATA_EXT(STM_MODE_ANALOG,GPIO_NOPULL,0,1,0)},// ADC_IN1
46+
{PA_2,ADC1,STM_PIN_DATA_EXT(STM_MODE_ANALOG,GPIO_NOPULL,0,2,0)},// ADC_IN2 - ADC_VBAT
47+
// {PA_3, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 3, 0)}, // ADC_IN3 - RADIO_DIO_2
48+
// {PA_4, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 4, 0)}, // ADC_IN4 - RADIO_RF_CTX_PA
49+
// {PA_5, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 5, 0)}, // ADC_IN5 - RADIO_SCLK
50+
// {PA_6, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC_IN6 - RADIO_MISO
51+
// {PA_7, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC_IN7 - RADIO_MOSI
52+
// {PB_0, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC_IN8 - RADIO_NSS
53+
// {PB_1, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC_IN9 - RADIO_DIO_1
54+
{PB_12,ADC1,STM_PIN_DATA_EXT(STM_MODE_ANALOG,GPIO_NOPULL,0,18,0)},// ADC_IN18
55+
// {PB_13, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 19, 0)}, // ADC_IN19 - RADIO_RESET
56+
// {PB_14, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 20, 0)}, // ADC_IN20 - LIS3DH_INT1_PIN
57+
// {PB_15, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 21, 0)}, // ADC_IN21 - LIS3DH_INT2_PIN
58+
{NC,NP,0}
59+
};
60+
#endif
61+
62+
//*** DAC ***
63+
64+
#ifdefHAL_DAC_MODULE_ENABLED
65+
constPinMapPinMap_DAC[]= {
66+
// {PA_4, DAC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 1, 0)}, // DAC_OUT1 - RADIO_RF_CTX_PA
67+
// {PA_5, DAC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 2, 0)}, // DAC_OUT2 - RADIO_SCLK
68+
{NC,NP,0}
69+
};
70+
#endif
71+
72+
//*** I2C ***
73+
74+
#ifdefHAL_I2C_MODULE_ENABLED
75+
constPinMapPinMap_I2C_SDA[]= {
76+
// {PB_7, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // RADIO_RF_CBT_HF
77+
{PB_9,I2C1,STM_PIN_DATA(STM_MODE_AF_OD,GPIO_NOPULL,GPIO_AF4_I2C1)},
78+
// {PB_11, I2C2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // GPS_UART_RX
79+
{NC,NP,0}
80+
};
81+
#endif
82+
83+
#ifdefHAL_I2C_MODULE_ENABLED
84+
constPinMapPinMap_I2C_SCL[]= {
85+
// {PB_6, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // RADIO_RF_CRX_RX
86+
{PB_8,I2C1,STM_PIN_DATA(STM_MODE_AF_OD,GPIO_NOPULL,GPIO_AF4_I2C1)},
87+
// {PB_10, I2C2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // GPS_UART_TX
88+
{NC,NP,0}
89+
};
90+
#endif
91+
92+
//*** PWM ***
93+
94+
#ifdefHAL_TIM_MODULE_ENABLED
95+
constPinMapPinMap_PWM[]= {
96+
{PA_0,TIM2,STM_PIN_DATA_EXT(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF1_TIM2,1,0)},// TIM2_CH1
97+
{PA_1,TIM2,STM_PIN_DATA_EXT(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF1_TIM2,2,0)},// TIM2_CH2
98+
// {PA_2, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 3, 0)}, // TIM2_CH3 - ADC_VBAT
99+
// {PA_2, TIM9, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM9, 1, 0)}, // TIM9_CH1 - ADC_VBAT
100+
// {PA_3, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 4, 0)}, // TIM2_CH4 - RADIO_DIO_2
101+
// {PA_3, TIM9, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM9, 2, 0)}, // TIM9_CH2 - RADIO_DIO_2
102+
// {PA_5, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1 - RADIO_SCLK
103+
// {PA_6, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 1, 0)}, // TIM3_CH1 - RADIO_MISO
104+
// {PA_6, TIM10, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM10, 1, 0)}, // TIM10_CH1 - RADIO_MISO
105+
// {PA_7, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 2, 0)}, // TIM3_CH2 - RADIO_MOSI
106+
// {PA_7, TIM11, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM11, 1, 0)}, // TIM11_CH1 - RADIO_MOSI
107+
// {PA_15, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1 - GPS_POWER_ON_PIN
108+
// {PB_0, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 3, 0)}, // TIM3_CH3 - RADIO_NSS
109+
// {PB_1, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 4, 0)}, // TIM3_CH4 - RADIO_DIO_1
110+
{PB_3,TIM2,STM_PIN_DATA_EXT(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF1_TIM2,2,0)},// TIM2_CH2
111+
{PB_4,TIM3,STM_PIN_DATA_EXT(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF2_TIM3,1,0)},// TIM3_CH1 - LED2
112+
{PB_5,TIM3,STM_PIN_DATA_EXT(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF2_TIM3,2,0)},// TIM3_CH2
113+
// {PB_6, TIM4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM4, 1, 0)}, // TIM4_CH1 - RADIO_RF_CRX_RX
114+
// {PB_7, TIM4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM4, 2, 0)}, // TIM4_CH2 - RADIO_RF_CBT_HF
115+
{PB_8,TIM4,STM_PIN_DATA_EXT(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF2_TIM4,3,0)},// TIM4_CH3
116+
// {PB_8, TIM10, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM10, 1, 0)}, // TIM10_CH1
117+
// {PB_9, TIM4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM4, 4, 0)}, // TIM4_CH4
118+
{PB_9,TIM11,STM_PIN_DATA_EXT(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF3_TIM11,1,0)},// TIM11_CH1
119+
// {PB_10, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 3, 0)}, // TIM2_CH3 - GPS_UART_TX
120+
// {PB_11, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 4, 0)}, // TIM2_CH4 - GPS_UART_RX
121+
{PB_12,TIM10,STM_PIN_DATA_EXT(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF3_TIM10,1,0)},// TIM10_CH1
122+
// {PB_13, TIM9, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM9, 1, 0)}, // TIM9_CH1 - RADIO_RESET
123+
// {PB_14, TIM9, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM9, 2, 0)}, // TIM9_CH2 - LIS3DH_INT1_PIN
124+
// {PB_15, TIM11, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM11, 1, 0)}, // TIM11_CH1 - LIS3DH_INT2_PIN
125+
{NC,NP,0}
126+
};
127+
#endif
128+
129+
//*** SERIAL ***
130+
131+
#ifdefHAL_UART_MODULE_ENABLED
132+
constPinMapPinMap_UART_TX[]= {
133+
// {PA_2, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // ADC_VBAT
134+
{PA_9,USART1,STM_PIN_DATA(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF7_USART1)},// UART_TX
135+
// {PB_6, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // RADIO_RF_CRX_RX
136+
{PB_10,USART3,STM_PIN_DATA(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF7_USART3)},// GPS_UART_TX
137+
{NC,NP,0}
138+
};
139+
#endif
140+
141+
#ifdefHAL_UART_MODULE_ENABLED
142+
constPinMapPinMap_UART_RX[]= {
143+
// {PA_3, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // RADIO_DIO_2
144+
{PA_10,USART1,STM_PIN_DATA(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF7_USART1)},// UART_RX
145+
// {PB_7, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // RADIO_RF_CBT_HF
146+
{PB_11,USART3,STM_PIN_DATA(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF7_USART3)},// GPS_UART_RX
147+
{NC,NP,0}
148+
};
149+
#endif
150+
151+
#ifdefHAL_UART_MODULE_ENABLED
152+
constPinMapPinMap_UART_RTS[]= {
153+
{PA_1,USART2,STM_PIN_DATA(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF7_USART2)},
154+
// {PA_12, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // LED1
155+
// {PB_14, USART3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // LIS3DH_INT1_PIN
156+
{NC,NP,0}
157+
};
158+
#endif
159+
160+
#ifdefHAL_UART_MODULE_ENABLED
161+
constPinMapPinMap_UART_CTS[]= {
162+
{PA_0,USART2,STM_PIN_DATA(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF7_USART2)},
163+
// {PA_11, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // RADIO_DIO_0
164+
// {PB_13, USART3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // RADIO_RESET
165+
{NC,NP,0}
166+
};
167+
#endif
168+
169+
//*** SPI ***
170+
171+
#ifdefHAL_SPI_MODULE_ENABLED
172+
constPinMapPinMap_SPI_MOSI[]= {
173+
{PA_7,SPI1,STM_PIN_DATA(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF5_SPI1)},// RADIO_MOSI
174+
// {PA_12, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)}, // LED1
175+
// {PB_5, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)},
176+
// {PB_15, SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI2)}, // LIS3DH_INT2_PIN
177+
{NC,NP,0}
178+
};
179+
#endif
180+
181+
#ifdefHAL_SPI_MODULE_ENABLED
182+
constPinMapPinMap_SPI_MISO[]= {
183+
{PA_6,SPI1,STM_PIN_DATA(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF5_SPI1)},// RADIO_MISO
184+
// {PA_11, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)}, // RADIO_DIO_0
185+
// {PB_4, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)}, // LED2
186+
// {PB_14, SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI2)}, // LIS3DH_INT1_PIN
187+
{NC,NP,0}
188+
};
189+
#endif
190+
191+
#ifdefHAL_SPI_MODULE_ENABLED
192+
constPinMapPinMap_SPI_SCLK[]= {
193+
{PA_5,SPI1,STM_PIN_DATA(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF5_SPI1)},// RADIO_SCLK
194+
// {PB_3, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)},
195+
// {PB_13, SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI2)}, // RADIO_RESET
196+
{NC,NP,0}
197+
};
198+
#endif
199+
200+
#ifdefHAL_SPI_MODULE_ENABLED
201+
constPinMapPinMap_SPI_SSEL[]= {
202+
// {PA_4, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)}, // RADIO_RF_CTX_PA
203+
// {PA_15, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)}, // GPS_POWER_ON_PIN
204+
{PB_12,SPI2,STM_PIN_DATA(STM_MODE_AF_PP,GPIO_PULLUP,GPIO_AF5_SPI2)},
205+
{NC,NP,0}
206+
};
207+
#endif
208+
209+
//*** CAN ***
210+
211+
//*** No CAN_RD ***
212+
213+
//*** No CAN_TD ***
214+
215+
//*** ETHERNET ***
216+
217+
//*** No Ethernet ***
218+
219+
//*** QUADSPI ***
220+
221+
//*** No QUADSPI ***
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/* SYS_WKUP */
2+
#ifdefPWR_WAKEUP_PIN1
3+
SYS_WKUP1=PA_0,
4+
#endif
5+
#ifdefPWR_WAKEUP_PIN2
6+
SYS_WKUP2=PC_13,
7+
#endif
8+
#ifdefPWR_WAKEUP_PIN3
9+
SYS_WKUP3=NC,
10+
#endif
11+
#ifdefPWR_WAKEUP_PIN4
12+
SYS_WKUP4=NC,
13+
#endif
14+
#ifdefPWR_WAKEUP_PIN5
15+
SYS_WKUP5=NC,
16+
#endif
17+
#ifdefPWR_WAKEUP_PIN6
18+
SYS_WKUP6=NC,
19+
#endif
20+
#ifdefPWR_WAKEUP_PIN7
21+
SYS_WKUP7=NC,
22+
#endif
23+
#ifdefPWR_WAKEUP_PIN8
24+
SYS_WKUP8=NC,
25+
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp