aboutsummaryrefslogtreecommitdiff
path: root/cc3200/mpconfigport.h
AgeCommit message (Collapse)Author
2017-09-06ports: Make new ports/ sub-directory and move all ports there.Damien George
This is to keep the top-level directory clean, to make it clear what is core and what is a port, and to allow the repository to grow with new ports in a sustainable way.
2017-09-04cc3200: Enable micropython.kbd_intr() methodRobert HH
2017-08-21all: Make static dicts use mp_rom_map_elem_t type and MP_ROM_xxx macros.Damien George
2017-07-31all: Use the name MicroPython consistently in commentsAlexander Steffen
There were several different spellings of MicroPython present in comments, when there should be only one.
2017-07-18all: Unify header guard usage.Alexander Steffen
The code conventions suggest using header guards, but do not define how those should look like and instead point to existing files. However, not all existing files follow the same scheme, sometimes omitting header guards altogether, sometimes using non-standard names, making it easy to accidentally pick a "wrong" example. This commit ensures that all header files of the MicroPython project (that were not simply copied from somewhere else) follow the same pattern, that was already present in the majority of files, especially in the py folder. The rules are as follows. Naming convention: * start with the words MICROPY_INCLUDED * contain the full path to the file * replace special characters with _ In addition, there are no empty lines before #ifndef, between #ifndef and one empty line before #endif. #endif is followed by a comment containing the name of the guard macro. py/grammar.h cannot use header guards by design, since it has to be included multiple times in a single C file. Several other files also do not need header guards as they are only used internally and guaranteed to be included only once: * MICROPY_MPHALPORT_H * mpconfigboard.h * mpconfigport.h * mpthreadport.h * pin_defs_*.h * qstrdefs*.h
2017-06-01ports: Convert from using stmhal's input() to core provided version.Damien George
2017-04-01all: Move BYTES_PER_WORD definition from ports to py/mpconfig.hDamien George
It can still be overwritten by a port in mpconfigport.h but for almost all cases one can use the provided default.
2017-02-22cc3200: Remove socket.timeout class, use OSError(ETIMEDOUT) instead.Damien George
socket.timeout is a subclass of OSError, and using the latter is more efficient than having a dedicated class. The argument of OSError is ETIMEDOUT so the error can be distinguished from other kinds of OSErrors. This follows how the esp8266 port does it.
2017-02-22cc3200: Enable uerrno module with short, custom list of error codes.Damien George
Since we recently replaced the OSError string messages with simple error codes, having the uerrno module gets back some user friendly error messages. The total code size (after removing strings, replacing with uerrno module) is decreased.
2017-02-22cc3200: Convert to using uPy internal errno numbers.Damien George
2017-02-06cc3200: Refactor "ticks" functions to use common extmod implementation.Damien George
The port now uses the common mp_utime_ticks_{ms,us,cpu,add,diff} functions from extmod/utime_mphal.c. The mp_utime_sleep_XXX functions are still cc3200-specific because they handle the GIL differently to the ones in extmod. The files misc/mpsystick.[ch] have been removed because they contain 2 unused functions, and the other remaining function is renamed to mp_hal_ticks_us and moved to hal/cc3200_hal.c.
2017-01-30extmod/vfs_fat: Remove MICROPY_FATFS_OO config option.Damien George
Everyone should now be using the new ooFatFs library. The old one is no longer supported and will be removed.
2017-01-30cc3200: Convert to use new VFS sub-system and new ooFatFs library.Damien George
2017-01-22cc3200: Convert to use builtin help function.Damien George
2016-12-02extmod/moduselect: Use configurable EVENT_POLL_HOOK instead of WFI.Damien George
To make moduselect be usable by any port.
2016-11-21cc3200: Update for moduselect moved to extmod/.Paul Sokolovsky
2016-11-16py: Factor out persistent-code reader into separate files.Damien George
Implementations of persistent-code reader are provided for POSIX systems and systems using FatFS. Macros to use these are MICROPY_READER_POSIX and MICROPY_READER_FATFS respectively. If an alternative implementation is needed then a port can define the function mp_reader_new_file.
2016-10-18cc3200: Enable loading of precompiled .mpy files.Damien George
Adds 1072 bytes to the code size.
2016-08-15ports: Remove typedef of machine_ptr_t, it's no longer needed.Damien George
This type was used only for the typedef of mp_obj_t, which is now defined by the object representation. So we can now remove this unused typedef, to simplify the mpconfigport.h file.
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: Enable the GIL.Damien George
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-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-02-15cc3200: Fix breakage after VfsFat refactor.Paul Sokolovsky
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-11-08cc3200: FatFS configuration moved to the library folder.Alex March
Port specific settinigs defined in mpconfigport. FreeRTOS and semphr headers added to define SemaphoreHandle_t for the SYNC_T.
2015-10-31all: Add py/mphal.h and use it in all ports.Damien George
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.
2015-10-21cc3200: Enable "all special methods" configuration option.danicampora
2015-10-21cc3200: Enable REPL autoindent.danicampora
2015-10-19cc3200: Create wipy module, remove HeartBeat class.danicampora
The heartbeat is now controllable via a single function within the wipy module.
2015-09-27cc3200: Disable uheapq and uhashlib.Daniel Campora
Those two are rarely used features and better to have the extra heap.
2015-09-27cc3200: Rename pyb module to machine.Daniel Campora
2015-09-27cc3200: Implement support for os.dupterm().Daniel Campora
2015-09-27cc3200: New WLAN API including test.Daniel Campora
2015-09-27cc3200: New irq API, affects all classes that provide the irq method.Daniel Campora
2015-09-21cc3200: New SD and RTC API plus os and time modules' extensions.Daniel Campora
2015-09-10cc3200: Disable some uPy features in debug mode to help code fit.Daniel Campora
2015-09-10cc3200: New UART API plus related test.Daniel Campora
2015-07-30cc3200: Switch to 1 byte hash for QSTRs.Daniel Campora
2015-07-10cc3200: Add struct weak link for ustruct.Daniel Campora
2015-07-02cc3200: Add modussl, ssl sockets subclassed from normal sockets.Daniel Campora
Stream methods were added to normal sockets as in the unix port.
2015-07-02cc3200: Add socket.timeout and socket.error exceptions.Daniel Campora
2015-06-28cc3200: Enable more features to improve compatibility with stmhal.Daniel Campora
2015-05-22cc3200: Finally unlock the full wake on WLAN feature set.Daniel Campora
2015-05-22cc3200: Add own ubinascii module.Daniel Campora
The reason to have our owm ubinascii module is so that later we can add crc32 support using the hardware engine.
2015-05-20cc3200: Add uhashlib. Supports SHA1 and SHA256.Daniel Campora
2015-05-20cc3200: Disable UCTYPES and enable ARRAY_SLICE_ASSIGN.Daniel Campora
2015-05-17cc3200: Disable WLAN.urn() by default.Daniel Campora
Can be enabled by defining MICROPY_PORT_WLAN_URN=1 in mpconfigport.h.