 |
NHS31xx SW API
|
29 #ifndef __I2CBBM_DFT_H_ 30 #define __I2CBBM_DFT_H_ 44 #if (!defined(I2CBBM_MAX_CLK_STRETCH)) 45 #define I2CBBM_MAX_CLK_STRETCH 100 52 #if (!defined(I2CBBM_CLK_PIN)) 53 #define I2CBBM_CLK_PIN IOCON_PIO0_4 60 #if (!defined(I2CBBM_DAT_PIN)) 61 #define I2CBBM_DAT_PIN IOCON_PIO0_5 75 #if !I2CBBM_PULLUP_COUNT && !defined(I2CBBM_PULLUPS) 80 #define I2CBBM_PULLUP_COUNT 0 85 #define I2CBBM_PULLUPS { -1 } 86 #elif I2CBBM_PULLUP_COUNT && defined(I2CBBM_PULLUPS) 89 #error Both I2CBBM_PULLUP_COUNT and I2CBBM_PULLUPS must be both defined or undefined. 90 #error Define I2CBBM_PULLUPS as an array of type IOCON_PIN_T and size I2CBBM_PULLUP_COUNT, 91 #error For example: #define I2CBBM_PULLUP_COUNT 3 and #define I2CBBM_PULLUPS = {IOCON_PIO0_x, IOCON_PIO0_y, IOCON_PIO0_z} 104 #if (!defined(I2CBBM_PULSE_WIDTH)) 105 #define I2CBBM_PULSE_WIDTH 1 113 #if !defined(I2CBBM_DEFAULT_I2C_ADDRESS) 114 #define I2CBBM_DEFAULT_I2C_ADDRESS 0x7F 124 #if !defined(I2CBBM_SYSTEM_CLOCK_DIVIDER) 125 #define I2CBBM_SYSTEM_CLOCK_DIVIDER 4