Skip to content

Commit 252191a

Browse files
committed
fix: 修复Air32的功能
1 parent 0549352 commit 252191a

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

cores/AirMCU/wiring_analog.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@
2525
#define ADC_RANGE 4096
2626
#endif
2727

28+
#if defined(AIR32F1xx)
29+
#define VTEMP 1430
30+
#define AVG_SLOPE 4300
31+
#define VREFINT 1200
32+
#endif
33+
34+
#if defined(AIR32C0xx)
35+
#define CALX_TEMP 30
36+
#else
37+
#define CALX_TEMP 25
38+
#endif
39+
2840
#ifdef __cplusplus
2941
extern "C" {
3042
#endif

system/Arduino-Air32F103-Drivers

variants/AIR32F103/F103CB/variant_generic.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@
138138
// Default pin used for generic 'Serial' instance
139139
// Mandatory for Firmata
140140
#ifndef PIN_SERIAL_RX
141-
#define PIN_SERIAL_RX PA3
141+
#define PIN_SERIAL_RX PA10
142142
#endif
143143
#ifndef PIN_SERIAL_TX
144-
#define PIN_SERIAL_TX PA2
144+
#define PIN_SERIAL_TX PA9
145145
#endif
146146

147147
/*----------------------------------------------------------------------------

0 commit comments

Comments
 (0)