Skip to content

Commit 504420c

Browse files
dhylandsdpgeorge
authored andcommitted
stmhal: Early version of machine module for stmhal.
1 parent 2c040ed commit 504420c

7 files changed

Lines changed: 505 additions & 359 deletions

File tree

stmhal/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ SRC_C = \
135135
pyexec.c \
136136
help.c \
137137
input.c \
138+
modmachine.c \
138139
modpyb.c \
139140
modstm.c \
140141
moduos.c \

stmhal/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ static const char fresh_boot_py[] =
135135
"# boot.py -- run on boot-up\r\n"
136136
"# can run arbitrary Python, but best to keep it minimal\r\n"
137137
"\r\n"
138+
"import machine\r\n"
138139
"import pyb\r\n"
139140
"#pyb.main('main.py') # main script to run after this one\r\n"
140141
"#pyb.usb_mode('CDC+MSC') # act as a serial and a storage device\r\n"

0 commit comments

Comments
 (0)