diff options
author | Fabio Utzig <utzig@utzig.org> | 2019-07-27 16:15:21 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-27 16:15:21 -0300 |
commit | 62161f8106b99a705d0f7ce59c4e4f3e9249aad5 (patch) | |
tree | 99f39594a929a32401ba58872805fb0047d0a9ae /os/hal/ports/NRF5/LLD/TWIv1/hal_i2c_lld.h | |
parent | 9abc320aa536698bfe04a158a282ea3cf7daea90 (diff) | |
parent | b5332141f06b23c5708adba6b356746e54be665e (diff) | |
download | ChibiOS-Contrib-62161f8106b99a705d0f7ce59c4e4f3e9249aad5.tar.gz ChibiOS-Contrib-62161f8106b99a705d0f7ce59c4e4f3e9249aad5.tar.bz2 ChibiOS-Contrib-62161f8106b99a705d0f7ce59c4e4f3e9249aad5.zip |
Merge pull request #192 from fabio-d/nrf-i2c-pullup
NRF51/NRF52: Added support for internal I2C pull-ups
Diffstat (limited to 'os/hal/ports/NRF5/LLD/TWIv1/hal_i2c_lld.h')
-rw-r--r-- | os/hal/ports/NRF5/LLD/TWIv1/hal_i2c_lld.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/ports/NRF5/LLD/TWIv1/hal_i2c_lld.h b/os/hal/ports/NRF5/LLD/TWIv1/hal_i2c_lld.h index 7a4050b..f126983 100644 --- a/os/hal/ports/NRF5/LLD/TWIv1/hal_i2c_lld.h +++ b/os/hal/ports/NRF5/LLD/TWIv1/hal_i2c_lld.h @@ -121,6 +121,10 @@ typedef struct { uint8_t scl_pad;
/* @brief Pad number for SDA */
uint8_t sda_pad;
+ /* @brief Whether to use the internal pull-up for SCL */
+ bool scl_pullup;
+ /* @brief Whether to use the internal pull-up for SDA */
+ bool sda_pullup;
} I2CConfig;
|