Paul Sokolovsky
2eb844e0b4
ports: Rename "machine" module to "umachine".
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 .
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
danicampora
d8137178bb
cc3200: Create wipy module, remove HeartBeat class.
The heartbeat is now controllable via a single function within the
wipy module.
9 years ago
danicampora
4542643025
docs: Update all WiPy docs to reflect the new API.
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
dffa9f6da6
cc3200: New SD and RTC API plus os and time modules' extensions.
9 years ago
Daniel Campora
f837d166e5
cc3200: Fix typo in modpyb.
9 years ago
Daniel Campora
ea5061e409
cc3200: Improve callback API.
Rename "wakes" param to "wake_from" and make "value" an object
instead of an integer.
9 years ago
Daniel Campora
95cc1ff542
cc3200: Re-name pyb.hard_reset() to pyb.reset().
10 years ago
Daniel Campora
6148f8b7d2
cc3200: Add contructor to the HeartBeat class.
10 years ago
Daniel Campora
622f241317
cc3200: Rename pyb.reset() to pyb.hard_reset() and add pyb.unique_id().
10 years ago
Daniel Campora
8096be089e
cc3200: Add make_new method to the WDT.
10 years ago
Daniel Campora
fca3493442
cc3200: Add make_new method to the RTC, like in stmhal.
10 years ago
Daniel Campora
ec1f0e7551
cc3200: Use MCU reset instead of SOC reset.
I have seen the CC3200 hanging a couple of times, and according to TI
itself the SOC reset is not reliable, which explains my observations.
10 years ago
Daniel Campora
3cb804de26
cc3200: Remove NIC abstraction layer.
That layer is nice, but the CC3200 doesn't need it and getting rid of
it saves ~200 bytes, which are more than welcome.
10 years ago
Daniel Campora
8e611e8414
cc3200: Add Timer module. Supports free running, PWM and capture modes.
10 years ago
Damien George
95f53461c2
py: Replace py-version.sh with makeversionhdr.py, written in Python.
Also rename py-version.h to mpversion.h for consistency with mpconfig.h.
10 years ago
Daniel Campora
f81684141e
cc3200: Implement os.uname() to get details of the OS and hardware.
10 years ago
Damien George
259eaab9a9
cc3200: Clean up and reduce use/include of std.h.
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
3f42f32648
cc3200: Remove duplicated code from moduos.
Error reporting is also changed from detailed to terse, as with the
rest of the CC3200's modules. All this combined saves ~200 bytes.
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
0e96d1b3f1
cc3200: Add parameter to wlan_stop() for custom timeout values.
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
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
0475de1350
cc3200: Make WDT and HeartBeat constant objects on their own right.
10 years ago
danicampora
d01060241a
cc3200: Add heartbeat signal on system led.
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
70b3160871
cc3200: Introduce MICROPY_PORT_HAS_TELNET and MICROPY_PORT_HAS_FTP.
These definitions help on making modwlan.c usable by other ports
with the CC3100.
10 years ago
danicampora
88b7f52ebb
cc3200: Replace WLAN.get_ip() with WLAN.ifconfig().
Also change other methods' names to make them consistent.
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
Damien George
4a23a01945
cc3200: Add explicit py/ path-prefix for py includes.
This is how it should be, so one knows exactly where the includes are
coming from.
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
868fa82ea4
cc3200: Add ADC module.
10 years ago
danicampora
99f3f6b5de
cc3200: Add I2C module. Only master mode is currently supported.
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
53716fcc3e
cc3200: Rename GPIO module to Pin.
This change helps making the cc3200 port API a bit closer to stmhal.
The ramaining differences are due to the specific hardware details
of each chip. One feature that has been deliberately disabled is the
possibility to add custom names and custom pin mappings. Those
features are nice and convenient, but in this port, code size is a
major concern.
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