Commit Graph

20 Commits

Author SHA1 Message Date
Damien George
c5966128c7 Implement proper exception type hierarchy.
Each built-in exception is now a type, with base type BaseException.
C exceptions are created by passing a pointer to the exception type to
make an instance of.  When raising an exception from the VM, an
instance is created automatically if an exception type is raised (as
opposed to an exception instance).

Exception matching (RT_BINARY_OP_EXCEPTION_MATCH) is now proper.

Handling of parse error changed to match new exceptions.

mp_const_type renamed to mp_type_type for consistency.
2014-02-15 16:10:44 +00:00
Damien George
d71cd86dc1 Merge branch 'iabdalkader-master'
Conflicts:
	stm/usb.c
	stm/usb.h
2014-02-01 16:17:06 +00:00
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.
2014-02-01 16:04:34 +00:00
mux
b2269b610e Detect VCP line state.
* Detect VCP line state, based on SET_CONTROL_LINE_STATE request
2014-02-01 13:28:29 +02:00
Damien George
75abee206d stm: USB host mode working! Restructure stm library directories. 2014-01-26 17:41:01 +00:00
Damien George
3257d3543b stm: Remove unnecessary #includes; small other changes. 2014-01-23 22:16:15 +00:00
Damien George
b5d13c309f stm: Fix USART3 init. Small edits to Makefile and other things. 2014-01-22 22:55:07 +00:00
Damien George
328708eb25 stm: Re-instate C debugging USART port (disabled by default).
See pyb_usart_global_debug variable.

Also did some work on USB OTG, but nothing working yet.
2014-01-13 00:20:06 +00:00
Damien
58a1b4c6cf Add USB HID support. Runs as an alternative to VCP+MSC. 2013-10-25 20:53:54 +01:00
Damien
0f6545139b Implement simple servo control using PWM. 2013-10-23 20:39:20 +01:00
Damien
e9f1e50be4 Board running boot.py, working REPL, soft reboot. 2013-10-22 23:09:25 +01:00
Damien
0c5827fc65 stm: improved GC, and cooked output for VCP. 2013-10-22 21:13:36 +01:00
Damien
3f69aca2e2 Make stm use garbage collector. 2013-10-21 23:46:04 +01:00
Damien
f48cf67108 Implement crude but working REPL for board. 2013-10-21 10:42:06 +01:00
Damien
4b6e85ca26 Try to get REPL working, but bug with CDC VCP... 2013-10-21 09:56:56 +01:00
Damien
fb42ec17bc Try to re-add USB support... 2013-10-19 15:37:09 +01:00
Damien
00ff04fc49 Working SysTick, code factoring, some boot-up code. 2013-10-19 14:40:54 +01:00
Damien
4a175e1f11 Fix up linker script; improve startup code; printf to USB. 2013-10-17 22:50:21 +01:00
Damien
fee89d520f Implement crude but functional CDC + MSC USB device. 2013-10-13 19:02:15 +01:00
Damien
ed65605edc Inital commit of stm32f4xx framework. 2013-10-13 00:42:20 +01:00