stijn
c52f1258a8
msvc: Update genhdr script to emit MicroPython version numbers
10 years ago
Damien George
dea853d3a3
docs: Document pyb.stop, pyb.standby and pyb.RTC.wakeup.
10 years ago
Damien George
4735c45c51
py: Clean up some bits and pieces in parser, grammar.
10 years ago
Damien George
fa90ab1407
py: Simplify grammar for stmt rule (this is also how CPython has it).
10 years ago
Damien George
d8837cea6f
stmhal: Implement os.uname() to get details of OS and hardware.
10 years ago
Damien George
c3184aea63
py: Add sys.implementation, containing uPy name and version number.
Uses attrtuple if it's enabled, otherwise just a normal tuple.
10 years ago
Damien George
5aa311d330
py: Add attrtuple object, for space-efficient tuples with attr access.
If you need the functionality of a namedtuple but will only make 1 or a
few instances, then use an attrtuple instead.
10 years ago
Damien George
23a2b11abf
tools: Add STM32F4DISC and ESPRUINO_PICO to stmhal build script.
10 years ago
Damien George
43d56f9ba9
docs: Bump version to 1.4.2.
10 years ago
Damien George
e521f0eb68
acks: Add 2 names to ACKNOWLEDGEMENTS file.
10 years ago
Damien George
c8b60f013b
py: Make viper codegen raise proper exception (ViperTypeError) on error.
This fixes a long standing problem that viper code generation gave
terrible error messages, and actually no errors on pyboard where
assertions are disabled.
Now all compile-time errors are raised as proper Python exceptions, and
are of type ViperTypeError.
Addresses issue #940 .
10 years ago
Damien George
2bb5f41611
tools/pyboard.py: Make it 8-bit clean, so it works with unicode chars.
Addresses issue #1190 .
10 years ago
Damien George
f35b5d28db
stmhal/pyexec.c: Make raw REPL mode 8-bit clean.
10 years ago
Daniel Campora
df5d9c77f4
cc3200: Fix bootloader and modpyb after printf overhaul.
The bootloader needs string0.c because of memset, memcpy and others,
without string0.c it magically links, but calling any of those
functions results in a hard fault.
In debug mode, modpyb needs printf, and including stdio.h leads to
conflicts due to the redefinitions made in the simplelink drivers.
10 years ago
Damien George
d8475092d1
qemu-arm: Disable inline asm tests that use floating point.
10 years ago
=
5008972fef
py/inlinethumb: Support for core floating point instructions.
Adds support for the following Thumb2 VFP instructions, via the option
MICROPY_EMIT_INLINE_THUMB_FLOAT:
vcmp
vsqrt
vneg
vcvt_f32_to_s32
vcvt_s32_to_f32
vmrs
vmov
vldr
vstr
vadd
vsub
vmul
vdiv
10 years ago
Damien George
d8cbbcaa9d
py: Fix builtin ord so that it can handle bytes values >= 0x80.
Addresses issue #1188 .
10 years ago
Damien George
404b68da88
stmhal: Provide ADC capabilities for F401 and F411 MCUs.
Simply needed to define which pins have which ADC channel on them.
10 years ago
Damien George
b42a5050fb
stmhal: Add support for STM32F411 MCU.
10 years ago
Damien George
3e592531eb
stmhal: For flash storage use same params for F407 as F405.
10 years ago
Damien George
90e6d0c2ac
stmhal: Add support for Espruino Pico board.
To build:
make BOARD=ESPRUINO_PICO
To deploy: short the BOOT0/BTN contact on the back of the board (eg by
drawing over it with a graphite pencil), then hold down BTN while
inserting the board into the USB port. The board should then enter DFU
mode, and the firmware can be downloaded using:
make BOARD=ESPRUINO_PICO deploy
10 years ago
Damien George
e4b4e5aa31
stmhal: Add stm32f401.ld for linking F401 targets.
10 years ago
Damien George
0435e76250
stmhal: Make ld and af files configurable within Makefile.
Each board now needs an mpconfigboard.mk file which defines AF_FILE and
LD_FILE.
Also moved stm32f405.ld to boards/ directory to keep things organised.
10 years ago
Damien George
03ec6e4d01
stmhal: Add stm32f401_af.csv, for AF definitions of F401 MCUs.
10 years ago
Damien George
9253e7bdf7
stmhal: Rename stm32f4xx_af.csv to stm32f405_af.csv.
Since this file is only valid for F405 MCUs, not generic F4xx.
10 years ago
Damien George
6be0bbb886
stmhal: Add support for flash filesystem on F401 MCUs.
It uses a 16k cache buffer and so the filesystem size is limited.
10 years ago
Damien George
5a11086d64
stmhal: Allow extint.c to compile without USB HS support.
10 years ago
Damien George
d15fe5a6b3
stmhal: Make I2C busses and their pins configurable in mpconfigboard.h.
10 years ago
Damien George
8892f71dd0
stmhal: Exclude code for UARTs that don't exist in hardware.
10 years ago
Damien George
73f1a49137
stmhal: Exclude USB HS code when USB HS mode not enabled.
10 years ago
Damien George
c92c7a69fd
stmhal: Exclude code for those timers that don't exist in the hardware.
10 years ago
Damien George
7d6595fd18
stmhal: Make LCD initialiser use board pin names instead of cpu names.
10 years ago
Damien George
50ea86fe8b
stmhal: For pins, define macros mapping board names to cpu names.
10 years ago
Damien George
2e5704d101
stmhal: Make a HW config option for LED4 being controlled by PWM.
10 years ago
Damien George
8bdbc20e74
stmhal: Make HSE PLL parameters configurable per board.
10 years ago
Daniel Campora
23008db6e1
README.md: Add the CC3200 port to the list of additional components.
10 years ago
Henrik
e3cd154317
stmhal: Add support for sending and receiving CAN RTR messages.
10 years ago
Damien George
259eaab9a9
cc3200: Clean up and reduce use/include of std.h.
10 years ago
Damien George
2764a8ee8d
stmhal: Remove std.h. It's not needed anymore.
10 years ago
Damien George
f53a8e712f
lib/libc/string0.c: Remove include of std.h, replace with string.h.
Much more portable this way.
10 years ago
Damien George
1c9a499135
py/vstr.c: Allow vstr_printf to print correctly to a fixed buffer.
This patch allows vstr_printf to use all the available space of a fixed
vstr buffer. vstr_printf is a good alternative to snprintf.
10 years ago
Daniel Campora
c1a77a0c9f
cc3200: Use new %q format to print qstr's where appropiate.
10 years ago
Daniel Campora
2cd247e819
cc3200: Clean up bootloader makefile and remove superflous assert.
10 years ago
Damien George
dcbf62b43d
acks: Add 1 name to the ACKNOWLEDGEMENTS file.
10 years ago
Damien George
7d5e34287c
stmhal: Allow sending CAN messages with timeout=0.
Thanks to Henrik Sölver for this patch.
10 years ago
blmorris
4c45921349
stmhal: Use new %q format to print qstr's in a few more places.
Saves 68 bytes.
10 years ago
Damien George
feff00e1a5
Add .gitattributes file to force text line endings to LF.
Some files are excluded, otherwise a whole lot of files need converting.
10 years ago
Damien George
a102e01ce1
logo: Change line endings in FONT-LICENSE.txt from CRLF to LF.
10 years ago
Damien George
90aa7595b4
tests: Convert line endings in fun_name.py from CRLF to LF.
10 years ago
Damien George
2941d5c714
qemu-arm: Get compiling again with recent changes to print framework.
10 years ago