micropython/stmhal
Damien George 29a1ec1bd6 stmhal: Overhaul network drivers; has generic network protocol in C.
This patch overhauls the network driver interface.  A generic NIC must
provide a set of C-level functions to implement low-level socket control
(eg socket, bind, connect, send, recv).  Doing this, the network and
usocket modules can then use such a NIC to implement proper socket
control at the Python level.

This patch also updates the CC3K and WIZNET5K drivers to conform to the
new interface, and fixes some bugs in the drivers.  They now work
reasonably well.
2014-12-04 18:57:57 +00:00
..
boards stmhal: Enable DAC on STM32F4DISC. 2014-11-25 11:42:26 +00: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
Makefile stmhal: Overhaul network drivers; has generic network protocol in C. 2014-12-04 18:57:57 +00: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 Adding CAN filter management 2014-11-26 18:52:33 +00:00
can.h stmhal: Add basic CAN bus support. 2014-10-02 17:32:02 +01:00
dac.c stmhal: Allow DAC object to be initialised from a pin. 2014-10-26 21:46:06 +00: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 py: Make stream seek correctly check for ioctl fn; add seek for textio. 2014-11-16 23:56:37 +00:00
file.h stmhal: Declare variables extern in include files 2014-11-05 22:52:51 +00: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 stmhal: Reduce coupling between USB driver and readline. 2014-11-27 16:58:31 +00:00
irq.c stmhal: Fix bugs in documentation so it compiles. 2014-09-17 23:27:42 +00:00
irq.h stmhal: Make pyb.[u]delay use systick with IRQs, busy loop otherwise. 2014-11-30 21:23:25 +00: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 Use MP_DEFINE_CONST_DICT macro to define module dicts. 2014-11-29 14:39:27 +00:00
memory.h stmhal: Enable uhashlib module; add heapq, hashlib weak links. 2014-11-27 17:54:37 +00:00
modnetwork.c stmhal: Overhaul network drivers; has generic network protocol in C. 2014-12-04 18:57:57 +00:00
modnetwork.h stmhal: Overhaul network drivers; has generic network protocol in C. 2014-12-04 18:57:57 +00:00
modnwcc3k.c stmhal: Overhaul network drivers; has generic network protocol in C. 2014-12-04 18:57:57 +00:00
modnwwiznet5k.c stmhal: Overhaul network drivers; has generic network protocol in C. 2014-12-04 18:57:57 +00:00
modpyb.c stmhal: Make pyb.[u]delay use systick with IRQs, busy loop otherwise. 2014-11-30 21:23:25 +00:00
modstm.c Use MP_DEFINE_CONST_DICT macro to define module dicts. 2014-11-29 14:39:27 +00:00
modstmconst.gen.c stmhal: Add lots of constants to stm module. 2014-04-19 00:32:25 +01:00
moduos.c Use MP_DEFINE_CONST_DICT macro to define module dicts. 2014-11-29 14:39:27 +00:00
moduselect.c Use MP_DEFINE_CONST_DICT macro to define module dicts. 2014-11-29 14:39:27 +00:00
modusocket.c stmhal: Overhaul network drivers; has generic network protocol in C. 2014-12-04 18:57:57 +00:00
modutime.c Use MP_DEFINE_CONST_DICT macro to define module dicts. 2014-11-29 14:39:27 +00:00
mpconfigport.h stmhal: Enable uhashlib module; add heapq, hashlib weak links. 2014-11-27 17:54:37 +00:00
mpconfigport.mk stmhal: Initial implementation of cc3k module and driver. 2014-09-26 00:57:26 +01:00
mphal.c stmhal: Reduce coupling between USB driver and readline. 2014-11-27 16:58:31 +00:00
mphal.h stmhal: Reduce coupling between USB driver and readline. 2014-11-27 16:58:31 +00: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.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
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
portmodules.h stmhal: Enable module weak links. 2014-10-12 20:23:47 +01:00
printf.c py: Fix some macros defines; cleanup some includes. 2014-11-05 21:16:41 +00: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 py: Fix some macros defines; cleanup some includes. 2014-11-05 21:16:41 +00:00
pyexec.c stmhal: Reduce coupling between USB driver and readline. 2014-11-27 16:58:31 +00:00
pyexec.h stmhal: Don't return SystemExit value from parse_compile_execute. 2014-10-22 19:14:20 +01:00
qstrdefsport.h stmhal: Overhaul network drivers; has generic network protocol in C. 2014-12-04 18:57:57 +00:00
readline.c stmhal: Remove unnecessary HAL_Delay in readline loop. 2014-11-27 17:04:09 +00:00
readline.h stmhal: Reduce coupling between USB driver and readline. 2014-11-27 16:58:31 +00: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 stmhal: Move RTC HAL init functions to rtc.c, where they belong. 2014-12-02 12:40:37 +00: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_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 Fix errors after enabling -Wpointer-arith 2014-10-29 15:42:38 +00:00
system_stm32f4xx.c stmhal: Allow pyb.freq() function to change SYSCLK frequency. 2014-10-04 01:54:31 +01:00
systick.c stmhal: Make pyb.[u]delay use systick with IRQs, busy loop otherwise. 2014-11-30 21:23:25 +00:00
systick.h stmhal: Make pyb.[u]delay use systick with IRQs, busy loop otherwise. 2014-11-30 21:23:25 +00: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 stream: Convert .ioctl() to take fixed number of args. 2014-11-17 00:16:14 +02:00
uart.h stmhal: Overhaul UART class to use read/write, and improve it. 2014-10-21 22:15:20 +01:00
usb.c stmhal: Add USB_VCP.setinterrupt method, to disable CTRL-C. 2014-11-29 15:23:21 +00:00
usb.h stmhal: Reduce coupling between USB driver and readline. 2014-11-27 16:58:31 +00:00
usbd_cdc_interface.c stmhal: Add USB_VCP.setinterrupt method, to disable CTRL-C. 2014-11-29 15:23:21 +00:00
usbd_cdc_interface.h stmhal: Add ioctl to USB_VCP object, so it works with select. 2014-10-31 00:12:02 +00: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.h stmhal: Change USB PID when in CDC+HID mode. 2014-10-25 22:55:07 +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_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