X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fcfg_twi.h;h=dbfffafe75b8ad96bebcacd091b1bbdfa114da54;hb=f0cf33e5624b6a45ec583cb05976b706503b2fd4;hp=9bb012cde016d5a85c8c7f025de1b7a02594bebe;hpb=9bde379b39600b3023bc42ea7affdab4edc8cf18;p=bertos.git diff --git a/bertos/cfg/cfg_twi.h b/bertos/cfg/cfg_twi.h index 9bb012cd..dbfffafe 100644 --- a/bertos/cfg/cfg_twi.h +++ b/bertos/cfg/cfg_twi.h @@ -41,7 +41,15 @@ #define CFG_TWI_H /// Comunication frequency -#define CONFIG_TWI_FREQ 1000000 +#define CONFIG_TWI_FREQ 100000UL + +/** + * TWI start timeout. + * For how many milliseconds the twi_start + * should try to get an ACK before returning error. + * + */ +#define CONFIG_TWI_START_TIMEOUT 100 #endif /* CFG_TWI_H */