summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/hal
Commit message (Collapse)AuthorAge
* all: Use the name MicroPython consistently in commentsAlexander Steffen2017-07-31
| | | | | There were several different spellings of MicroPython present in comments, when there should be only one.
* all: Unify header guard usage.Alexander Steffen2017-07-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* cc3200: Refactor "ticks" functions to use common extmod implementation.Damien George2017-02-06
| | | | | | | | | | | | 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.
* cc3200: Use mp_raise_XXX helper functions to reduce code size.Damien George2016-10-18
| | | | Reduces code size by 632 bytes.
* 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: Add __get_BASEPRI and __set_BASEPRI inline function definitions.Damien George2015-12-04
|
* cc3200: Fix SPI clock divider calculation.danicampora2015-11-01
|
* 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: Switch from HAL_GetTick() to mp_hal_ticks_ms().Paul Sokolovsky2015-10-29
|
* cc3200: Switch from HAL_Delay() to mp_hal_delay_ms().Paul Sokolovsky2015-10-29
|
* cc3200: Improvements to terminal duplication.danicampora2015-10-17
|
* cc3200: Implement support for os.dupterm().Daniel Campora2015-09-27
|
* cc3200: New irq API, affects all classes that provide the irq method.Daniel Campora2015-09-27
|
* cc3200: Add mphal error to raise hardware related exceptions.Daniel Campora2015-09-10
|
* cc3200: Refactor PRCM special user bits implementation.Daniel Campora2015-08-09
|
* cc3200: Correct udelay us to ticks calculation.Daniel Campora2015-07-08
|
* cc3200: Use alternative HAL_Delay also when interrupts are disabled.Daniel Campora2015-07-08
|
* cc3200: Improve interrupt handling and fix bug in HAL_Delay().Daniel Campora2015-07-07
|
* cc3200: Add antenna selection feature to WLAN.Daniel Campora2015-06-07
|
* cc3200: Add SPI module.danicampora2015-03-21
| | | | | Only MASTER mode is supported. Transfer width is configurable to 8, 16 or 32 bits.
* cc3200: Make peripheral objects static.danicampora2015-03-17
| | | | | This prevents duplication of objects in the sleep list. Also helps with reducing the code size by ~100 bytes.
* cc3200: Fix bug in RTC msec register access functions.danicampora2015-03-16
|
* cc3200: Update HAL to SDK release version 1.1.0.danicampora2015-03-16
|
* cc3200: Rewrite the PRCM RTC functionality methods.danicampora2015-03-14
| | | | | | | | This allows to use the On-Chip retention registers for both the RTC and to share notification flags between the bootloader and the application. The two flags being shared right now are the "safe boot" request and the WDT reset cause. we still have 2 more bits free for future use.
* cc3200: Clean up linker scripts and startup file.danicampora2015-03-14
|
* cc3200: Add power management framework. Add mpcallback class.danicampora2015-03-11
| | | | | | Supports suspend and hibernate modes. Waking is possible throug GPIO and WLAN. The mpcallback class is generic and can be reused by other classes.
* 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: Combine and disable sections in startup_gcc.c to reduce size.danicampora2015-03-11
|
* cc3200: Change PRCM_PeriphRegs_t fields to unsigned char.danicampora2015-02-25
| | | | This helps saving ~300 bytes. Thanks to dpgeorge.
* 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 SD module and disable SD card support for the LAUNCHXL.danicampora2015-02-21
|
* cc3200: Refactor UART and I2C object creation.danicampora2015-02-20
| | | | | | | I2C objects can be freed by the GC and a __del__ method is provided in order to de-init the peripheral prior to being garbage collected. UART objects are now added to a local list and this list is now part of the VM_STATE.
* cc3200: Disable FreeRTOS asserts. Optimize more files if BTYPE=debug.danicampora2015-02-20
|
* cc3200: Add I2C module. Only master mode is currently supported.danicampora2015-02-13
|
* cc3200: Get bootloader compiling with changes to HAL.Damien George2015-02-13
|
* stmhal: Make pybstdio usable by other ports, and use it.Damien George2015-02-13
| | | | | Now all ports can use pybstdio.c to provide sys.stdin/stdout/stderr, so long as they implement mp_hal_stdin_* and mp_hal_stdout_* functions.
* 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.