Damien George
f66ee4dfd7
py/mpz.c: Fix bug with shl not truncating zero digits correctly.
2015-04-22 23:16:49 +01:00
Damien George
8f6aad2f48
py/emitnative.c: Fix stack adjustment when erroring on binary op.
2015-04-22 23:16:03 +01:00
Daniel Campora
eaefc8b9d6
cc3200: Add WiPy specific information to README.md
2015-04-22 21:03:10 +02:00
Damien George
1f9e2188a6
tests: Add tests for attrtuple, and for more corner cases.
2015-04-22 16:52:03 +01:00
Damien George
956d765786
py: Fix printing of "inf" and "nan" floating point values.
2015-04-22 16:51:29 +01:00
stijn
c52f1258a8
msvc: Update genhdr script to emit MicroPython version numbers
2015-04-22 12:07:30 +02:00
Damien George
dea853d3a3
docs: Document pyb.stop, pyb.standby and pyb.RTC.wakeup.
2015-04-21 22:35:17 +01:00
Damien George
4735c45c51
py: Clean up some bits and pieces in parser, grammar.
2015-04-21 16:43:18 +00:00
Damien George
fa90ab1407
py: Simplify grammar for stmt rule (this is also how CPython has it).
2015-04-21 16:35:50 +00:00
Damien George
d8837cea6f
stmhal: Implement os.uname() to get details of OS and hardware.
2015-04-21 14:51:49 +00:00
Damien George
c3184aea63
py: Add sys.implementation, containing uPy name and version number.
...
Uses attrtuple if it's enabled, otherwise just a normal tuple.
2015-04-21 14:45:04 +00:00
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.
2015-04-21 14:14:24 +00:00
Damien George
23a2b11abf
tools: Add STM32F4DISC and ESPRUINO_PICO to stmhal build script.
2015-04-21 13:16:41 +00:00
Damien George
43d56f9ba9
docs: Bump version to 1.4.2.
2015-04-21 12:51:14 +00:00
Damien George
e521f0eb68
acks: Add 2 names to ACKNOWLEDGEMENTS file.
2015-04-21 11:23:23 +01:00
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 .
2015-04-20 13:29:31 +00:00
Damien George
2bb5f41611
tools/pyboard.py: Make it 8-bit clean, so it works with unicode chars.
...
Addresses issue #1190 .
2015-04-19 21:31:28 +01:00
Damien George
f35b5d28db
stmhal/pyexec.c: Make raw REPL mode 8-bit clean.
2015-04-19 21:30:49 +01:00
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.
2015-04-19 20:59:10 +02:00
Damien George
d8475092d1
qemu-arm: Disable inline asm tests that use floating point.
2015-04-19 15:50:24 +01:00
=
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
2015-04-19 15:47:05 +01:00
Damien George
d8cbbcaa9d
py: Fix builtin ord so that it can handle bytes values >= 0x80.
...
Addresses issue #1188 .
2015-04-19 12:26:46 +01:00
Damien George
404b68da88
stmhal: Provide ADC capabilities for F401 and F411 MCUs.
...
Simply needed to define which pins have which ADC channel on them.
2015-04-18 22:39:06 +01:00
Damien George
b42a5050fb
stmhal: Add support for STM32F411 MCU.
2015-04-18 22:15:59 +01:00
Damien George
3e592531eb
stmhal: For flash storage use same params for F407 as F405.
2015-04-18 22:08:16 +01:00