Support 12M and 55M oscillators

Depending on the voltage of IO15, different crystal oscillators are supported.
IO15: 0V → 9.216M
IO15: 1V  → 12M
IO15: 2V  → 55.466M
IO15: (2V~3.3V]  → 4M
This commit is contained in:
ohmytime
2024-01-27 20:59:07 +08:00
parent de83b31f4e
commit 13aa84722e
4 changed files with 39 additions and 1 deletions
+4
View File
@@ -23,6 +23,10 @@
#define BATTERY_LOW_VALUE 3.0
#define BATTERY_FULL_VALUE 4.2
#define XTAL_0V_ADC 0
#define XTAL_1V_ADC 1050
#define XTAL_2V_ADC 2250
#define XTAL_ADC_TOL 300
#define LANGUAGE_CHS 14