| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
Following best-practice use of the const feature, to make it compatible
with Python.
|
| |
|
|
|
|
|
|
| |
Size 64 was incorrect and will lead to stack corruption. Size 88 was
verified empirically. Also, allow to skip defining it if MD5_CTX
preprocessor macro is already defined (to avoid header conflict).
|
| |
|
|
|
|
|
|
|
| |
ESP8266 SDK2.0 fixes (at least, I can't reproduce it) an infamous bug
with crash during scan. 36K seams to be a safe value based on a download
test (test_dl.py), over 1GB was downloaded. More testing is needed, but
let's have other people participate by committing it now.
|
|
|
|
|
|
|
|
|
| |
There is no automatic reconnect after wlan.active(False);
wlan.active(True). This commit provide the possibility to run
wlan.connect() without parameter, to reconnect to the previously
connected AP.
resolve #2493
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
The NeoPixel class now handles 4 bytes-per-pixel LEDs (extra byte is
intensity) and arbitrary byte ordering. APA102 class is now derived from
NeoPixel to reduce code size and support fill() operation.
|
|
|
|
|
|
|
|
| |
To build, "make 512k".
Disabled are FatFs support (no space for filesystem), Python functionality
related to files, btree module, and recently enabled features. With all
this, there's only one free FlashROM page.
|
|
|
|
|
|
|
|
| |
As we're looking towards adding OTA support, calculation of a FlashROM
area which can be used for filesystem (etc.) may become complex, so
introduce C function for that. So far it just hardcodes current value,
0x90000. In the future the function may be extended (and renamed) to
return the size of area too.
|
| |
|
| |
|
|
|
|
|
|
|
| |
In order to have more fine-grained control over how builtin functions are
constructed, the MP_DECLARE_CONST_FUN_OBJ macros are made more specific,
with suffix of _0, _1, _2, _3, _VAR, _VAR_BETEEN or _KW. These names now
match the MP_DEFINE_CONST_FUN_OBJ macros.
|
|
|
|
|
| |
Now frozen modules generation handled fully by py.mk and available for reuse
by any port.
|
|
|
|
|
| |
Concurrent WebREPL connections were never supported, now actually check
for this.
|
|
|
|
|
| |
It's probably not strictly needed so far, but serves as an example of
MP_FASTCODE use and may be helpful in the future.
|
|
|
|
|
|
| |
It can be used in the following manner:
void MP_FASTCODE(foo)(int arg) { ... }
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
SDK 2.0.0 goes into boot loop if a firmware is programmed over erased flash,
causing problems with user experience. This change implements behavior
similar to older SDKs': if clean flash is detected, default system
parameters are used.
|
| |
|
| |
|
|
|
|
|
|
| |
As long as a port implement mp_hal_sleep_ms(), mp_hal_ticks_ms(), etc.
functions, it can just use standard implementations of utime.sleel_ms(),
utime.ticks_ms(), etc. Python-level functions.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
To save iRAM.
|
| |
|
|
|
|
|
|
|
| |
Added options to make deploy so it can be used for ESP8266 boards with
other flash configurations. For example NodeMCU DEVKIT V1.0 can now use:
$ make FLASH_MODE=dio FLASH_SIZE=32m deploy
|
|
|
|
|
| |
SHA1 can only be supported if ussl module is compiled in, and it uses
axtls.
|
|
|
|
|
| |
Implementation of machine.RTC.alarm_left(), like described in the
documentation.
|
|
|
|
|
| |
upip will use first non-empty component in sys.path as an install path
(if MICROPYPATH envvar is not set, like it will be for baremetal targets).
|
|
|
|
|
| |
Useful to better understand esp8266 inner workings and compare behavior
in different cases.
|
|
|
|
|
|
|
| |
The delay_half parameter must be specified by the port to set up the
timing of the software SPI. This allows the port to adjust the timing
value to better suit its timing characteristics, as well as provide a
more accurate printing of the baudrate.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
There is no need to take src_len and dest_len arguments. The case of
reading-only with a single output byte (originally src_len=1, dest_len>1)
is now handled by using the output buffer as the input buffer, and using
memset to fill the output byte into this buffer. This simplifies the
implementations of the spi_transfer protocol function.
|
|
|
|
|
| |
Utility functions for keyboard interrupt handling, to be reused across
(baremetal) ports.
|
| |
|
|
|
|
| |
One can instead lookup __name__ in the modules dict to get the value.
|
|
|
|
| |
So now ticks_ms can count up to the full 30 bits. Fixes issue #2412.
|
|
|
|
|
| |
Instead of busy-looping waiting for UART input. Not enabled by default,
needs more testing.
|
| |
|
|
|
|
|
| |
A port now just needs to define FROZEN_DIR var and add $(BUILD)/frozen.c
to SRC_C to support frozen modules.
|
|
|
|
| |
With FROZEN_MPY_DIR.
|