Damien George
01dd7804b8
ports: Make new ports/ sub-directory and move all ports there.
This is to keep the top-level directory clean, to make it clear what is
core and what is a port, and to allow the repository to grow with new ports
in a sustainable way.
7 years ago
Damien George
4ec803a42a
all: Make static dicts use mp_rom_map_elem_t type and MP_ROM_xxx macros.
7 years ago
Alexander Steffen
55f33240f3
all: Use the name MicroPython consistently in comments
There were several different spellings of MicroPython present in comments,
when there should be only one.
7 years ago
Damien George
22a6344ebe
cc3200: When raising OSError's use MP_Exxx as arg instead of a string.
8 years ago
Paul Sokolovsky
eac22e29a5
all: Consistently update signatures of .make_new and .call methods.
Otherwise, they serve reoccurring source of copy-paste mistakes and
breaking nanbox build.
8 years ago
Damien George
50ddaafa6a
cc3200: Use mp_raise_XXX helper functions to reduce code size.
Reduces code size by 632 bytes.
8 years ago
Damien George
5b3f0b7f39
py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*.
The first argument to the type.make_new method is naturally a uPy type,
and all uses of this argument cast it directly to a pointer to a type
structure. So it makes sense to just have it a pointer to a type from
the very beginning (and a const pointer at that). This patch makes
such a change, and removes all unnecessary casting to/from mp_obj_t.
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
dffa9f6da6
cc3200: New SD and RTC API plus os and time modules' extensions.
9 years ago
Daniel Campora
41f6948545
cc3200: New WDT API.
9 years ago
Daniel Campora
6ff2d54347
cc3200: Small renaming in wdt functions for the sake of consistency.
9 years ago
Daniel Campora
071d47fa3b
cc3200: Only kick the WDT if it's actually running.
10 years ago
Daniel Campora
a3cf4ea2f6
cc3200: Do not kick the watchdog inside the idle task.
10 years ago
Daniel Campora
8096be089e
cc3200: Add make_new method to the WDT.
10 years ago
Daniel Campora
5a0c5f8fea
cc3200: Use the WDT stall feature in debug mode only.
10 years ago
Daniel Campora
6545336206
cc3200: Make the WDT aware of the servers sleep/wake state.
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
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