circuitpython/stmhal
Damien George bc1488a05f stmhal: Improve REPL control codes; improve pyboard.py script.
Improvements are:

2 ctrl-C's are now needed to truly kill running script on pyboard, so
make CDC interface allow multiple ctrl-C's through at once (ie sending
b'\x03\x03' to pyboard now counts as 2 ctrl-C's).

ctrl-C in friendly-repl can now stop multi-line input.

In raw-repl mode, use ctrl-D to indicate end of running script, and also
end of any error message.  Thus, output of raw-repl is always at least 2
ctrl-D's and it's much easier to parse.

pyboard.py is now a bit faster, handles exceptions from pyboard better
(prints them and exits with exit code 1), prints out the pyboard output
while the script is running (instead of waiting till the end), and
allows to follow the output of a previous script when run with no
arguments.
2014-10-26 15:39:22 +00:00
..
boards stmhal: Fix pin af definition: TIM2_CH1_ETR -> TIM2_CH1/TIM2_ETR. 2014-10-23 22:07:24 +01:00
cmsis stmhal: Update STM32Cube F4 HAL driver to V1.3.0. 2014-08-06 22:33:31 +01:00
fatfs stmhal, fatfs: Use stdlib for string fns; make all private fns static. 2014-09-29 15:26:46 +01:00
hal stmhal: Adjust computation of SYSCLK to retain precision. 2014-10-04 01:54:02 +01:00
usbdev stmhal: Fill in USB class/subclass/proto for CDC+HID device. 2014-10-25 01:14:39 +01:00
usbhost Initial checkin with STM HAL 2014-03-11 23:55:41 -07:00
.gitignore stmhal: Add .gitignore to ignore the new build dir names. 2014-05-03 18:26:03 +01:00
accel.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
accel.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
adc.c Fix timer overflow code. 2014-09-27 19:40:37 -07:00
adc.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
autoflash Add device ID to autoflash script. 2014-05-02 23:03:23 +01:00
bufhelper.c stmhal: Include mpconfig.h before all other includes. 2014-06-28 23:32:03 +03:00
bufhelper.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
can.c stmhal: Use OSError with POSIX error code for HAL errors. 2014-10-23 14:25:32 +01:00
can.h stmhal: Add basic CAN bus support. 2014-10-02 17:32:02 +01:00
dac.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
dac.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
diskio.c stmhal: Change 64-bit arithmetic to 32-bit for SD card block addressing. 2014-09-15 23:49:57 +01:00
diskio.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
extint.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
extint.h stmhal: Clean up reset/soft-reset code; fix bug init'ing VCP exc. 2014-08-04 11:09:51 +01:00
ffconf.c stmhal: Change 0:/ and 1:/ to /flash and /sd; add CWD support. 2014-07-31 23:44:04 +01:00
ffconf.h stmhal: Add label to internal flash drive on creation. 2014-09-29 15:26:11 +01:00
file.c Implement kwargs for builtin open() and _io.FileIO 2014-10-21 22:10:01 +03:00
file.h stmhal: Add file.flush and os.stat. 2014-07-19 16:39:13 +01:00
flash.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
flash.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
font_petme128_8x8.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
gccollect.c Rename machine_(u)int_t to mp_(u)int_t. 2014-07-03 13:25:24 +01:00
gccollect.h Add gc.enable, gc.disable; remove pyb.gc. 2014-05-08 23:04:49 +01:00
gchelper.s REPl working on UART6 with STMHAL 2014-03-12 18:15:55 -07:00
help.c stmhal: Update help text. 2014-10-02 14:51:17 +01:00
i2c.c stmhal: Use OSError with POSIX error code for HAL errors. 2014-10-23 14:25:32 +01:00
i2c.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
import.c stmhal: Include mpconfig.h before all other includes. 2014-06-28 23:32:03 +03:00
input.c Change const byte* to const char* where sensible. 2014-05-25 22:27:57 +01:00
irq.c stmhal: Fix bugs in documentation so it compiles. 2014-09-17 23:27:42 +00:00
irq.h stmhal: Make enable_irq and disable_irq inline functions. 2014-08-25 13:24:33 +01:00
lcd.c stmhal: Use mp_uint_t where appropriate. 2014-10-05 21:51:54 +01:00
lcd.h stmhal: Update and improve LCD driver. 2014-06-15 00:41:47 +01:00
led.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
led.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
lexerfatfs.c py: Add further checks for failed malloc in lexer init functions. 2014-10-09 16:53:37 +01:00
lexerfatfs.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
main.c stmhal: Change fresh boot.py and main.py to use \r\n newlines. 2014-10-25 01:14:39 +01:00
make-stmconst.py stmhal: Add lots of constants to stm module. 2014-04-19 00:32:25 +01:00
Makefile stmhal: Use OSError with POSIX error code for HAL errors. 2014-10-23 14:25:32 +01:00
modcc3k.c stmhal: Change cc3k.recv to only make 1 call to underlying recv(). 2014-10-22 01:10:53 +01:00
modnetwork.c stmhal: Add network and usocket module. 2014-09-30 22:36:47 +01:00
modnetwork.h stmhal: Add network and usocket module. 2014-09-30 22:36:47 +01:00
modpyb.c Add pyb.hard_reset, and make sys.exit() or raise SystemExit do a soft reset. 2014-10-22 19:14:20 +01:00
modstm.c Prefix ARRAY_SIZE with micropython prefix MP_ 2014-06-19 18:54:34 +02:00
modstmconst.gen.c stmhal: Add lots of constants to stm module. 2014-04-19 00:32:25 +01:00
moduos.c stmhal: Rename module files to keep consistency with module name. 2014-10-12 20:24:55 +01:00
moduselect.c stmhal: Rename module files to keep consistency with module name. 2014-10-12 20:24:55 +01:00
modusocket.c stmhal: Add network and usocket module. 2014-09-30 22:36:47 +01:00
modutime.c stmhal: Rename module files to keep consistency with module name. 2014-10-12 20:24:55 +01:00
modwiznet5k.c stmhal: Change cc3k.recv to only make 1 call to underlying recv(). 2014-10-22 01:10:53 +01:00
mpconfigport.h py: Add builtin memoryview object (mostly using array code). 2014-10-23 13:34:35 +01:00
mpconfigport.mk stmhal: Initial implementation of cc3k module and driver. 2014-09-26 00:57:26 +01:00
mphal.c stmhal: Use OSError with POSIX error code for HAL errors. 2014-10-23 14:25:32 +01:00
mphal.h stmhal: Use OSError with POSIX error code for HAL errors. 2014-10-23 14:25:32 +01:00
pendsv.c py: Add mp_pending_exception global variable, for VM soft interrupt. 2014-10-25 23:37:57 +01:00
pendsv.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
pin_defs_stmhal.c Add support for selecting pin alternate functions from python. 2014-08-07 23:15:41 -07:00
pin_defs_stmhal.h Updated teensy to build. 2014-06-15 22:48:05 -07:00
pin_named_pins.c Add Timer support (PWM, OC, IC) for stmhal and teensy 2014-09-19 09:26:13 -07:00
pin.c Add Timer support (PWM, OC, IC) for stmhal and teensy 2014-09-19 09:26:13 -07:00
pin.h Add Timer support (PWM, OC, IC) for stmhal and teensy 2014-09-19 09:26:13 -07:00
portmodules.h stmhal: Enable module weak links. 2014-10-12 20:23:47 +01:00
printf.c Allow real memory errors (from locked gc) to be reported with traceback. 2014-10-07 08:07:49 -07:00
pybcdc.inf_template Auto-generate the stmhal/pybcdc_inf header file from static files 2014-04-16 02:41:26 +01:00
pybioctl.h stmhal: Add polling ability to UART object. 2014-09-07 20:40:32 +01:00
pybstdio.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
pybstdio.h stmhal: Fix REPL printing by cooking output sent to stdout_obj. 2014-07-20 13:57:43 +01:00
pyexec.c stmhal: Improve REPL control codes; improve pyboard.py script. 2014-10-26 15:39:22 +00:00
pyexec.h stmhal: Don't return SystemExit value from parse_compile_execute. 2014-10-22 19:14:20 +01:00
qstrdefsport.h Add pyb.hard_reset, and make sys.exit() or raise SystemExit do a soft reset. 2014-10-22 19:14:20 +01:00
readline.c stmhal: Improve REPL control codes; improve pyboard.py script. 2014-10-26 15:39:22 +00:00
readline.h stmhal: Clean up reset/soft-reset code; fix bug init'ing VCP exc. 2014-08-04 11:09:51 +01:00
rng.c stmhal: Include mpconfig.h before all other includes. 2014-06-28 23:32:03 +03:00
rng.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
rtc.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
rtc.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
sdcard.c stmhal: Add retry to SD card init. 2014-10-20 00:04:27 +01:00
sdcard.h stmhal: Change 64-bit arithmetic to 32-bit for SD card block addressing. 2014-09-15 23:49:57 +01:00
servo.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
servo.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
spi.c stmhal: Change SPI phase spec to 0,1 to match standard conventions. 2014-10-26 13:54:31 +00:00
spi.h stmhal: For spi_init, add argument to select if NSS pin is enabled. 2014-09-30 22:36:47 +01:00
startup_stm32f40xx.s Initial checkin with STM HAL 2014-03-11 23:55:41 -07:00
std.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
stm32f4xx_hal_msp.c stmhal: Include mpconfig.h before all other includes. 2014-06-28 23:32:03 +03:00
stm32f4xx_it.c stmhal: Overhaul UART class to use read/write, and improve it. 2014-10-21 22:15:20 +01:00
stm32f4xx_it.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
stm32f405.ld stmhal: Set entry point for ELF binary debugging 2014-10-21 16:48:32 +02:00
storage.c stmhal: Include mpconfig.h before all other includes. 2014-06-28 23:32:03 +03:00
storage.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
string0.c stmhal: Slightly improved memcpy; memset uses word store when aligned. 2014-09-13 00:12:41 +01:00
system_stm32f4xx.c stmhal: Allow pyb.freq() function to change SYSCLK frequency. 2014-10-04 01:54:31 +01:00
systick.c stmhal: Improve efficiency of SysTick IRQ and HAL_Delay. 2014-08-25 18:12:44 +01:00
systick.h Add support for pyb.micros() by using the systick timer. 2014-08-25 17:38:55 +01:00
timer.c Add support for complimentary channel output and deadtime. 2014-10-10 13:54:03 -07:00
timer.h stmhal: Add pulse_width_ratio to timer channel object. 2014-09-21 22:54:02 +01:00
uart.c stmhal: Use stream's readinto. 2014-10-24 11:19:01 +00:00
uart.h stmhal: Overhaul UART class to use read/write, and improve it. 2014-10-21 22:15:20 +01:00
usb.c py: Add mp_pending_exception global variable, for VM soft interrupt. 2014-10-25 23:37:57 +01:00
usb.h stmhal: Clean up reset/soft-reset code; fix bug init'ing VCP exc. 2014-08-04 11:09:51 +01:00
usbd_cdc_interface.c stmhal: Improve REPL control codes; improve pyboard.py script. 2014-10-26 15:39:22 +00:00
usbd_cdc_interface.h stmhal: Add USB_VCP class/object, for direct USB VCP control. 2014-07-31 10:30:42 +01:00
usbd_conf.c micropython port for HydraBus 2014-06-02 21:43:02 +02:00
usbd_conf.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
usbd_desc_cdc_msc.c stmhal: Change USB PID when in CDC+HID mode. 2014-10-25 22:55:07 +01:00
usbd_desc.h stmhal: Change USB PID when in CDC+HID mode. 2014-10-25 22:55:07 +01:00
usbd_msc_storage.c Proposed fix for USB Mass Storage. 2014-10-01 22:52:02 +01:00
usbd_msc_storage.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
usrsw.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
usrsw.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00