This commit is contained in:
kautism 2025-05-02 22:21:42 +08:00
parent ea3b2a25ab
commit a1b52189a6
4 changed files with 7 additions and 6 deletions

View file

@ -77,4 +77,4 @@ config SERIAL_BAUD
config SERIAL_PORT
int
default 0
endif
endif

View file

@ -12,10 +12,10 @@
#include "sched.h" // sched_shutdown
static const uint8_t adc_pins[] PROGMEM = {
GPIO('B', 5), GPIO('C', 0), GPIO('C', 1), GPIO('C', 2),
GPIO('B', 5), GPIO('C', 0), GPIO('C', 1), GPIO('C', 2),
GPIO('C', 3), GPIO('C', 4), GPIO('C', 5), GPIO('D', 4),
GPIO('D', 6), GPIO('D', 7), GPIO('E', 0), GPIO('E', 1),
GPIO('E', 2), GPIO('E', 6),
GPIO('E', 2), GPIO('E', 6),
};
enum { ADC_ENABLE = (1<<ADPS0)|(1<<ADPS1)|(1<<ADPS2)|(1<<ADEN)|(1<<ADIF) };

View file

@ -15,7 +15,8 @@
#include "sched.h" // sched_main
#if CONFIG_SERIAL_BAUD > 115200
#warning "Lgt8f328p always using cheap usb to uart ic, some of lgt8f328p cannot support high baudrate"
#warning "Lgt8f328p always using cheap usb to uart ic, " \
"some of lgt8f328p cannot support high baudrate"
#endif
DECL_CONSTANT_STR("MCU", CONFIG_MCU);

View file

@ -3,5 +3,5 @@
#define PMCR _SFR_MEM8(0xF2)
#define PINE _SFR_IO8(0x0C)
#define RCMCAL (*((volatile unsigned char *)0x66))
#endif
#define RCMCAL (*((volatile unsigned char *)0x66))
#endif