micropython/stmhal
Damien George 038df43183 stmhal: Implement selector for USB device mode; improve boot up.
Can now choose at boot up whether the USB device is CDC+MSC or CDC+HID.
Choice is made by an option in boot.py, with default being CDC+MSC.
HID+MSC is not currently supported, but should be easy to implement.

Boot up now has ability to change the reset mode: hold down USR switch
while booting and LEDs will count from 1 to 7 to indicate the boot mode.
Release USR when correct mode is selected.  Current modes are 1 (normal
boot), 2 (safe mode), 3 (reset FS mode).
2014-03-30 00:00:15 +00:00
..
boards stmhal - fixed up adc stuff 2014-03-24 11:16:35 -07:00
cmsis Initial checkin with STM HAL 2014-03-11 23:55:41 -07:00
fatfs Initial checkin with STM HAL 2014-03-11 23:55:41 -07:00
hal stmhal - More systick cleanup. Fix HAL_Delay 2014-03-13 16:17:01 -07:00
usbdev stmhal: Implement selector for USB device mode; improve boot up. 2014-03-30 00:00:15 +00:00
usbhost Initial checkin with STM HAL 2014-03-11 23:55:41 -07:00
Makefile stmhal: Implement selector for USB device mode; improve boot up. 2014-03-30 00:00:15 +00:00
accel.c stmhal: Use rt_check_nargs to check number of arguments. 2014-03-26 22:46:03 +00:00
accel.h stmhal: Shuffle around some init functions in main(). 2014-03-25 23:33:47 +00:00
adc.c stmhal: Use rt_check_nargs to check number of arguments. 2014-03-26 22:46:03 +00:00
adc.h stmhal: Make pyb.ADC the ADC class (not a function). 2014-03-24 19:27:13 +00:00
autoflash stmhal: Add autoflash script, to flash a DFU device automatically. 2014-03-17 13:04:51 +00:00
dac.c stmhal: Use rt_check_nargs to check number of arguments. 2014-03-26 22:46:03 +00:00
dac.h stmhal: Add DAC driver. 2014-03-24 15:15:33 +00:00
diskio.c stmhal: Add fatfs support, working with flash and SD card. 2014-03-17 14:04:19 +00:00
diskio.h stmhal: Add fatfs support, working with flash and SD card. 2014-03-17 14:04:19 +00:00
exti.c stmhal: Add TODO's to exti.c; fix delay in lcd.c. 2014-03-29 01:24:44 +00:00
exti.h stmhal - add pin mapping, gpio, exti, usrsw 2014-03-14 23:41:28 -07:00
ffconf.h stmhal: Add fatfs support, working with flash and SD card. 2014-03-17 14:04:19 +00:00
file.c Remove mp_obj_type_t.methods entry and use .locals_dict instead. 2014-03-26 21:47:19 +00:00
file.h stmhal: Add fatfs support, working with flash and SD card. 2014-03-17 14:04:19 +00:00
flash.c stmhal: Add flash write support and flash storage driver. 2014-03-17 13:31:35 +00:00
flash.h stmhal: Add flash write support and flash storage driver. 2014-03-17 13:31:35 +00:00
font_petme128_8x8.h stmhal: Add LCD driver. 2014-03-19 13:11:59 +00:00
gccollect.c REPl working on UART6 with STMHAL 2014-03-12 18:15:55 -07:00
gccollect.h REPl working on UART6 with STMHAL 2014-03-12 18:15:55 -07:00
gchelper.s REPl working on UART6 with STMHAL 2014-03-12 18:15:55 -07:00
gpio.c stmhal - add pin mapping, gpio, exti, usrsw 2014-03-14 23:41:28 -07:00
gpio.h stmhal - add pin mapping, gpio, exti, usrsw 2014-03-14 23:41:28 -07:00
help.c py: Rename old const type objects to mp_type_* for consistency. 2014-03-29 13:43:38 +00:00
i2c.c py: Rename old const type objects to mp_type_* for consistency. 2014-03-29 13:43:38 +00:00
i2c.h stmhal: Add I2C support; change accel driver to use new I2C. 2014-03-25 23:26:14 +00:00
import.c stmhal: Add accelerometer driver; fix bug with LFN. 2014-03-20 23:33:30 +00:00
input.c stmhal: Factor out stdio and readline to separate files. 2014-03-29 14:20:05 +00:00
lcd.c stmhal: Add TODO's to exti.c; fix delay in lcd.c. 2014-03-29 01:24:44 +00:00
lcd.h stmhal: Add LCD driver. 2014-03-19 13:11:59 +00:00
led.c stmhal: Implement selector for USB device mode; improve boot up. 2014-03-30 00:00:15 +00:00
led.h stmhal: Make Led, Servo and Accel their class, not a function. 2014-03-24 11:48:39 +00:00
lexerfatfs.c stmhal: Add fatfs support, working with flash and SD card. 2014-03-17 14:04:19 +00:00
lexerfatfs.h REPl working on UART6 with STMHAL 2014-03-12 18:15:55 -07:00
main.c stmhal: Implement selector for USB device mode; improve boot up. 2014-03-30 00:00:15 +00:00
malloc0.c REPl working on UART6 with STMHAL 2014-03-12 18:15:55 -07:00
math.c stm/stmhal: Change gammaf to tgammaf. 2014-03-23 14:00:02 +00:00
modos.c py: Rename old const type objects to mp_type_* for consistency. 2014-03-29 13:43:38 +00:00
modos.h Proper support for registering builtin modules in ROM. 2014-03-25 14:18:18 +00:00
modpyb.c stmhal: Implement selector for USB device mode; improve boot up. 2014-03-30 00:00:15 +00:00
modpyb.h Proper support for registering builtin modules in ROM. 2014-03-25 14:18:18 +00:00
modtime.c Proper support for registering builtin modules in ROM. 2014-03-25 14:18:18 +00:00
modtime.h Proper support for registering builtin modules in ROM. 2014-03-25 14:18:18 +00:00
mpconfigport.h Proper support for registering builtin modules in ROM. 2014-03-25 14:18:18 +00:00
pendsv.c stmhal: Get USB enumerating a CDC device. 2014-03-14 00:30:37 +00:00
pendsv.h stmhal: Get USB enumerating a CDC device. 2014-03-14 00:30:37 +00:00
pin.c REPl working on UART6 with STMHAL 2014-03-12 18:15:55 -07:00
pin.h stmhal - fixed up adc stuff 2014-03-24 11:16:35 -07:00
pin_map.c stmhal - add pin mapping, gpio, exti, usrsw 2014-03-14 23:41:28 -07:00
pin_named_pins.c stmhal - add pin mapping, gpio, exti, usrsw 2014-03-14 23:41:28 -07:00
printf.c stmhal: Remove unnecessary include. 2014-03-17 10:24:29 +00:00
pybcdc.inf stmhal: Add Windows .inf file for USB CDC device. 2014-03-29 17:43:02 +00:00
pybstdio.c stmhal: Factor out stdio and readline to separate files. 2014-03-29 14:20:05 +00:00
pybstdio.h stmhal: Factor out stdio and readline to separate files. 2014-03-29 14:20:05 +00:00
pyexec.c stmhal: Factor out stdio and readline to separate files. 2014-03-29 14:20:05 +00:00
pyexec.h stmhal: Improve REPL CTRL commands. 2014-03-24 12:23:37 +00:00
qstrdefsport.h stmhal: Implement selector for USB device mode; improve boot up. 2014-03-30 00:00:15 +00:00
readline.c stmhal: Factor out stdio and readline to separate files. 2014-03-29 14:20:05 +00:00
readline.h stmhal: Factor out stdio and readline to separate files. 2014-03-29 14:20:05 +00:00
rng.c stmhal: Add os module with a few basic functions. 2014-03-22 14:56:32 +00:00
rng.h stmhal: Add os module with a few basic functions. 2014-03-22 14:56:32 +00:00
rtc.c stmhal: Get RTC working. 2014-03-15 12:54:48 +00:00
rtc.h stmhal: Get RTC working. 2014-03-15 12:54:48 +00:00
sdcard.c Remove mp_obj_type_t.methods entry and use .locals_dict instead. 2014-03-26 21:47:19 +00:00
sdcard.h stmhal: Add fatfs support, working with flash and SD card. 2014-03-17 14:04:19 +00:00
servo.c stmhal: Use rt_check_nargs to check number of arguments. 2014-03-26 22:46:03 +00:00
servo.h stmhal: Make Led, Servo and Accel their class, not a function. 2014-03-24 11:48:39 +00:00
startup_stm32f40xx.s Initial checkin with STM HAL 2014-03-11 23:55:41 -07:00
std.h Initial checkin with STM HAL 2014-03-11 23:55:41 -07:00
stm32f4xx_hal_msp.c stmhal: Implement selector for USB device mode; improve boot up. 2014-03-30 00:00:15 +00:00
stm32f4xx_it.c stmhal: Implement selector for USB device mode; improve boot up. 2014-03-30 00:00:15 +00:00
stm32f4xx_it.h stmhal: Get USB enumerating a CDC device. 2014-03-14 00:30:37 +00:00
stm32f405.ld Initial checkin with STM HAL 2014-03-11 23:55:41 -07:00
storage.c stmhal: Add flash write support and flash storage driver. 2014-03-17 13:31:35 +00:00
storage.h stmhal: Add flash write support and flash storage driver. 2014-03-17 13:31:35 +00:00
string0.c REPl working on UART6 with STMHAL 2014-03-12 18:15:55 -07:00
system_stm32f4xx.c stmhal: Disable redundant SystemCoreClockUpdate function. 2014-03-15 14:45:51 +00:00
systick.c stmhal - More systick cleanup. Fix HAL_Delay 2014-03-13 16:17:01 -07:00
systick.h stmhal - More systick cleanup. Fix HAL_Delay 2014-03-13 16:17:01 -07:00
usart.c Remove mp_obj_type_t.methods entry and use .locals_dict instead. 2014-03-26 21:47:19 +00:00
usart.h stmhal: Change Usart creation function to class make_new. 2014-03-25 23:40:54 +00:00
usb.c stmhal: Implement selector for USB device mode; improve boot up. 2014-03-30 00:00:15 +00:00
usb.h stmhal: Implement selector for USB device mode; improve boot up. 2014-03-30 00:00:15 +00:00
usbd_cdc_interface.c stmhal: Implement selector for USB device mode; improve boot up. 2014-03-30 00:00:15 +00:00
usbd_cdc_interface.h stmhal: Add intensity method for blue LED. 2014-03-22 23:54:13 +00:00
usbd_conf.c stmhal: USB CDC and MSC device work together. 2014-03-22 12:32:54 +00:00
usbd_conf.h stmhal: Tidy up USB device configuration. Make it use less RAM. 2014-03-22 12:46:23 +00:00
usbd_desc.h stmhal: Add support for USB MSC device. 2014-03-21 23:32:01 +00:00
usbd_desc_cdc_msc.c stmhal: USB CDC and MSC device work together. 2014-03-22 12:32:54 +00:00
usbd_msc_storage.c stmhal: Change flash MSD from fixed to removable drive. 2014-03-23 12:48:58 +00:00
usbd_msc_storage.h stmhal: Add support for USB MSC device. 2014-03-21 23:32:01 +00:00
usrsw.c stmhal: Implement selector for USB device mode; improve boot up. 2014-03-30 00:00:15 +00:00
usrsw.h stmhal: Implement selector for USB device mode; improve boot up. 2014-03-30 00:00:15 +00:00