alif/machine_adc: Add basic ADC support.

ADC12 information has been added to pin struct.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2024-02-13 18:05:05 +11:00
parent 31d18c5885
commit 62beb541e7
6 changed files with 263 additions and 1 deletions

View File

@@ -85,6 +85,8 @@ typedef struct _machine_pin_obj_t {
GPIO_Type *gpio;
uint8_t port;
uint8_t pin;
uint8_t adc12_periph : 2;
uint8_t adc12_channel : 3;
qstr name;
} machine_pin_obj_t;