micropython/stmhal
Damien George 3771a097da stmhal: Improve USART class, to be more like SPI and I2C.
The three classes I2C, SPI and USART now have a fairly uniform (Python)
API.  All are constructed, initialised and deinitialised in the same
way.  They can have most of their parameters set, using keyword arguments.
All have send and recv (although slightly different with I2C requiring an
address in master mode).  recv can do inplace receiving (ie store the
data in a previously-created bytearray).

It's just polling mode at the moment, but interrupt and DMA would be
nice to add.
2014-04-21 01:14:14 +01:00
..
boards stmhal: Improved configurability for I2C and SPI busses. 2014-04-20 19:06:15 +01:00
cmsis stmhal: Remove non-ascii character from include file. 2014-04-18 16:17:40 +01:00
fatfs stmhal: Move fatfs volume/partition lookup table to ROM. 2014-04-12 00:51:57 +01:00
hal stmhal: Add SPI class. 2014-04-20 00:16:30 +01:00
usbdev stmhal: Replace magic number 3 with CDC_IN_EP define. 2014-04-16 23:17:29 +01:00
usbhost Initial checkin with STM HAL 2014-03-11 23:55:41 -07:00
Makefile stmhal, SPI and I2C: Improvements to functionality and consistency. 2014-04-21 00:10:04 +01:00
accel.c stmhal, SPI and I2C: Improvements to functionality and consistency. 2014-04-21 00:10:04 +01:00
accel.h stmhal: Shuffle around some init functions in main(). 2014-03-25 23:33:47 +00:00
adc.c stmhal: Add SPI class. 2014-04-20 00:16:30 +01:00
adc.h stmhal: Big cleanup; merge gpio into Pin; make names consistent. 2014-04-18 22:38:09 +01:00
autoflash stmhal: autoflash now enters serial comms after flashing. 2014-04-05 17:16:00 +01:00
bufhelper.c stmhal, SPI and I2C: Improvements to functionality and consistency. 2014-04-21 00:10:04 +01:00
bufhelper.h stmhal, SPI and I2C: Improvements to functionality and consistency. 2014-04-21 00:10:04 +01:00
dac.c stmhal: Add SPI class. 2014-04-20 00:16:30 +01:00
dac.h stmhal: Add DAC driver. 2014-03-24 15:15:33 +00:00
diskio.c stmhal: Improve RTC class; make fatfs use RTC for time stamping files. 2014-04-19 02:17:30 +01:00
diskio.h stmhal: Add fatfs support, working with flash and SD card. 2014-03-17 14:04:19 +00:00
extint.c stmhal: Small bug fixes and simplifications. 2014-04-20 01:25:58 +01:00
extint.h stmhal: Small bug fixes and simplifications. 2014-04-20 01:25:58 +01:00
ffconf.h stmhal: Add fatfs support, working with flash and SD card. 2014-03-17 14:04:19 +00:00
file.c stmhal: Add SPI class. 2014-04-20 00:16:30 +01:00
file.h stmhal: Add fatfs support, working with flash and SD card. 2014-03-17 14:04:19 +00:00
flash.c stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
flash.h stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
font_petme128_8x8.h stmhal: Add LCD driver. 2014-03-19 13:11:59 +00:00
gccollect.c stmhal: Put a USB structure in ROM; GC doesn't scan the data segment. 2014-04-12 18:50:20 +01: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
help.c stmhal: Update help and comments re gpio changing to Pin. 2014-04-18 22:48:59 +01:00
i2c.c stmhal, SPI and I2C: Improvements to functionality and consistency. 2014-04-21 00:10:04 +01:00
i2c.h stmhal, SPI and I2C: Improvements to functionality and consistency. 2014-04-21 00:10:04 +01: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 stmhal: Add SPI class. 2014-04-20 00:16:30 +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: Only init RNG if it's used. 2014-04-20 00:45:59 +01:00
make-stmconst.py stmhal: Add lots of constants to stm module. 2014-04-19 00:32:25 +01:00
math.c stmhal: Update ADC, DAC and I2C objects to use new buffer protocol. 2014-04-18 23:28:56 +01:00
mathsincos.c stmhal: Add more math functions. 2014-04-17 00:13:13 +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 stmhal: Add SPI class. 2014-04-20 00:16:30 +01:00
modpyb.h Proper support for registering builtin modules in ROM. 2014-03-25 14:18:18 +00:00
modstm.c stmhal: Add lots of constants to stm module. 2014-04-19 00:32:25 +01:00
modstm.h stmhal: Add stm module, which contains some constants for the MCU. 2014-04-10 22:46:40 +01:00
modstmconst.gen.c stmhal: Add lots of constants to stm module. 2014-04-19 00:32:25 +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 py: Rename USE_COMPUTED_GOTOS to USE_COMPUTED_GOTO and enable on stmhal. 2014-04-17 23:24:13 +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.c stmhal: Add SPI class. 2014-04-20 00:16:30 +01:00
pin.h stmhal: Big cleanup; merge gpio into Pin; make names consistent. 2014-04-18 22:38:09 +01:00
pin_named_pins.c stmhal: Big cleanup; merge gpio into Pin; make names consistent. 2014-04-18 22:38:09 +01:00
printf.c py: Fix pfenv_print_strn to return correct number of chars printed. 2014-04-17 18:58:09 +01:00
pybcdc.inf_template Auto-generate the stmhal/pybcdc_inf header file from static files 2014-04-16 02:41:26 +01:00
pybstdio.c stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
pybstdio.h stmhal: Factor out stdio and readline to separate files. 2014-03-29 14:20:05 +00:00
pyexec.c build: Simplify build directory layout by putting all headers in genhdr. 2014-04-17 18:03:27 +01:00
pyexec.h stmhal: Improve REPL CTRL commands. 2014-03-24 12:23:37 +00:00
qstrdefsport.h stmhal: Improve USART class, to be more like SPI and I2C. 2014-04-21 01:14:14 +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: Only init RNG if it's used. 2014-04-20 00:45:59 +01:00
rng.h stmhal: Only init RNG if it's used. 2014-04-20 00:45:59 +01:00
rtc.c stmhal: Add SPI class. 2014-04-20 00:16:30 +01:00
rtc.h stmhal: Improve RTC class; make fatfs use RTC for time stamping files. 2014-04-19 02:17:30 +01:00
sdcard.c build: Simplify build directory layout by putting all headers in genhdr. 2014-04-17 18:03:27 +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 SPI class. 2014-04-20 00:16:30 +01:00
servo.h stmhal: Add timer module; move servo PWM from TIM2 to TIM5. 2014-04-02 15:09:36 +01:00
spi.c stmhal: Improve USART class, to be more like SPI and I2C. 2014-04-21 01:14:14 +01:00
spi.h stmhal: Add SPI class. 2014-04-20 00:16:30 +01:00
startup_stm32f40xx.s Initial checkin with STM HAL 2014-03-11 23:55:41 -07:00
std.h stmhal: Clean up fatality indications; remove long-obsolete malloc0.c. 2014-04-17 17:04:15 +01: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: Big cleanup; merge gpio into Pin; make names consistent. 2014-04-18 22:38:09 +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: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
storage.h stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01: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 stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
timer.h stmhal: Add ADC function to read data at a given frequency. 2014-04-15 19:52:56 +01:00
usart.c stmhal: Improve USART class, to be more like SPI and I2C. 2014-04-21 01:14:14 +01:00
usart.h stmhal: Improved usart module a bit. 2014-04-14 01:45:58 +01:00
usb.c stmhal: Put a USB structure in ROM; GC doesn't scan the data segment. 2014-04-12 18:50:20 +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: Fix 64-byte USB packet bug properly. 2014-04-17 00:12:07 +01: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.h stmhal: Put a USB structure in ROM; GC doesn't scan the data segment. 2014-04-12 18:50:20 +01:00
usbd_desc_cdc_msc.c stmhal: Change VID to 0xf055=FOSS, and PID to a random number. 2014-04-17 01:09:32 +01:00
usbd_msc_storage.c Merge pull request #500 from dhylands/fix-sdcard-removed 2014-04-17 00:23:43 +01:00
usbd_msc_storage.h stmhal: Add support for USB MSC device. 2014-03-21 23:32:01 +00:00
usrsw.c stmhal: Small bug fixes and simplifications. 2014-04-20 01:25:58 +01:00
usrsw.h stmhal: Implement selector for USB device mode; improve boot up. 2014-03-30 00:00:15 +00:00