Browse Source

[l475] 修复bug

Meco Man 3 years ago
parent
commit
33c1bfbc79

+ 1 - 1
bsp/stm32/stm32l475-atk-pandora/applications/arduino/SConscript

@@ -7,6 +7,6 @@ inc = [cwd]
 group = DefineGroup('Arduino', src, depend = ['RT_USING_ARDUINO'], CPPPATH = inc)
 
 src = ['arduino_main.cpp']
-group = DefineGroup('Applications', src, depend = ['RT_USING_ARDUINO'])
+group += DefineGroup('Applications', src, depend = ['RT_USING_ARDUINO'])
 
 Return('group')

+ 1 - 1
bsp/stm32/stm32l475-atk-pandora/applications/arduino/arduino_pinout.h

@@ -15,7 +15,7 @@
 #define ARDUINO_PWM_HZ 500 /* Arduino UNO's PWM is around 500Hz */
 
 #define ARDUINO_PINOUT_PIN_MAX  20 /* Arduino UNO has 20 pins in total*/
-#define ARDUINO_PINOUT_ADC_MAX  6  /* Arduino UNO has 5 ADC pins */
+#define ARDUINO_PINOUT_ADC_MAX  6  /* Arduino UNO has 6 ADC pins */
 #define ARDUINO_PINOUT_PWM_MAX  5  /* Arduino UNO has 5 PWM pins */
 
 #define A0   (14)