Damien George
eef4f13a33
cc3200: Add basic threading capabilities.
Can create a new thread and run it. Does not use the GIL at this point.
9 years ago
Damien George
9aaf888b42
cc3200: Add __get_BASEPRI and __set_BASEPRI inline function definitions.
9 years ago
danicampora
f67d06194f
cc3200: Fix SPI clock divider calculation.
9 years ago
Damien George
731f359292
all: Add py/mphal.h and use it in all ports.
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.
9 years ago
Paul Sokolovsky
9b12bc788f
cc3200: Switch from HAL_GetTick() to mp_hal_ticks_ms().
9 years ago
Paul Sokolovsky
f4decdc4a3
cc3200: Switch from HAL_Delay() to mp_hal_delay_ms().
9 years ago
danicampora
fca3308cc3
cc3200: Improvements to terminal duplication.
9 years ago
Daniel Campora
ef369249cb
cc3200: Implement support for os.dupterm().
9 years ago
Daniel Campora
dbdcb58d64
cc3200: New irq API, affects all classes that provide the irq method.
9 years ago
Daniel Campora
42054c3cad
cc3200: Add mphal error to raise hardware related exceptions.
9 years ago
Daniel Campora
2673374d18
cc3200: Refactor PRCM special user bits implementation.
9 years ago
Daniel Campora
9220dc466a
cc3200: Correct udelay us to ticks calculation.
9 years ago
Daniel Campora
d18ced9cdd
cc3200: Use alternative HAL_Delay also when interrupts are disabled.
9 years ago
Daniel Campora
fa655ce196
cc3200: Improve interrupt handling and fix bug in HAL_Delay().
9 years ago
Daniel Campora
a3acaa000c
cc3200: Add antenna selection feature to WLAN.
10 years ago
danicampora
cd9bc14c8f
cc3200: Add SPI module.
Only MASTER mode is supported. Transfer width is configurable to
8, 16 or 32 bits.
10 years ago
danicampora
6de1b39368
cc3200: Make peripheral objects static.
This prevents duplication of objects in the sleep list. Also helps
with reducing the code size by ~100 bytes.
10 years ago
danicampora
ed20ac56f7
cc3200: Fix bug in RTC msec register access functions.
10 years ago
danicampora
0d0646d915
cc3200: Update HAL to SDK release version 1.1.0.
10 years ago
danicampora
2c103d5200
cc3200: Rewrite the PRCM RTC functionality methods.
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.
10 years ago
danicampora
2ae17def52
cc3200: Clean up linker scripts and startup file.
10 years ago
danicampora
9e44383e3f
cc3200: Add power management framework. Add mpcallback class.
Supports suspend and hibernate modes. Waking is possible throug GPIO
and WLAN.
The mpcallback class is generic and can be reused by other classes.
10 years ago
danicampora
26cbc91373
cc3200: Place functions only used while booting in a special section.
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.
10 years ago
danicampora
02fda44a30
cc3200: Combine and disable sections in startup_gcc.c to reduce size.
10 years ago
danicampora
f3661d4100
cc3200: Change PRCM_PeriphRegs_t fields to unsigned char.
This helps saving ~300 bytes. Thanks to dpgeorge.
10 years ago
danicampora
11aa6ba456
cc3200: Add WDT functionality as part of the pyb module.
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.
10 years ago
danicampora
33ddb566a7
cc3200: Remove dependencies from FreeRTOS.
Use the simplelink wrappers instead. This is one step further
towards having a single module for the cc3200 and the cc3100.
10 years ago
danicampora
c020109cfa
cc3200: Add SD module and disable SD card support for the LAUNCHXL.
10 years ago
danicampora
6b21c3fdd6
cc3200: Refactor UART and I2C object creation.
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.
10 years ago
danicampora
e1dfc44178
cc3200: Disable FreeRTOS asserts. Optimize more files if BTYPE=debug.
10 years ago
danicampora
99f3f6b5de
cc3200: Add I2C module. Only master mode is currently supported.
10 years ago
Damien George
ccf45a4283
cc3200: Get bootloader compiling with changes to HAL.
10 years ago
Damien George
0b32e50365
stmhal: Make pybstdio usable by other ports, and use it.
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.
10 years ago
danicampora
8785645a95
cc3200: Add cc3200 port of MicroPython.
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.
10 years ago