Skip to content
Snippets Groups Projects
Commit 37bd3b4f authored by Damien George's avatar Damien George
Browse files

stmhal/modmachine: Add machine.UART class, linking to pyb.UART.

pyb.UART has a superset of machine.UART functionality so can be used to
provide compatibility with other ports that also implement machine.UART.
parent 4b235800
Branches
No related tags found
No related merge requests found
......@@ -50,6 +50,7 @@
#include "rtc.h"
#include "i2c.h"
#include "spi.h"
#include "uart.h"
#include "wdt.h"
#if defined(MCU_SERIES_F4)
......@@ -557,9 +558,9 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = {
// initialize master mode on the peripheral.
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&machine_i2c_type) },
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&machine_hard_spi_type) },
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&pyb_uart_type) },
{ MP_ROM_QSTR(MP_QSTR_WDT), MP_ROM_PTR(&pyb_wdt_type) },
#if 0
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&pyb_uart_type) },
{ MP_ROM_QSTR(MP_QSTR_Timer), MP_ROM_PTR(&pyb_timer_type) },
{ MP_ROM_QSTR(MP_QSTR_HeartBeat), MP_ROM_PTR(&pyb_heartbeat_type) },
{ MP_ROM_QSTR(MP_QSTR_SD), MP_ROM_PTR(&pyb_sd_type) },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment