summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/main.c
Commit message (Collapse)AuthorAge
* cc3200: Shrink the FreeRTOS heap and place TCB+stack in freed location.Damien George2016-06-28
| | | | | | | | | | | | | | | The 16k FreeRTOS heap originally had all TCBs and stacks dynamically allocated within it (plus semaphores and some other things). Now that xTaskCreateStatic is used instead of xTaskCreate, the TCBs and stacks are allocated statically and no longer use any of the FreeRTOS heap. Therefore, the FreeRTOS stack can be shrunk by the amount that has been made static. Furthermore, the TCBs and stack that are now static should be placed in the .rtos_heaps section of RAM because this RAM is treated specially by the bootloader (the bootloader executes from the first 16k of RAM and loads the firmware into the section starting after the 16k). After this patch the FreeRTOS heap (ucHeap) is 7200 bytes. The memory available for the MicroPython heap is 54936 bytes (including GC overhead).
* cc3200: Use xTaskCreateStatic instead of osi_TaskCreate.Damien George2016-06-28
| | | | | | This allows to statically allocate the TCB (thread control block) and thread stack in the BSS segment, reducing the need for dynamic memory allocation.
* cc3200: Add basic threading capabilities.Damien George2016-06-28
| | | | Can create a new thread and run it. Does not use the GIL at this point.
* cc3200: Define our own FreeRTOS heap so it can go in a special segment.Damien George2016-06-28
|
* all: Add py/mphal.h and use it in all ports.Damien George2015-10-31
| | | | | | py/mphal.h contains declarations for generic mp_hal_XXX functions, such as stdio and delay/ticks, which ports should provide definitions for. A port will also provide mphalport.h with further HAL declarations.
* cc3200: Re-config antenna selection when waking from suspended mode.Daniel Campora2015-06-07
|
* cc3200: Add antenna selection feature to WLAN.Daniel Campora2015-06-07
|
* cc3200: Place functions only used while booting in a special section.danicampora2015-03-11
| | | | | | | | | Such functions are never used after MicroPython has started, and they remain in RAM wasting space. Now they are placed in a special section named "boot" which sits just before the heap, allowing us to extend the effective heap area up to the new boot section. Right now, this gives us back ~1K, but in the future, more functions might end up in there as well.
* cc3200: Add heartbeat signal on system led.danicampora2015-02-28
|
* cc3200: Implement safe boot pin and system led behaviour.danicampora2015-02-25
| | | | | | | The safe boot pin, when pulled high during reset rolls back the firmware to the "factory" image and skips execution of 'boot.py' and 'main.py'. This is useful to recover from a crash condition. The system led is used mostly to signal errors.
* cc3200: Add WDT functionality as part of the pyb module.danicampora2015-02-25
| | | | | | Also improve pybsd, and make it save it's pin configuration. This is a necessary step towards supporting the CC3200 low power deep sleep (LPDS) mode.
* cc3200: Remove dependencies from FreeRTOS.danicampora2015-02-22
| | | | | Use the simplelink wrappers instead. This is one step further towards having a single module for the cc3200 and the cc3100.
* cc3200: Add explicit py/ path-prefix for py includes.Damien George2015-02-21
| | | | | This is how it should be, so one knows exactly where the includes are coming from.
* cc3200: Add cc3200 port of MicroPython.danicampora2015-02-06
The port currently implements support for GPIO, RTC, ExtInt and the WiFi subsystem. A small file system is available in the serial flash. A bootloader which makes OTA updates possible, is also part of this initial implementation.