mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 01:40:14 +01:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user