Daniel Thompson
cbc0bf6fec
zephyr: Support extra make targets
The two variables, GENERIC_TARGETS and CONFIG_TARGETS come, respectively,
from the the lists shown during "make help" and "make kconfig-help".
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
8 years ago
Daniel Thompson
2ea52cb045
zephyr: Automatically derive ARCH.
Currently to compile for anything that except ARCH=x86 we have to
provide ARCH via the environment or make arguments. We can do better
than that!
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
8 years ago
Paul Sokolovsky
7df9f313c6
zephyr: Switch to microkernel, required for network to work in background.
8 years ago
Paul Sokolovsky
9ad5032164
zephyr: Add zephyr_getchar module to handle console input.
From https://github.com/pfalcon/zephyr_getchar .
8 years ago
Paul Sokolovsky
9d9efc0c5a
zephyr: Initial Zephyr RTOS port, Zephyr part.
8 years ago
Paul Sokolovsky
cff9f02cd7
zephyr: Initial Zephyr RTOS port, MicroPython part.
8 years ago
Paul Sokolovsky
fa5ac678fc
examples/network/http_client*: Use \r\n line-endings in request.
8 years ago
Paul Sokolovsky
3dabaae47d
tests/io/bytesio_ext: Add test for readinto().
8 years ago
Paul Sokolovsky
d22a04d9c4
py/objstringio: Add readinto() method.
Also, drop deprecated (as for MicroPython) readall() method.
8 years ago
Paul Sokolovsky
49e140488d
tests/io/write_ext: Add description comment.
8 years ago
Paul Sokolovsky
3b3612c65b
esp8266: Make neopixel support configurable.
To save iRAM.
8 years ago
Damien George
dc43508cc2
extmod/vfs_fat_file: Use MP_Exxx errno constants.
8 years ago
Damien George
016dba0e98
unix: Use common RAISE_ERRNO macro from mphalport.h.
8 years ago
Damien George
503089ea9d
unix: Use mp_raise_OSError helper function.
8 years ago
Damien George
23a568240d
esp8266: Use mp_raise_OSError helper function.
8 years ago
Damien George
a2bfcbe029
stmhal: Use mp_raise_OSError helper function.
8 years ago
Damien George
e3d29996b3
driver/dht: Use mp_raise_OSError helper function.
8 years ago
Damien George
75af908c0e
extmod: Use mp_raise_OSError helper function.
8 years ago
Damien George
06d0083468
extmod/modlwip: Use mp_raise_OSError helper function.
Reduces esp8266 code size by about 230 bytes.
8 years ago
Damien George
620c4c32bf
extmod/vfs_fat: Use mp_raise_OSError helper function.
8 years ago
Damien George
3a0a771730
py: Add mp_raise_OSError(errno) helper function.
This is an often used code pattern, and its use reduces code size of the
core by about 100 bytes.
8 years ago
dmanso
0363e1d7b5
esp8266: Add FLASH_MODE,FLASH_SIZE options for make deploy target.
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
8 years ago
Alex March
00c1fc6d77
docs/uos: Add uos.statvfs() documentation.
8 years ago
Damien George
82af4d6749
tests: Improve coverage of struct with test for non-compliant behaviour.
8 years ago
Damien George
dffa383b06
py/modstruct: Remove unreachable code, and add comment about CPy diff.
The deleted code is unreachable because calcsize_items guarantees that
num_items corresponds to how many items there are in fmt to unpack.
8 years ago
Alex March
9fdba0e09c
tests/extmod/uzlib: Test adaptive huffman tree for tinflate coverage.
8 years ago
Damien George
056da75a8a
esp8266: Make PY_UHASHLIB_SHA1 config depend on PY_USSL and SSL_AXTLS.
SHA1 can only be supported if ussl module is compiled in, and it uses
axtls.
8 years ago
Damien George
0bb3c7d3b7
stmhal: Enable machine.time_pulse_us() function.
8 years ago
Dave Hylands
c08f50bcf7
stmhal: Disable network and usocket for ESPRUINO_PICO
8 years ago
stijn
7f19b1c3eb
tests: Fix expected output of verbose cmdline test
The output might contain more than one line ending in 5b so properly skip
everything until the next known point.
This fixes test failures in appveyor debug builds.
8 years ago
Damien George
b89ac9db78
stmhal/moduos: Implement total-number-of-blocks field in statvfs.
8 years ago
Damien George
b1537a5752
stmhal/mphalport: Change pin obj type to const pointer, to avoid casts.
8 years ago
puuu
bcf60b43ee
esp8266/modpybrtc.c: Implement machine.RTC.alarm_left()
Implementation of machine.RTC.alarm_left(), like described in the
documentation.
8 years ago
Dave Hylands
7a9c183c20
stmhal: Fix ESPRUINO_PICO by adding ld scripts with correct flash size.
8 years ago
Paul Sokolovsky
cecf6bee97
tools: Upgrade upip to 1.0.
Fully self-hosted release (without fallbacks), and uses stream gzip
decompression (step towards support for limited-heap baremetal systems).
8 years ago
Paul Sokolovsky
161e9f4115
esp8266/main: Put /lib before / in sys.path.
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).
8 years ago
Paul Sokolovsky
52784bf595
esp8266/modmachine: idle(): Return number of CPU cycles spent idling.
Useful to better understand esp8266 inner workings and compare behavior
in different cases.
8 years ago
Alex March
addd1d3db1
tests/extmod/btree1: Checks for put, seq, string print and unsupported binary op.
8 years ago
Pavol Rusnak
99d62c4def
stmhal/usb: Use real packet size (not maximum) in HID receive.
8 years ago
Pavol Rusnak
8f3cf6e6a8
stmhal/usb: Use correct ClassData structure for HID receive.
8 years ago
Philip Potter
eb239b8398
stmhal/usb: Add support to receive USB HID messages from host.
8 years ago
Philip Potter
03de5a13cf
stmhal/usbdev: Add OUT endpoint to HID interface.
8 years ago
Damien George
cd20027f56
tests/run-tests: Disable cmdline/cmd_showbc test on Windows.
Disabled until a proper fix is found.
8 years ago
Dave Hylands
1f433c719b
stmhal: Fix linker map for STM32L476 chips.
In particular, this makes the L4 .isr_vector section 16K in size so it's
the same as the F4/F7 MCUs. The patch also moves the L4 filesystem to
the end of flash, which allows for 512K filesystem on the 1Mb devices
like the STM32L476DISC.
8 years ago
Damien George
bd925b59c3
stmhal/spi: Enable use of fast software SPI.
8 years ago
Damien George
b0eb0d6153
extmod/machine_spi: Add optional support for fast software SPI.
If a port defines MICROPY_PY_MACHINE_SPI_MIN_DELAY then it can use a
faster software SPI loop that does not make calls to the delay_us
function.
8 years ago
Damien George
b932b2dd1f
extmod/machine_spi: Use delay_half, not baudrate, for internal timing.
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.
8 years ago
Damien George
9f1e395c16
stmhal/spi: Use software SPI if no periph id given, even if pins given.
It's simpler to just default to always using software SPI if no specific
peripheral id/name is given. To use hardware SPI users must specify a
hardware peripheral id as the first parameter to the SPI constructor.
8 years ago
Damien George
bd87375202
esp8266/moduos: Move stat/statvfs funcs to sit within #if VFS guard.
8 years ago
Damien George
5deedd6685
stmhal/mphalport: Fix mp_hal_pin_write to use correct pin_mask.
8 years ago