mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 19:50:30 +01:00
extmod/modmachine: Clean up decls of machine types to use common ones.
The machine_i2c_type, machine_spi_type and machine_timer_type symbols are already declared in extmod/modmachine.h and should not be declared anywhere else. Also move declarations of machine_pin_type and machine_rtc_type to the common header in extmod. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -32,17 +32,6 @@
|
||||
#if MICROPY_PY_MACHINE_DAC
|
||||
extern const mp_obj_type_t machine_dac_type;
|
||||
#endif
|
||||
#if MICROPY_PY_MACHINE_I2C
|
||||
extern const mp_obj_type_t machine_i2c_type;
|
||||
#endif
|
||||
extern const mp_obj_type_t machine_pin_type;
|
||||
#if MICROPY_PY_MACHINE_SPI
|
||||
extern const mp_obj_type_t machine_spi_type;
|
||||
#endif
|
||||
extern const mp_obj_type_t machine_timer_type;
|
||||
#if MICROPY_PY_MACHINE_RTC
|
||||
extern const mp_obj_type_t machine_rtc_type;
|
||||
#endif
|
||||
|
||||
NORETURN mp_obj_t machine_bootloader(size_t n_args, const mp_obj_t *args);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user