micropython/ports
Damien George e120c00c95 stm32/modmachine: Only enable machine.I2C if hardware I2C is enabled.
Prior to this change, if a board did not define any hardware I2C pins, via
MICROPY_HW_I2Cx_SCL, then machine.I2C would alias to machine.SoftI2C.

That doesn't really make sense, and SoftI2C should always be used if there
is no hardware implementation.  So this commit makes it so that machine.I2C
is only available if at least one set of I2C hardware pins are defined via
the MICROPY_HW_I2Cx_SCL/SDA macros.

For all boards that define at least one set of I2C hardware pins (which is
most of them) this commit is a no-op.  The only boards that change are:
LEGO_HUB_NO6, LEGO_HUB_NO7, STM32H7B3I_DK.

Signed-off-by: Damien George <damien@micropython.org>
2023-11-30 16:11:11 +11:00
..
bare-arm shared/libc/string0: Don't deref args for n==0 case. 2023-11-07 16:01:50 +11:00
cc3200 {cc3200,nrf}/boards/make-pins.py: Add a note about tools/boardgen.py. 2023-11-03 14:18:54 +11:00
embed
esp32 esp32/esp32_rmt: Fix RMT looping. 2023-11-23 12:21:28 +11:00
esp8266 esp8266/machine_spi: Rename machine_hspi to machine_spi. 2023-11-30 15:58:56 +11:00
mimxrt mimxrt/boards/OLIMEX_RT1010: Adjust the UART pin assignment. 2023-11-09 13:41:44 +11:00
minimal py/builtinevex: Handle invalid filenames for execfile. 2023-10-12 15:17:59 +11:00
nrf nrf: Use MICROPY_PY_MACHINE_SPI instead of MICROPY_PY_MACHINE_HW_SPI. 2023-11-30 16:10:10 +11:00
pic16bit ports: Remove SRC_QSTR_AUTO_DEPS from all ports' Makefiles. 2023-11-03 14:04:17 +11:00
powerpc py/builtinevex: Handle invalid filenames for execfile. 2023-10-12 15:17:59 +11:00
qemu-arm tools/tinytest-codegen.py: Externalise tests list. 2023-11-07 15:53:27 +11:00
renesas-ra shared/runtime/softtimer: Generalise soft_timer to work without SysTick. 2023-11-29 16:17:12 +11:00
rp2 rp2/cyw43_configport: Implement cyw43_delay_ms as mp_hal_delay_ms. 2023-11-29 16:25:28 +11:00
samd shared/runtime/softtimer: Generalise soft_timer to work without SysTick. 2023-11-29 16:17:12 +11:00
stm32 stm32/modmachine: Only enable machine.I2C if hardware I2C is enabled. 2023-11-30 16:11:11 +11:00
unix py/misc: Change sizeof to offsetof for variable-length alloc. 2023-11-03 16:03:18 +11:00
webassembly py/builtinevex: Handle invalid filenames for execfile. 2023-10-12 15:17:59 +11:00
windows windows: Use the MicroPython logo as application icon. 2023-11-07 17:22:52 +11:00
zephyr extmod/modmachine: Consolidate mem, i2c and spi headers to modmachine.h. 2023-10-26 17:40:22 +11:00