Damien George
c3f64d9799
py: Change qstr_* functions to use size_t as the type for str len arg.
9 years ago
danicampora
056cb288d9
cc3200: Remove includes of rom.h (must be included via rom_map.h).
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
Daniel Campora
06d93b36f9
cc3200: Correct safe boot level 1 blinking period.
9 years ago
Daniel Campora
c0c07fb1b6
cc3200: Don't clear the WDT special bit in the bootloader.
9 years ago
Daniel Campora
7da2fdc3cd
cc3200: On the first boot, always make AP ssid='wipy-wlan'.
On the first boot don't add the MAC address, this is to speed up
factory testing.
9 years ago
Daniel Campora
2673374d18
cc3200: Refactor PRCM special user bits implementation.
9 years ago
Daniel Campora
31f6a6fa70
cc3200: Enable bootloader safe boot on latest firmware.
The first safe boot level executes the latest firmware but skips
'main.py' and 'boot.py'.
9 years ago
Daniel Campora
e955089da0
cc3200: Implement new OTA mechanism with 2 firmware update slots.
9 years ago
Daniel Campora
9220dc466a
cc3200: Correct udelay us to ticks calculation.
9 years ago
Daniel Campora
491c321720
cc3200: Re-config antenna selection when waking from suspended mode.
10 years ago
Daniel Campora
a3acaa000c
cc3200: Add antenna selection feature to WLAN.
10 years ago
Daniel Campora
e800db562f
cc3200: Add uhashlib. Supports SHA1 and SHA256.
10 years ago
Daniel Campora
e282884e54
cc3200: When requesting safe boot, blink the led 3 times, not 4.
10 years ago
Damien George
259eaab9a9
cc3200: Clean up and reduce use/include of std.h.
10 years ago
Daniel Campora
2cd247e819
cc3200: Clean up bootloader makefile and remove superflous assert.
10 years ago
Damien George
a86d40ccd4
cc3200: Get bootloader compiling with latest overhaul of printf code.
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
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
0475de1350
cc3200: Make WDT and HeartBeat constant objects on their own right.
10 years ago
danicampora
7a074a14ce
cc3200: Implement safe boot pin and system led behaviour.
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.
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
Damien George
3611c1de14
drivers/cc3100: Remove dependence on debug.h.
10 years ago
danicampora
5d2344d009
cc3200: Change safe-boot pin to GPIO28.
10 years ago
danicampora
2b899b6708
cc3200: Remove asserts from sl_Stop() and reduce timeout to 250ms.
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