добавлена функция изменения разрешения ацп и соответствующие изменения в функции analogread()

This commit is contained in:
klassents committed 2024-09-12 10:43:35 +07:00
1 parent b94459ebae
commit 2321bfcad7
3 files changed
+35 -2

No files matched your search

+1
View File
@@ -71,6 +71,7 @@ volatile uint32_t* portInputRegister(GPIO_TypeDef* GPIO_x);
#define SERIAL_PORT_QTY 2
// ADC
#define MCU_ADC_RESOLUTION 12 // bits
// determines the ADC channel number by the board pin number
uint32_t analogInputToChannelNumber(uint32_t PinNumber);