Paul Sokolovsky
b82f34edde
unix: Allow to disable MICROPY_EMIT_X64 from commandline.
emitnative in particular requires nlr_* to be real functions, so doesn't
compile with MICROPY_NLR_SETJMP=1.
10 years ago
Paul Sokolovsky
2cf381081a
run-tests: Add option to write CPython's test results to .exp files.
Mostly to run testsuite on targets which doesn't have CPython.
10 years ago
Paul Sokolovsky
564e46452d
py: Add generic helper to align a pointer.
10 years ago
Paul Sokolovsky
58c9586c34
emitbc: Fix structure field alignment issue.
dummy_data field is accessed as uint value (e.g.
in emit_write_bytecode_byte_ptr), but is not aligned as such, which causes
bus errors or incorrect behavior on any arch requiring strictly aligned
data (ARM pre-v7, MIPS, etc, etc).
10 years ago
Paul Sokolovsky
2097c8b1e1
moductypes: Add symbolic constants to specify bitfield position/length.
10 years ago
Paul Sokolovsky
8215847b4d
moductypes: Foreign data interface module, roughly based on ctype ideas.
But much smaller and memory-efficient. Uses Python builtin data structures
(dict, tuple, int) to describe structure layout.
11 years ago
Damien George
42b6419056
Merge branch 'dhylands-fix-sdcard-read'
10 years ago
Damien George
594699bc88
stmhal: Protect SD_WriteBlocks by IRQ disable/enable pair.
10 years ago
Dave Hylands
90ba80dc36
Disable IRQs around sdcard reads.
Once the code switches to using DMA, this can be removed.
10 years ago
Paul Sokolovsky
5fa5ca40e6
binary: Factor out mp_binary_set_int().
10 years ago
Damien George
539681fffd
tests: Rename test scripts, changing - to _ for consistency.
From now on, all new tests must use underscore.
Addresses issue #727 .
10 years ago
Damien George
0182385ab0
py: Automatically ake __new__ a staticmethod.
Addresses issue #622 .
10 years ago
Paul Sokolovsky
4e0eeebdc2
py: Implement sys.maxsize, standard way to check platform "bitness".
Implementing it as a static constant is a bit peculiar and require cooperation
from long int implementation.
11 years ago
Damien George
381618269a
parser: Convert (u)int to mp_(u)int_t.
11 years ago
Damien George
54eb4e723e
lexer: Convert type (u)int to mp_(u)int_t.
11 years ago
Damien George
40f3c02682
Rename machine_(u)int_t to mp_(u)int_t.
See discussion in issue #50 .
11 years ago
Damien George
065aba5875
Merge pull request #739 from errordeveloper/patch-1
qemu: fix typo in readme
11 years ago
Ilya Dmitrichenko
e4e55047b3
qemu: fix typo in readme
11 years ago
Damien George
5e6419cb11
Merge branch 'dhylands-add-timer-deinit'
11 years ago
Damien George
e70b5dbe58
stmhal: Some reordering of code/functions.
11 years ago
Damien George
92a47b4dae
Merge branch 'add-timer-deinit' of github.com:dhylands/micropython into dhylands-add-timer-deinit
11 years ago
Damien George
9cd96cf25d
Merge pull request #709 from windelbouwman/master
Added hexfile target
11 years ago
Damien George
f83debc716
Merge branch 'dhylands-teensy-new'
11 years ago
Damien George
7a37f647a5
Merge branch 'teensy-new' of github.com:dhylands/micropython into dhylands-teensy-new
Conflicts:
stmhal/pin_named_pins.c
stmhal/readline.c
Renamed HAL_H to MICROPY_HAL_H. Made stmhal/mphal.h which intends to
define the generic Micro Python HAL, which in stmhal sits above the ST
HAL.
11 years ago
Damien George
5fc580475f
Merge branch 'dhylands-preserve-except'
11 years ago
Damien George
f0b29729aa
py, objexcept: Only check for locked gc if gc is enabled.
11 years ago
Damien George
f065344d3b
Merge branch 'preserve-except' of github.com:dhylands/micropython into dhylands-preserve-except
11 years ago
Damien George
aa47f3968b
Merge pull request #734 from iabdalkader/copysign
Add copysignf
11 years ago
Dave Hylands
2fe841d2fa
Try not to cause a MemoryError when raising an exception during nterrupt handling.
Step 1 fixes #732
11 years ago
Paul Sokolovsky
caa7334141
stackctrl: Add "mp_" prefix.
11 years ago
Paul Sokolovsky
e95b6b5e07
modffi: Add special 'C' code for passing a callback function pointer.
11 years ago
Dave Hylands
0d81c133b3
Add timer_deinit and call it just before doing a soft-restart
This fixes #733 .
11 years ago
mux
5d44e6a92c
Add copysignf
* Fix #692
11 years ago
Damien George
4039a26679
Merge pull request #710 from iabdalkader/assert
Fix assert_func warning/error
11 years ago
Damien George
b601d9574a
py: Improvements to native emitter.
Native emitter can now compile try/except blocks using nlr_push/nlr_pop.
It probably only works for 1 level of exception handling. It doesn't
work on Thumb (only x64).
Native emitter can also handle some additional op codes.
With this patch, 198 tests now pass using "-X emit=native" option to
micropython.
11 years ago
Paul Sokolovsky
5813efd634
stmhal: pyb.adc: Clarify that buffer with elements of any size can be used.
Based on forum post: http://forum.micropython.org/viewtopic.php?f=6&t=193
11 years ago
Paul Sokolovsky
bb35f425f9
Merge pull request #730 from stinos/windows-mpconfig
windows: Sync mpconfigport.h with the unix' version
11 years ago
Paul Sokolovsky
c10a4405cd
gendoc.py: Support modules w/o functions and/or classes.
I.e. don't assume that both are always present.
11 years ago
Paul Sokolovsky
a23475979b
modffi: Support short types.
11 years ago
stijn
ec6fa8732b
windows: Sync mpconfigport.h with the unix' version
- rearrange/add definitions that were not there so it's easier to compare both
- use MICROPY_PY_SYS_PLATFORM in main.c since it's available anyway
- define EWOULDBLOCK, it is missing from ingw32
11 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
Paul Sokolovsky
9e215fa4c2
py: Make unichar_charlen() accept/return machine_uint_t.
11 years ago
Paul Sokolovsky
a62da515af
Merge pull request #729 from stinos/fix-include-order
unix: Fix mpconfig.h not being included before misc.h
11 years ago
stijn
5478ed18ea
unix: Fix mpconfig.h not being included before misc.h
This fixes count_lead_ones in misc.h not compiling due to unknown types
11 years ago
Damien George
b1b840554d
Merge branch 'unicode'
11 years ago
Damien George
635b60e299
unix, stmhal: Add option for STR_UNICODE to mpconfigport.h.
Unicode is disabled by default for now, since FileIO.read(n) is
currently not implemented for text-mode files, and this is an
often function.
11 years ago
Damien George
8546ce1e28
py: Add missing #endif.
11 years ago
Damien George
41736f8201
tests: Write output in byte mode, not text mode.
This enables testing unicode and non-unicode implementations.
11 years ago
Damien George
e04a44e2f6
py: Small comments, name changes, use of machine_int_t.
11 years ago
Damien George
b3a50f0f3e
Merge branch 'master' into unicode
Conflicts:
py/mpconfig.h
11 years ago