提交 9f4b7b38 编写于 作者: mysterywolf's avatar mysterywolf 提交者: guo

[arduino][stm32l475] support wireless module pinout

上级 8f09245e
...@@ -50,6 +50,9 @@ const pin_map_t pin_map_table[]= ...@@ -50,6 +50,9 @@ const pin_map_t pin_map_table[]=
{D27, GET_PIN(B,6)}, /* LCD RESET */ {D27, GET_PIN(B,6)}, /* LCD RESET */
{D28, GET_PIN(B,4)}, /* LCD DC (data or command) */ {D28, GET_PIN(B,4)}, /* LCD DC (data or command) */
{D29, GET_PIN(B,7)}, /* LCD POWER */ {D29, GET_PIN(B,7)}, /* LCD POWER */
{D30, GET_PIN(D,4)}, /* WIRELESS CE */
{D31, GET_PIN(D,3)}, /* WIRELESS IRQ */
{D32, GET_PIN(D,5)}, /* WIRELESS CS */
{A0, GET_PIN(C,2), "adc1", 3}, /* ADC */ {A0, GET_PIN(C,2), "adc1", 3}, /* ADC */
{A1, GET_PIN(C,4), "adc1", 13}, /* ADC */ {A1, GET_PIN(C,4), "adc1", 13}, /* ADC */
{A2, RT_NULL, "adc1", 0}, /* ADC, On-Chip: internal reference voltage, ADC_CHANNEL_VREFINT */ {A2, RT_NULL, "adc1", 0}, /* ADC, On-Chip: internal reference voltage, ADC_CHANNEL_VREFINT */
......
...@@ -42,11 +42,14 @@ ...@@ -42,11 +42,14 @@
#define D27 (27) #define D27 (27)
#define D28 (28) #define D28 (28)
#define D29 (29) #define D29 (29)
#define A0 (30) #define D30 (30)
#define A1 (31) #define D31 (31)
#define A2 (32) #define D32 (32)
#define A3 (33) #define A0 (33)
#define DAC0 (34) #define A1 (34)
#define A2 (35)
#define A3 (36)
#define DAC0 (37)
#define F_CPU 80000000L /* CPU: 80MHz */ #define F_CPU 80000000L /* CPU: 80MHz */
#define LED_BUILTIN D22 /* Default Built-in LED */ #define LED_BUILTIN D22 /* Default Built-in LED */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册