aboutsummaryrefslogtreecommitdiff
path: root/cc3200
AgeCommit message (Collapse)Author
2016-08-02cc3200, teensy: Remove broken malloc/free/realloc macro helpers.Damien George
These macros are broken and are anyway unused on these two ports. If they are ever needed in the future then their implementation can be taken from either stmhal (working macros in mpconfigport.h) or esp8266 (functions).
2016-06-28cc3200: Remove obsolete singleton heart-beat object.Damien George
2016-06-28cc3200: Allow to compile bootloader with threading enabled.Damien George
Threading is not used in the bootloader but the config optios are still enabled so we must exclude including FreeRTOS.h.
2016-06-28cc3200: Shrink the FreeRTOS heap and place TCB+stack in freed location.Damien George
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).
2016-06-28cc3200: Start the simplelink spawn task using the static task creator.Damien George
In VStartSimpleLinkSpawnTask we change xTaskCreate to xTaskCreateStatic so that the task is created using statically allocated memory for the TCB and stack. This means that xTaskCreate function is no longer needed (the static version is now used exclusively).
2016-06-28cc3200: Remove .boot section attribute from osi_TaskCreate function.Damien George
This function is no longer used. Having the .boot section attribute meant that it was included in the firmware regargless of use. Without this attribute the linker can remove the function.
2016-06-28cc3200: In FreeRTOSConfig.h, comment on configSUPPORT_STATIC_ALLOCATION.Damien George
This config variable is now needed regardless of whether threading is enabled or not.
2016-06-28cc3200: Enable the GIL.Damien George
2016-06-28cc3200/mpthreadport: Move mem alloc outside the thread_mutex lock.Damien George
Otherwise there could be a deadlock, with the GC's mutex and thread_mutex.
2016-06-28cc3200/mpthreadport: Scan more root pointers from thread data.Damien George
2016-06-28cc3200/gccollect: Use MP_STATE_THREAD(stack_top) to get top of stack.Damien George
2016-06-28cc3200/mpthreadport: Properly initialise the main thread's data.Damien George
2016-06-28cc3200/mpthreadport: Make mutex statically allocated.Damien George
Reduced the need for the FreeRTOS heap to allocate the mutex.
2016-06-28cc3200: Use xTaskCreateStatic instead of osi_TaskCreate.Damien George
This allows to statically allocate the TCB (thread control block) and thread stack in the BSS segment, reducing the need for dynamic memory allocation.
2016-06-28cc3200: Fix call to new exception to be _msg instead of _arg1.Damien George
2016-06-28py/modthread: Allow to properly set the stack limit of a thread.Damien George
We rely on the port setting and adjusting the stack size so there is enough room to recover from hitting the stack limit.
2016-06-28cc3200: Add basic threading capabilities.Damien George
Can create a new thread and run it. Does not use the GIL at this point.
2016-06-28cc3200: Define our own FreeRTOS heap so it can go in a special segment.Damien George
2016-06-28cc3200: Update FreeRTOS to v9.0.0.Damien George
This is a pristine copy (actually a subset of files) of upstream FreeRTOS v9.0.0. Modifications to the previous version of FreeRTOS (v8.1.2) included addition of __attribute__ ((section (".boot"))) to the following functions: pxPortInitialiseStack prvTaskExitError prvPortStartFirstTask xPortStartScheduler vPortSetupTimerInterrupt xTaskGenericCreate vTaskStartScheduler prvInitialiseTCBVariables prvInitialiseTaskLists prvAllocateTCBAndStack This attribute will need to be reinstated on a case-by-case basis because some of the above functions are now removed/changed.
2016-06-18all: Rename mp_obj_type_t::stream_p to protocol.Paul Sokolovsky
It's now used for more than just stream protocol (e.g. pin protocol), so don't use false names.
2016-05-02stmhal, cc3200: Change i2c.scan() method to scan addresses 0x08-0x77.Damien George
A standard I2C address is 7 bits but addresses 0b0000xxx and 0b1111xxx are reserved. The scan() method is changed to reflect this, along with the docs.
2016-04-25cc3200, stmhal, teensy: Use pyhelp_print_obj function.Colin Hogben
Update the help() implementations in the cc3200, stmhal and teensy ports to use the pyhelp_print_obj function.
2016-04-16py: Add rules for automated extraction of qstrs from sources.Jan Čapek
- add template rule that converts a specified source file into a qstring file - add special rule for generating a central header that contains all extracted/autogenerated strings - defined by QSTR_DEFS_COLLECTED variable. Each platform appends a list of sources that may contain qstrings into a new build variable: SRC_QSTR. Any autogenerated prerequisities are should be appened to SRC_QSTR_AUTO_DEPS variable. - remove most qstrings from py/qstrdefs, keep only qstrings that contain special characters - these cannot be easily detected in the sources without additional annotations - remove most manual qstrdefs, use qstrdef autogen for: py, cc3200, stmhal, teensy, unix, windows, pic16bit: - remove all micropython generic qstrdefs except for the special strings that contain special characters (e.g. /,+,<,> etc.) - remove all port specific qstrdefs except for special strings - append sources for qstr generation in platform makefiles (SRC_QSTR)
2016-04-15py: Declare help, input, open builtins in core.Paul Sokolovsky
These are *defined* per-port, but why redeclare them again and again.
2016-04-13ports: Disable async/await on bare-arm, minimal, pic16bit, cc3200.Damien George
It costs 1188 bytes of code on Thumb 2 archs.
2016-04-06cc3200/mods/modwlan: Include stream.h after recent refactor.Paul Sokolovsky
2016-02-27cc3200: Update WiPy software version to 1.2.0danicampora
2016-02-22cc3200: Rename 'server' class to 'Server' for consistency.danicampora
2016-02-21cc3200: Improve robustness of WLAN during sleep modes.danicampora
2016-02-21cc3200: Fix "debug" build.danicampora
2016-02-21test/wipy: Add Timer class tests.danicampora
2016-02-21cc3200: Simplify the Timer API and correct the documents.danicampora
Make the PWM duty cycle configurable from 0.00 to 100.00 by accepting values from 0 to 10000. Add automatic Pin assignment when operating in PWM mode.
2016-02-21cc3200: Improve robustness of the I2C driver.danicampora
When scanning for devices, try reading then writing. Increase the timeout of the transactions from 10 to 20 ms.
2016-02-21cc3200: Finally fix the Timer class API.danicampora
Properly calculate the period and the prescaler, this now allows to set the PWM frequency down to 5Hz. Make Timer IDs go from 0 to 3. Add the trigger definitions for the channel IRQ.
2016-02-15cc3200: Fix breakage after VfsFat refactor.Paul Sokolovsky
2016-02-07cc3200: Add stmhal/builtin_open.c to build.Paul Sokolovsky
2016-01-11py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*.Damien George
The first argument to the type.make_new method is naturally a uPy type, and all uses of this argument cast it directly to a pointer to a type structure. So it makes sense to just have it a pointer to a type from the very beginning (and a const pointer at that). This patch makes such a change, and removes all unnecessary casting to/from mp_obj_t.
2015-12-18stmhal, cc3200: Actually implement machine -> umachine module weak link.Paul Sokolovsky
2015-12-18ports: Rename "machine" module to "umachine".Paul Sokolovsky
To let unix port implement "machine" functionality on Python level, and keep consistent naming in other ports (baremetal ports will use magic module "symlinking" to still load it on "import machine"). Fixes #1701.
2015-12-04cc3200: Add __get_BASEPRI and __set_BASEPRI inline function definitions.Damien George
2015-11-29cc3200: Correct buffer offset in serial flash diskio module.danicampora
2015-11-29py: Change qstr_* functions to use size_t as the type for str len arg.Damien George
2015-11-18cc3200: Bump version to 1.1.1.danicampora
2015-11-18cc3200/README.md: Correct cc3200's update file name.danicampora
2015-11-18cc3200/appsign.sh: Use md5 if running under Darwin.Gary Ashton-Jones
2015-11-18docs: Update docs for WiPy wlan.connect().Noah
- The link establishment timeout is infinite by default - Fix typo in notes about the auth kwarg
2015-11-16cc3200: Unmount all user file systems after a soft reset.danicampora
2015-11-10lib/utils/printf: Move from stmhal/ .Paul Sokolovsky
This file contains various MicroPython-specific helper functions, so isn't good fit for lib/libc/.
2015-11-09stmhal/moduselect: Expose POLLIN/OUT/ERR/HUP constants.Paul Sokolovsky
This makes select.poll() interface fully compatible with CpYthon. Also, make their numeric values of these options compatible with Linux (and by extension, with iBCS2 standard, which jopefully means compatibility with other Unices too).
2015-11-09lib/pyexec: Move header pyexec.h from stmhal directory.Damien George