danicampora
e4404fbef0
cc3200: Unmount all user file systems after a soft reset.
9 years ago
Damien George
40274fec9c
lib/pyexec: Move header pyexec.h from stmhal directory.
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
f4decdc4a3
cc3200: Switch from HAL_Delay() to mp_hal_delay_ms().
9 years ago
Daniel Campora
eb9a3ec654
cc3200: Disable uheapq and uhashlib.
Those two are rarely used features and better to have the extra heap.
9 years ago
Daniel Campora
37a2015cc5
tests/wipy: Add machine module tests.
9 years ago
Daniel Campora
c92e6a45eb
cc3200: Rename pyb module to machine.
9 years ago
Daniel Campora
ef369249cb
cc3200: Implement support for os.dupterm().
9 years ago
Daniel Campora
57fa14b5be
cc3200: New WLAN API including test.
9 years ago
Daniel Campora
dbdcb58d64
cc3200: New irq API, affects all classes that provide the irq method.
9 years ago
Daniel Campora
dffa9f6da6
cc3200: New SD and RTC API plus os and time modules' extensions.
9 years ago
Daniel Campora
4d7fa05b43
cc3200: Improve Pin and UART implementation.
Deassign pins af before assigning. Make uart.any() return the
correct value everytime, this requires interrupts to be always
enabled.
9 years ago
Daniel Campora
f91f212d9f
cc3200: New UART API plus related test.
9 years ago
Daniel Campora
d5e256486e
cc3200: Re-work Pin class according to the new API.
Also add relevant test.
9 years ago
Daniel Campora
e3f8777ee8
cc3200: Implement new Pin API.
9 years ago
Daniel Campora
11d21081b4
cc3200: Rework SD API. Increase heap to avoid malloc failures.
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
aa58c7ec74
cc3200: Append last 2 bytes of the MAC address to the default SSID.
9 years ago
Daniel Campora
f738424403
cc3200: Remove superflous assignment since the result is not used.
9 years ago
Daniel Campora
753a8e8bc4
cc3200: Create /flash/cert folder if it doesn't exist.
9 years ago
Daniel Campora
e955089da0
cc3200: Implement new OTA mechanism with 2 firmware update slots.
9 years ago
Daniel Campora
5685b565c3
cc3200: Create /flash/sys and /flash/lib directories while booting.
9 years ago
Daniel Campora
a3acaa000c
cc3200: Add antenna selection feature to WLAN.
10 years ago
Daniel Campora
d07de2d307
cc3200: Move the STDIO UART pin configuration to mpconfigboard.h.
10 years ago
Daniel Campora
95f19b4542
cc3200: Remove duplicated checks for boot.py and main.py existency.
10 years ago
Daniel Campora
ed56b0baba
cc3200: Finally unlock the full wake on WLAN feature set.
10 years ago
Daniel Campora
e800db562f
cc3200: Add uhashlib. Supports SHA1 and SHA256.
10 years ago
Daniel Campora
8e611e8414
cc3200: Add Timer module. Supports free running, PWM and capture modes.
10 years ago
Daniel Campora
f54bdecff2
cc3200: Implement Sleep.wake_reason()
10 years ago
Daniel Campora
6f218d7472
cc3200: Move wlan_init0() to the boot section.
This one creates a semaphore, therefore it must be executed only
after a hard reset (or when coming out of hibernation).
10 years ago
Damien George
259eaab9a9
cc3200: Clean up and reduce use/include of std.h.
10 years ago
Daniel Campora
6e25d955f4
cc3200: Enable long filename support in FatFS.
This has implications all over the place. I have to admit that
you can instantly see that usability improves, but it costs 3K.
At the same time I took the oportunity to rename the '/SFLASH'
drive to '/flash' which improves compatibility with the pyboard.
10 years ago
Daniel Campora
18bd51707c
cc3200: Enable the stdio UART for the LaunchXL only.
10 years ago
Daniel Campora
c7acfc90b9
cc3200: Enable pull-ups for the STDIO UART pins.
10 years ago
Daniel Campora
b9d850227d
cc3200: Add WLAN AP specific settings for each board.
10 years ago
Daniel Campora
d460a30711
cc3200: Add specific version file for the CC3200 port.
Current version has been numbered as 0.9.0 since Timers/PWM support
is still missing.
10 years ago
Daniel Campora
2d717ad97a
cc3200: Add callback support to the UART for RX interrupts.
10 years ago
Daniel Campora
26d230419c
cc3200: Add GPIO25 to the pins list of the WiPy and the WiPy-SD.
This allows to properly initialize the system led and add it
to the sleep module so that it can be restored when resuming
from suspended mode.
10 years ago
Daniel Campora
e15f8198bc
cc3200: Keep WLAN enabled during the soft reset.
10 years ago
danicampora
59f6831336
cc3200: Reduce soft reset time. WLAN is not reinit, just reenabled.
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
f8ee88bbe0
cc3200: Move server methods from WLAN to the network module.
10 years ago
danicampora
0e96d1b3f1
cc3200: Add parameter to wlan_stop() for custom timeout values.
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
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
c7fabe1f3e
cc3200: Remove unneeded code from modwlan and optimize startup time.
These changes also help reduce the hibernate wake-up time to 1s.
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
73aee8da54
cc3200: Merge ExtInt class into Pin class.
Also add another method to change the pin's interrupt mode
on the fly.
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