summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* esp8266: Implement UART.read functionality.Damien George2016-04-21
|
* esp8266: Add uart_rx_wait and uart_rx_char functions.Damien George2016-04-21
|
* stmhal: L4: Add support for external interrupts/events.Tobias Badertscher2016-04-21
| | | | | | | | The L4 MCU supports 40 Events/IRQs lines of the type configurable and direct. But this L4 port only supports configurable line types which are already supported by uPy. For details see page 330 of RM0351, Rev 1. The USB_FS_WAKUP event is a direct type and there is no support for it.
* stmhal: L4: Modify flash.c and storage.c to support L4 MCU.Tobias Badertscher2016-04-21
| | | | | The way to lookup the flash sector now uses a much simpler table for all MCUs.
* stmhal: L4: Modify mphalport to support L4 MCU.Tobias Badertscher2016-04-21
| | | | | | | __GPIOI_CLK_ENABLE is defined in hal/l4/inc/Legacy/stm32_hal_legacy.h as __HAL_RCC_GPIOI_CLK_ENABLE, and that latter macro is not defined anywhere else (because the L4 does not have port GPIOI). So the test for GPIOI is needed, along with the test for the CLK_ENABLE macro.
* ACKNOWLEDGEMENTS: Add list of 842 backers from the ESP8266 campaign.Damien George2016-04-21
|
* docs/esp8266: Add info about using deep-sleep mode to quickref.Damien George2016-04-21
|
* esp8266: Implement basic deep-sleep capabilities.Damien George2016-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use the machine.deepsleep() function to enter the sleep mode. Use the RTC to configure the alarm to wake the device. Basic use is the following: import machine # configure RTC's ALARM0 to wake device from deep sleep rtc = machine.RTC() rtc.irq(trigger=rtc.ALARM0, wake=machine.DEEPSLEEP) # do other things # ... # set ALARM0's alarm to wake after 10 seconds rtc.alarm(rtc.ALARM0, 10000) # enter deep-sleep state (system is reset upon waking) machine.deepsleep() To detect if the system woke from a deep sleep use: if machine.reset_cause() == machine.DEEPSLEEP_RESET: print('woke from deep sleep')
* docs/esp8266/general: Start "General information" for esp8266.Paul Sokolovsky2016-04-21
|
* docs/topindex.html: esp8266: Enable quickref/general on the main page.Paul Sokolovsky2016-04-21
|
* esp8266/modnetwork: .config(): Add "hidden ESSID" param.Paul Sokolovsky2016-04-21
|
* esp8266/scripts/flashbdev: Correct bootloader flash size to match real size.Paul Sokolovsky2016-04-20
| | | | | | | | | Flash size as seen by vendor SDK doesn't depend on real size, but rather on a particular value in firmware header, as put there by flash tool. That means it's user responsibility to know what flash size a particular device has, and specify correct parameters during flashing. That's not end user friendly however, so we try to make it "flash and play" by detecting real size vs from-header size mismatch, and correct the header accordingly.
* esp8266/scripts/_boot: Print notice when initial setup is executed.Paul Sokolovsky2016-04-20
|
* esp8266/scripts/flashbdev: Disable debug output/checks.Paul Sokolovsky2016-04-20
|
* esp8266/modnetwork: .config(): Add "channel" param.Paul Sokolovsky2016-04-20
|
* py: Divide "split" and "cat" phases of qstr extraction for better efficiency.Paul Sokolovsky2016-04-19
| | | | | | | | | E.g. for stmhal, accumulated preprocessed output may grow large due to bloated vendor headers, and then reprocessing tens of megabytes on each build make take couple of seconds on fast hardware (=> potentially dozens of seconds on slow hardware). So instead, split once after each change, and only cat repetitively (guaranteed to be fast, as there're thousands of lines involved at most).
* py/makeqstrdefs.py: Process only CPP line-numbering info.Paul Sokolovsky2016-04-19
| | | | Not stuff like "#pragma", etc.
* py/mkrules.mk: Fix Bashism.Paul Sokolovsky2016-04-19
|
* py/mkrules.mk: Cleanup command passed to shell.Paul Sokolovsky2016-04-19
|
* py/mkrules.mk: Try to detect and emulate make -B behavior for qstr extraction.Paul Sokolovsky2016-04-19
| | | | | | If make -B is run, the rule is run with $? empty. Extract fron all file in this case. But this gets fragile, really "make clean" should be used instead with such build complexity.
* stmhal: Update Makefile dependencies.Paul Sokolovsky2016-04-19
|
* unix: Make sure build dir exists before accessing it for freezing upip.Paul Sokolovsky2016-04-19
|
* py: Rework QSTR extraction to work in simple and obvious way.Paul Sokolovsky2016-04-19
| | | | | | | | | | | | When there're C files to be (re)compiled, they're all passed first to preprocessor. QSTR references are extracted from preprocessed output and split per original C file. Then all available qstr files (including those generated previously) are catenated together. Only if the resulting content has changed, the output file is written (causing almost global rebuild to pick up potentially renumbered qstr's). Otherwise, it's not updated to not cause spurious rebuilds. Related make rules are split to minimize amount of commands executed in the interim case (when some C files were updated, but no qstrs were changed).
* lib/utils/pyexec: Condition-out GC calls from pyexec.Colin Hogben2016-04-19
| | | | | | | | | A port which uses lib/utils/pyexec.c but which does not enable garbage collection should not need to implement the gc_collect function. This patch also moves the gc_collect call to after printing the qstr info. Since qstrs cannot be collected it should not make any difference to the printed statistics.
* README: Explicitly point to required dependencies section.Paul Sokolovsky2016-04-18
|
* esp8266/scripts: Don't try to create filesystem on 512KB devices or less.Paul Sokolovsky2016-04-18
| | | | There's no space for it.
* esp8266/modesp: Add flash_size() function.Paul Sokolovsky2016-04-18
| | | | | Returns FlashROM size in bytes from vendor SDK's point of view, not physical size.
* esp8266/scripts/flashbdev: Use all available space in 1MB FlashROM for FS.Paul Sokolovsky2016-04-18
|
* esp8266/modesp: Allow esp.deepsleep to take 2nd arg for RF wake opt.Damien George2016-04-17
|
* esp8266/README.md: Update feature list for current state of affairs.Paul Sokolovsky2016-04-17
|
* esp8266/README.md: Typo fix.Paul Sokolovsky2016-04-17
|
* esp8266/esp_mphal: Protect dupterm_task_handler() from recursive exec.Paul Sokolovsky2016-04-17
|
* esp8266/moduos: Add dupterm_notify() function.Paul Sokolovsky2016-04-17
| | | | | Should be called to notify that current dupterm object has more input data to read.
* extmod/modlwip: Add ability to run callback on "recv" and "accept" events.Paul Sokolovsky2016-04-17
| | | | | | To use: .setsockopt(SOL_SOCKET, 20, lambda sock: print(sock)). There's a single underlying callback slot. For normal sockets, it serves as data received callback, for listening sockets - connection arrived callback.
* docs/machine: reset_cause() has been implemented for esp8266.Paul Sokolovsky2016-04-17
|
* py/mkenv.mk: Optimize Python startup type during make process.Paul Sokolovsky2016-04-17
| | | | By skipping loading site.py, etc.
* py/frozenmod: Pass the source name of the frozen module to the lexer.Damien George2016-04-17
| | | | | This allows for better error messages, since the name of the file (sans .py) can now be printed when an exception occurs within a frozen script.
* stmhal: Fix machine.unique_id() function to work for all MCUs.Damien George2016-04-17
|
* stmhal: L4: Modify timer.c to support L4 MCU.Tobias Badertscher2016-04-17
|
* stmhal: L4: Modify rtc.c to support L4 MCU.Tobias Badertscher2016-04-17
|
* stmhal: L4: Modify usbd_conf.c to support L4 MCU.Damien George2016-04-17
| | | | | Original patch was authored by Tobias Badertscher / @tobbad, but it was reworked to split UART edits from USB edits.
* stmhal: L4: Modify uart.c to support L4 MCU.Damien George2016-04-17
| | | | | | | L4 does not have UART6, and has similar registers to the F7. Original patch was authored by Tobias Badertscher / @tobbad, but it was reworked to split UART edits from USB edits.
* extmod/modlwip: lwip_tcp_receive(): Full error handling.Paul Sokolovsky2016-04-17
|
* extmod/modlwip: lwip_tcp_send(): Full error handling.Paul Sokolovsky2016-04-17
|
* stmhal: L4: Modify adc.c to add support for STM32L4 series.Tobias Badertscher2016-04-16
|
* stmhal: L4: Add line to Makefile for building L4 series.Tobias Badertscher2016-04-16
|
* stmhal: L4: Add board definition files for STM32L476DISC.Tobias Badertscher2016-04-16
|
* stmhal: Update HALCOMMITS due to change to hal.Damien George2016-04-16
|
* stmhal: L4: Adapt UART HAL to avoid 64-bit integer division.Tobias Badertscher2016-04-16
| | | | | | 64-bit integer division brings a dependency on library functions. It is avoided here by dividing fck and baud by a common divisior. The error is the better (1/(2*0x300)) as with 64 bit division (1/(0x300)).
* stmhal: L4: Add basic STM32L4xx HAL files.Tobias Badertscher2016-04-16
| | | | | | These files come from STM32Cube_FW_L4_V1.3.0, with Windows line endings converted to unix. Only basic HAL files are added. In addition the QSPI support is included to support later external QSPI flash as mass storage.