Damien George
31480fb91b
py/frozenmod: Pass the source name of the frozen module to the lexer.
This allows for better error messages, since the name of the file (sans
.py) can now be printed when an exception occurs within a frozen script.
9 years ago
Damien George
0a2e9650f5
py: Add ability to have frozen persistent bytecode from .mpy files.
The config variable MICROPY_MODULE_FROZEN is now made of two separate
parts: MICROPY_MODULE_FROZEN_STR and MICROPY_MODULE_FROZEN_MPY. This
allows to have none, either or both of frozen strings and frozen mpy
files (aka frozen bytecode).
9 years ago
Paul Sokolovsky
52e062ef33
py/frozenmod: Allow port to override lexer to use for frozen modules.
9 years ago
Paul Sokolovsky
17f324b836
py/frozenmod: Store frozen module names together, to quickly scan them.
9 years ago
Paul Sokolovsky
0992588811
py/frozenmod: Make frozen module content be 0-terminated.
To allow simple zero-terminated lexers.
9 years ago
Paul Sokolovsky
18fda7b42f
frozenmod: Include header with function prototypes.
10 years ago
Paul Sokolovsky
640e0b221e
py: Implement very simple frozen modules support.
Only modules (not packages) supported now. Source modules can be converted
to frozen module structures using tools/make-frozen.py script.
10 years ago
Damien George
2cf6dfa280
stmhal: Prefix includes with py/; remove need for -I../py.
10 years ago
Paul Sokolovsky
8139494e54
stmhal: Include mpconfig.h before all other includes.
It defines types used by all other headers.
Fixes #691 .
11 years ago
Damien George
04b9147e15
Add license header to (almost) all files.
Blanket wide to all .c and .h files. Some files originating from ST are
difficult to deal with (license wise) so it was left out of those.
Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
11 years ago
Damien George
f78d9b1a72
stmhal: Add accelerometer driver; fix bug with LFN.
11 years ago
Dave Hylands
f14b92b9e1
REPl working on UART6 with STMHAL
11 years ago
Damien George
46239413d0
stm: Implement mp_import_stat.
To follow up pull request #309 .
11 years ago