diff options
author | Fabio D'Urso <fabiodurso@hotmail.it> | 2019-07-22 12:30:11 +0200 |
---|---|---|
committer | Fabio D'Urso <fabiodurso@hotmail.it> | 2019-07-22 12:35:38 +0200 |
commit | b5332141f06b23c5708adba6b356746e54be665e (patch) | |
tree | 99f39594a929a32401ba58872805fb0047d0a9ae /os/hal/ports/NRF5/LLD/TWIv1/hal_i2c_lld.h | |
parent | 9abc320aa536698bfe04a158a282ea3cf7daea90 (diff) | |
download | ChibiOS-Contrib-b5332141f06b23c5708adba6b356746e54be665e.tar.gz ChibiOS-Contrib-b5332141f06b23c5708adba6b356746e54be665e.tar.bz2 ChibiOS-Contrib-b5332141f06b23c5708adba6b356746e54be665e.zip |
NRF5: 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;
|