circuitpython/stmhal
Damien George 3f4898456b stmhal: Add stm module, which contains some constants for the MCU.
Also contains raw memory read/write functions, read8, read16, read32,
write8, write16, write32.  Can now do:

stm.write16(stm.GPIOA + stm.GPIO_BSRRL, 1 << 13)

This turns on the red LED.

With the new constant folding, the above constants for the GPIO address
are actually compiled to constants (and the addition done) at compile
time.  For viper code and inline assembler, this optimisation will make
a big difference.  In the inline assembler, using these constants would
not be possible without this constant folding.
2014-04-10 22:46:40 +01:00
..
boards Fix make-pins.py to support having multiple names for a pin. 2014-04-08 15:45:47 -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
accel.c py: Remove old "run time" functions that were 1 liners. 2014-03-31 16:28:13 +01:00
accel.h stmhal: Shuffle around some init functions in main(). 2014-03-25 23:33:47 +00:00
adc.c py: Change nlr_jump to nlr_raise, to aid in debugging. 2014-04-05 18:32:08 +01:00
adc.h stmhal: Make pyb.ADC the ADC class (not a function). 2014-03-24 19:27:13 +00:00
autoflash stmhal: autoflash now enters serial comms after flashing. 2014-04-05 17:16:00 +01:00
dac.c py: Change nlr_jump to nlr_raise, to aid in debugging. 2014-04-05 18:32:08 +01:00
dac.h stmhal: Add DAC driver. 2014-03-24 15:15:33 +00:00
diskio.c stmhal: Unify naming of HW config; make SD detect configurable. 2014-03-30 12:30:35 +01:00
diskio.h stmhal: Add fatfs support, working with flash and SD card. 2014-03-17 14:04:19 +00:00
exti.c stmhal: Make USRSW re-register the EXTI callback each time it's set. 2014-04-08 22:35:42 +01:00
exti.h stmhal: Make USRSW re-register the EXTI callback each time it's set. 2014-04-08 22:35:42 +01:00
ffconf.h stmhal: Add fatfs support, working with flash and SD card. 2014-03-17 14:04:19 +00:00
file.c unix, stmhal: Consistently use "FileIO" as class name for file objects. 2014-04-08 04:08:16 +03: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 Rename rt_* to mp_*. 2014-03-30 13:35:08 +01:00
gpio.h stmhal - add pin mapping, gpio, exti, usrsw 2014-03-14 23:41:28 -07:00
help.c stmhal: Improve help() function. 2014-04-09 01:16:29 +01:00
i2c.c py: Change nlr_jump to nlr_raise, to aid in debugging. 2014-04-05 18:32:08 +01: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 py: Change nlr_jump to nlr_raise, to aid in debugging. 2014-04-05 18:32:08 +01:00
lcd.c Rename rt_* to mp_*. 2014-03-30 13:35:08 +01:00
lcd.h stmhal: Add LCD driver. 2014-03-19 13:11:59 +00:00
led.c py: Change nlr_jump to nlr_raise, to aid in debugging. 2014-04-05 18:32:08 +01: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: Make /src/main.py just /main.py; allow SD to be used as root device. 2014-04-09 23:30:34 +01:00
Makefile stmhal: Add stm module, which contains some constants for the MCU. 2014-04-10 22:46:40 +01:00
malloc0.c Improve GC finalisation code; add option to disable it. 2014-04-05 20:35:48 +01:00
math.c stmhal: Add powf, logf, log2f, log10f. 2014-04-03 22:11:28 +01:00
modos.c py: Change module globals from mp_map_t* to mp_obj_dict_t*. 2014-04-05 21:53:54 +01:00
modos.h Proper support for registering builtin modules in ROM. 2014-03-25 14:18:18 +00:00
modpyb.c py: Change module globals from mp_map_t* to mp_obj_dict_t*. 2014-04-05 21:53:54 +01:00
modpyb.h Proper support for registering builtin modules in ROM. 2014-03-25 14:18:18 +00:00
modstm.c stmhal: Add stm module, which contains some constants for the MCU. 2014-04-10 22:46:40 +01:00
modstm.h stmhal: Add stm module, which contains some constants for the MCU. 2014-04-10 22:46:40 +01:00
modtime.c py: Change module globals from mp_map_t* to mp_obj_dict_t*. 2014-04-05 21:53:54 +01:00
modtime.h Proper support for registering builtin modules in ROM. 2014-03-25 14:18:18 +00:00
mpconfigport.h stmhal: Add stm module, which contains some constants for the MCU. 2014-04-10 22:46:40 +01: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_map.c py: Change nlr_jump to nlr_raise, to aid in debugging. 2014-04-05 18:32:08 +01:00
pin_named_pins.c stmhal - add pin mapping, gpio, exti, usrsw 2014-03-14 23:41:28 -07: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
printf.c Enhance str.format support 2014-04-01 01:17:33 -07:00
pybcdc.h stmhal: Update windows driver; \r\n newlines and addition USB id. 2014-04-09 02:23:24 +01: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 Improve REPL detecting when input needs to continue. 2014-04-08 11:04:29 +00:00
pyexec.h stmhal: Improve REPL CTRL commands. 2014-03-24 12:23:37 +00:00
qstrdefsport.h stmhal: Add stm module, which contains some constants for the MCU. 2014-04-10 22:46:40 +01:00
readline.c stmhal: Add more escape seqs; add debugging output for escape seq. 2014-04-05 11:45:59 +01: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 Merge map.h into obj.h. 2014-03-30 13:54:02 +01:00
sdcard.h stmhal: Add fatfs support, working with flash and SD card. 2014-03-17 14:04:19 +00:00
servo.c stmhal: Add functionality to Servo object. 2014-04-09 00:45:45 +01:00
servo.h stmhal: Add timer module; move servo PWM from TIM2 to TIM5. 2014-04-02 15:09:36 +01: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: Add timer module; move servo PWM from TIM2 to TIM5. 2014-04-02 15:09:36 +01:00
stm32f4xx_it.c stmhal: Add timer module; move servo PWM from TIM2 to TIM5. 2014-04-02 15:09:36 +01: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
timer.c py: Change nlr_jump to nlr_raise, to aid in debugging. 2014-04-05 18:32:08 +01:00
timer.h stmhal: Add timer module; move servo PWM from TIM2 to TIM5. 2014-04-02 15:09:36 +01:00
usart.c py: Change nlr_jump to nlr_raise, to aid in debugging. 2014-04-05 18:32:08 +01:00
usart.h stmhal: Change Usart creation function to class make_new. 2014-03-25 23:40:54 +00:00
usb.c stmhal: Unify naming of HW config; make SD detect configurable. 2014-03-30 12:30:35 +01:00
usb.h stmhal: Add home/end cursor support in readline. 2014-04-03 23:30:24 +01: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 timer module; move servo PWM from TIM2 to TIM5. 2014-04-02 15:09:36 +01: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_cdc_msc.c stmhal: USB CDC and MSC device work together. 2014-03-22 12:32:54 +00:00
usbd_desc.h stmhal: Add support for USB MSC device. 2014-03-21 23:32:01 +00:00
usbd_msc_storage.c stmhal: Unify naming of HW config; make SD detect configurable. 2014-03-30 12:30:35 +01:00
usbd_msc_storage.h stmhal: Add support for USB MSC device. 2014-03-21 23:32:01 +00:00
usrsw.c stmhal: Make USRSW re-register the EXTI callback each time it's set. 2014-04-08 22:35:42 +01:00
usrsw.h stmhal: Implement selector for USB device mode; improve boot up. 2014-03-30 00:00:15 +00:00