diff options
author | Phil Howard <github@gadgetoid.com> | 2025-05-12 11:08:54 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-05-22 00:08:27 +1000 |
commit | 45cb9b4444a7316a137f9c32942bc6c76f904f01 (patch) | |
tree | 2c103bf69d1b14114e5590abd15fa457ca42c130 /tests/basics/subclass_native_str.py | |
parent | 28c8fff6d8f920eb6199cc5db59da1baf1b00843 (diff) | |
download | micropython-45cb9b4444a7316a137f9c32942bc6c76f904f01.tar.gz micropython-45cb9b4444a7316a137f9c32942bc6c76f904f01.zip |
rp2/machine_pin: Fix simulated open drain with more than 32 GPIOs.
Changes are:
- Refactor the open-drain macros, add GPIO_ENABLE/DISABLE_OPEN_DRAIN, and
move them to `mphalport.h`.
- Only use `uint64_t` for the open-drain mask if there are more than 32
GPIOs (saves code size).
- Ensure we're shifting a `uint64_t` by using 1ULL constants.
Signed-off-by: Phil Howard <github@gadgetoid.com>
Diffstat (limited to 'tests/basics/subclass_native_str.py')
0 files changed, 0 insertions, 0 deletions