Damien George
698ec21e46
Make mp_obj_str_get_data return char* instead of byte*.
Can't decide which is better for string type, char or byte pointer.
Changing to char removes a few casts. Really need to do proper unicode.
11 years ago
Damien George
23177088d2
stm: Mount SD card on 1:/ if present.
If SD card is present on (soft) reset then it's mounted on 1:/ and files
can be openned using, eg, open('1:/test.txt', 'r'), or 'w' for writing.
11 years ago
Damien George
354d15a964
Implement fixed buffer vstrs; use them for import path.
11 years ago
Damien George
e09ffa1400
Search paths properly on import and execute __init__.py if it exists.
11 years ago
Paul Sokolovsky
9110896063
Remove older import helpers, no longer used.
11 years ago
Dave Hylands
1570a96cad
Initial support for Netduino
This also fixes up the IRQ for the PYBOARD4 USERSW
although I was unable to test that functionality.
11 years ago
Damien George
01156d510c
stm: Add support for ctrl-C to interrupt running Python.
Using PendSV interrupt at lowest priority, code can now raise an
exception during an interrupt by calling pendsv_nlr_jump. The exception
will be raised when all interrupts are finished. This is used to trap
ctrl-C from the USB VCP to break out of running Python code.
11 years ago
mux
565fdccfd2
Add usb_vcp_connected prototype to usb.h
11 years ago
mux
b2269b610e
Detect VCP line state.
* Detect VCP line state, based on SET_CONTROL_LINE_STATE request
11 years ago
Damien George
39631bc312
Fix Makefiles: -O3 option was not being applied; mkdir for STM.
11 years ago
Damien George
2d15c1216d
stm: Add optional memory debugging output.
11 years ago
Damien George
01fa4a9164
stm: Fix gccollect ram range.
11 years ago
mux
bfb01e9da6
Fix unused function warning in main
* Add SD card test to fix warning
11 years ago
mux
8592d85b36
Remove redundant include in file.c
* Remove include mpconfigport.h from file.c
11 years ago
mux
76a6335b6e
Move HEAP_END and RAM_END to linker script
* Issue #232
11 years ago
Damien George
217814cc63
stm: Increase timeout for RTC LSE startup; use backup regs.
11 years ago
Damien George
42647e64db
stm: Remove unneccesary include of mpconfigport (already in mpconfig).
11 years ago
mux
8d3b0a9f74
Add LCD check to stdout_print_strn
11 years ago
mux
bd61a6cee8
Add missing LCD driver definitions for STM32F4DISC
* Add missing LCD definitions for STM32F4DISC target, current code
breaks build.
11 years ago
Damien George
75abee206d
stm: USB host mode working! Restructure stm library directories.
11 years ago
Damien George
51f3a6becd
stm: Improved ADC module; add BOARD_NAME config value.
11 years ago
Damien George
b829b5caec
Implement mp_parse_node_free; print properly repr(string).
11 years ago
Damien George
449dd0a69e
stm: Put gc_collect code in separate file; define _ram_start in .ld.
To partly address Issue #220 .
11 years ago
Damien George
0004a84ec0
Revert "Move gc_collect to py/gc.c"
This reverts commit a215b09c0d
.
11 years ago
mux
a215b09c0d
Move gc_collect to py/gc.c
* Move gc_collect from main to py/gc.c
* Define GC's memory boundaries in linker script
* Issue #220
11 years ago
Dave Hylands
c89c681a9f
Rework makefiles. Add proper dependency checking.
11 years ago
mux
40048adabc
Move file obj to separate module
11 years ago
Damien George
3257d3543b
stm: Remove unnecessary #includes; small other changes.
11 years ago
mux
45ad9b405d
Move LED defs to mpconfigport.h
11 years ago
Damien George
26a00085fe
stm: LCD support for PYBv4; fix MMA reading code.
11 years ago
mux
1d1e4e1bd5
Fix USB CORE PCGCCTL Wrong Address
* Fix PCGCCTL bug using address instead of value.
* Fix issue #211
11 years ago
mux
638179fb9c
Move RTC to Separate Module
* Move RTC code from main to a separate module.
11 years ago
mux
c4808dae0a
Add More Feature Test Macros
* Add MICROPY_HW_HAS_LCD
* Add MICROPY_HW_HAS_WLAN
* Use feature test macros in main
11 years ago
Paul Sokolovsky
bc5b3f8c73
stm: Add memcmp() implementation.
11 years ago
Damien George
b5d13c309f
stm: Fix USART3 init. Small edits to Makefile and other things.
11 years ago
mux
3c7e71fb00
Fix Feature Macro Prefix
11 years ago
mux
630d8ff89f
Remove Underscore from Macro Names
11 years ago
mux
28b23f09a4
Add Generic Feature Macros to mpconfigport
* Add some generic feature macros to mpconfigport
* Move pin and port definitions from usrsw.c to mpconfigport
11 years ago
Damien George
5fa93b6755
Second stage of qstr revamp: uPy str object can be qstr or not.
11 years ago
Dave Hylands
72a31162e9
Fix support for STM32F4DISCOVERY
11 years ago
Damien George
2c30256382
stm: Clean up main.c; disable libgcc by default.
f2d and d2f functions from libgcc does not work correctly, most likely
due to the ABI being incorrect. libgcc disabled for now.
11 years ago
Damien George
d51cfd155c
stm: Put HSE_VALUE and other defines in mpconfigport.h.
mpconfigport.h is now included by stm32f4xx.h so that all STM files have
access to these defines.
11 years ago
Damien George
eb380d7261
stm: Put TARGET in mpconfigport.h; support PYBv4.
11 years ago
Damien George
55baff4c9b
Revamp qstrs: they now include length and hash.
Can now have null bytes in strings. Can define ROM qstrs per port using
qstrdefsport.h
11 years ago
mux
4578ced209
Add OSC_VALUE to Makefile
* Add the option to pass OSC frequency on command line.
11 years ago
mux
e9c01dea32
Remove hardcoded PLL_M value
11 years ago
Damien George
b2ebb161d4
stm: Upgrade ST peripheral library from 1.1.0 to 1.3.0.
11 years ago
Damien George
1277753812
stm: Upgrade to latest CMSIS libraries.
CMSIS V3.01 -> V3.20. Now in stm/cmsis to keep separate from ST
libraries.
11 years ago
Damien George
a11ceca807
Change int to uint for n_args in function with variable arguments.
11 years ago
Damien George
136b149e41
py: Add full traceback to exception printing.
11 years ago