Damien George
f1d91908fa
esp8266/boards: Add manifest_release.py with files for a release.
A release also sets: UART_OS = -1
5 years ago
Jim Mussared
912892b209
esp32: Add missing and necessary newline at EOF for sdkconfig.240mhz.
When these files get concatenated the newline-at-EOF is necessary so that
the start of the next file doesn't join with the end of the previous.
5 years ago
clach04
ffd11486d4
tests/cpydiff: Fix typo in types_bytes_keywords.py doc comments.
5 years ago
Jim Mussared
93bd61ca91
unix: Allow building without a manifest.
5 years ago
Jim Mussared
df7f632fd7
esp8266: Allow building without a manifest.
5 years ago
Jim Mussared
7662501d5b
py/mkrules.mk: Add warning/error for invalid frozen config.
5 years ago
Jim Mussared
8ba963cfa3
tools/makemanifest.py: Eval relative paths w.r.t. current manifest file.
When loading a manifest file, e.g. by include(), it will chdir first to the
directory of that manifest. This means that all file operations within a
manifest are relative to that manifest's location.
As a consequence of this, additional environment variables are needed to
find absolute paths, so the following are added: $(MPY_LIB_DIR),
$(PORT_DIR), $(BOARD_DIR). And rename $(MPY) to $(MPY_DIR) to be
consistent.
Existing manifests are updated to match.
5 years ago
Damien George
12413e92a3
stm32/powerctrlboot: Fix config of systick IRQ priority on F0/L0/WB MCU.
Prior to this commit the systick IRQ priority was set at lowest priority on
F0/L0/WB MCUs, because it was left at the default and never configured.
This commit ensures the priority is configured and sets it to the highest
priority.
5 years ago
Josh Lloyd
8f9e2e325a
py/objtype: Add type.__bases__ attribute.
Enabled as part of MICROPY_CPYTHON_COMPAT.
5 years ago
Josh Lloyd
59c1b7d4b8
esp32/boards: Split out CPU frequency config, make 160MHz the default.
Remove the 240MHz CPU config option from sdkconfig.base and create a new
sdkconfig.240mhz file for those boards that want to use 240MHz on boot.
The default CPU frequency is now 160MHz (was 240MHz), to align with the ESP
IDF and support more boards (eg those with D2WD chips).
Fixes issue #5169 .
5 years ago
Jim Mussared
25a228af7e
examples/bluetooth: Add basic BLE peripheral examples.
Consisting of:
- ble_advertising.py -- helper to generate advertising payload.
- ble_temperature.py -- simple temperature device.
- ble_uart_periperhal.py -- BLE UART wrapper.
- ble_uart_repl.py -- dupterm-compatible uart.
5 years ago
Jim Mussared
ebf8332104
extmod/re1.5: Support escaping within RE classes.
Fixes issues #3178 and #5220 .
Tests are added, including all the cases mentioned in both bugs.
5 years ago
Jeremy Herbert
7a7ee16ccf
esp32/machine_uart: Add ability to invert UART pins.
5 years ago
Damien George
69b238ec63
stm32/accel: Fix Accel.read() method so it does read a byte.
This bug was introduced in a0f7b4c678
5 years ago
Frederic.Pierson
925f244ab3
stm32/boards: Add NADHAT_PYB405 board.
5 years ago
Frederic.Pierson
28062b5108
stm32/accel: Add support for KXTJ3.
5 years ago
Damien George
3105207aff
stm32/accel: Rename MMA I2C macro constants to make it generic.
5 years ago
Damien George
4f2c737b0c
stm32/mpu: Save and restore the IRQ state when configuring MPU.
In case IRQs are already disabled during the MPU configuration.
Fixes issue #5152 .
5 years ago
Damien George
5954387858
drivers/onewire/ds18x20.py: Add support for DS1822 sensor.
DS1822P sensors behave just like the DS18B20 except for the following:
- it has a different family code: 0x22
- it has only the GND and DQ pins connected, it uses parasitic power from
the data line
Contributed by @nebelgrau77 .
5 years ago
Volodymyr Shymanskyy
615d6b3c66
docs/wipy/tutorial: Link Blynk examples to the official library.
6 years ago
Mike Causer
a2c4cb484d
docs: Fix spelling in various parts of the docs.
6 years ago
Mike Causer
5a8f392f09
docs/esp8266: Add ntptime usage to esp8266 quickref.
6 years ago
Peter Hinch
c0b3419261
docs/library: Clarify relation between machine and port-specific mods.
6 years ago
Thiago Paes
5463ab6df6
docs/esp8266/tutorial: Make http_get sample function self contained.
6 years ago
Damien George
d1ed73ca8f
docs/library/bluetooth.rst: Fix typo in HR/UART services example.
5 years ago
iabdalkader
6e4468a2ab
stm32/adc: Fix sampling for internal channels on H7 MCUs.
Set to 810 cycles following HAL examples.
5 years ago
iabdalkader
4cee42d864
stm32/adc: Use IS_CHANNEL_INTERNAL macro to check for internal channels.
5 years ago
iabdalkader
d523a377d1
stm32/adc: Remove unused macro and channel check, and fix spacing.
The call to is_adcx_channel is redundant because the channel is already
checked just before calling adc_init_single in adc_make_new.
5 years ago
iabdalkader
cb2b210d45
stm32/adc: Update ADC driver to work with the new H7 HAL.
Use NB_TO_CHANNEL to map decimal numbers to channel numbers. And use the
correct rank to initialize channels (ADC_REGULAR_RANK_1).
5 years ago
Damien George
ce1de1faf0
esp32: Convert to use FROZEN_MANIFEST to specify frozen code.
All symlinks are removed. boards/manifest.py is used as a default, and can
optionally use boards/manifest_release.py for more scripts.
5 years ago
Damien George
2e90ff7fa8
qemu-arm: Convert to use FROZEN_MANIFEST to specify frozen code.
5 years ago
Damien George
287800d6e1
stm32: Convert to use FROZEN_MANIFEST to specify frozen code.
All symlinks are removed, frozen files are now referenced via
boards/manifest.py.
5 years ago
Damien George
2fd3f2520d
esp8266: Convert to use FROZEN_MANIFEST to specify frozen code.
Removes symlinks in modules directory, all frozen code is now specified by
manifest.py.
5 years ago
Damien George
b1c0355b93
unix: Convert to use FROZEN_MANIFEST to specify frozen code.
Removes symlinks in modules directory, all frozen code is now specified by
manifest.py.
5 years ago
Damien George
e81f538e25
tools: Add mechanism to provide a manifest of frozen files.
This introduces a new build variable FROZEN_MANIFEST which can be set to a
manifest listing (written in Python) that describes the set of files to be
frozen in to the firmware.
5 years ago
Damien George
8e8cfa6f53
tools/make-frozen.py: Allow to run with no directory passed in.
In which case it will just emit empty frozen C definitions.
5 years ago
Damien George
8f7f671236
extmod/modbluetooth: In gap_advertise only accept None to stop adv.
To match the docs, and interval=0 may be used in the future to indicate
something else.
5 years ago
Jim Mussared
36502bdfdc
extmod/modbluetooth: Make gap_disconnect not raise when disconnected.
Previously it raised OSError(MP_ENOTCONN) if the conn_handle was already
disconnected. Now it returns True/False.
5 years ago
Jim Mussared
ea315d7d58
docs/library/bluetooth.rst: Explain how to increase char buffer size.
5 years ago
Jim Mussared
4b2b05718a
esp32: Run NimBLE on the app core.
This prevents issues with concurrent access to the ringbuf.
MICROPY_BEGIN_ATOMIC_SECTION is only atomic to the same core. We could
address this with a mutex, but it's also not safe to call mp_sched_schedule
across cores.
5 years ago
Jim Mussared
423e67d0a0
extmod/modbluetooth: Improve ringbuf handling.
No need to share the irq_data buffer with addresses. Split them into two
separate buffers and manage their max length independently.
5 years ago
Jim Mussared
cb73103f57
extmod/modbluetooth: Fix order of params to IRQ_GATTS_WRITE event.
5 years ago
Jim Mussared
62e3a966fb
docs/library/bluetooth.rst: Clarify gap_advertise adv_data behavior.
Make it clear that the previous adv_data will be reused if it's not set.
And some minor other improvements.
5 years ago
Jim Mussared
ba16a22991
extmod/modbluetooth: Clear gap_advertise payload when data is empty.
Also fix default adv interval to 500ms.
5 years ago
Jim Mussared
418f12c5f5
extmod/modbluetooth: Increase maximum connections from 1 to 4.
This avoids a confusing ENOMEM raised from gap_advertise if there is
currently an active connection. This refers to the static connection
buffer pre-allocated by Nimble (nothing to do with MicroPython heap
memory).
5 years ago
Damien George
f562f94e1c
travis: Use "make submodules" to init required modules for each port.
5 years ago
Damien George
d7a9388fe0
ports: Add new make target "submodules" which inits required modules.
5 years ago
Damien George
3ee71ff314
minimal/frozentest.mpy: Recompile now that mpy format changed.
5 years ago
Damien George
23f0691fdd
py/persistentcode: Make .mpy more compact with qstr directly in prelude.
Instead of encoding 4 zero bytes as placeholders for the simple_name and
source_file qstrs, and storing the qstrs after the bytecode, store the
qstrs at the location of these 4 bytes. This saves 4 bytes per bytecode
function stored in a .mpy file (for example lcd160cr.mpy drops by 232
bytes, 4x 58 functions). And resulting code size is slightly reduced on
ports that use this feature.
5 years ago
Damien George
858e992d2e
tests/run-perfbench.py: Skip complex tests if target doesn't enable it.
5 years ago