nrf5: Adding adc module to machine module.
This commit is contained in:
parent
4da435376d
commit
719bdcfed4
@ -42,6 +42,10 @@
|
|||||||
#if MICROPY_PY_MACHINE_PWM
|
#if MICROPY_PY_MACHINE_PWM
|
||||||
#include "pwm.h"
|
#include "pwm.h"
|
||||||
#endif
|
#endif
|
||||||
|
#if MICROPY_PY_MACHINE_ADC
|
||||||
|
#include "adc.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define PYB_RESET_HARD (0)
|
#define PYB_RESET_HARD (0)
|
||||||
#define PYB_RESET_WDT (1)
|
#define PYB_RESET_WDT (1)
|
||||||
@ -167,7 +171,9 @@ STATIC const mp_map_elem_t machine_module_globals_table[] = {
|
|||||||
#if MICROPY_PY_MACHINE_SPI
|
#if MICROPY_PY_MACHINE_SPI
|
||||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_SPI), (mp_obj_t)&machine_hard_spi_type },
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_SPI), (mp_obj_t)&machine_hard_spi_type },
|
||||||
#endif
|
#endif
|
||||||
|
#if MICROPY_PY_MACHINE_ADC
|
||||||
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_ADC), (mp_obj_t)&machine_adc_type },
|
||||||
|
#endif
|
||||||
#if MICROPY_PY_MACHINE_PWM
|
#if MICROPY_PY_MACHINE_PWM
|
||||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_PWM), (mp_obj_t)&machine_hard_pwm_type },
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_PWM), (mp_obj_t)&machine_hard_pwm_type },
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user