2018.03.14.01

SET_I2C_BUS_SPEED in settings file; set I2C bus speed to help address I2C I/O time impact serial port performance
This commit is contained in:
Anthony Good 2018-03-14 12:17:40 -04:00
parent 02c2aec064
commit 9bf5fa1c33
6 changed files with 21 additions and 1 deletions

View File

@ -368,6 +368,9 @@
2018.03.11.01
GPS performance tweak - now ignoring gps_data_available and reading all data available on GPS port
2018.03.14.01
SET_I2C_BUS_SPEED in settings file; set I2C bus speed to help address I2C I/O time impact serial port performance
All library files should be placed in directories likes \sketchbook\libraries\library1\ , \sketchbook\libraries\library2\ , etc.
Anything rotator_*.* should be in the ino directory!
@ -378,7 +381,7 @@
*/
#define CODE_VERSION "2018.03.11.01"
#define CODE_VERSION "2018.03.14.01"
#include <avr/pgmspace.h>
#include <EEPROM.h>
@ -7436,6 +7439,11 @@ void initialize_peripherals(){
ethernetserver0.begin();
#endif //FEATURE_ETHERNET
#ifdef SET_I2C_BUS_SPEED
TWBR = ((F_CPU / SET_I2C_BUS_SPEED) - 16) / 2;
#endif
} /* initialize_peripherals */

View File

@ -336,4 +336,6 @@ You can tweak these, but read the online documentation!
#define AUDIBLE_ALERT_AT_AZ_TARGET 1
#define AUDIBLE_ALERT_AT_EL_TARGET 1
//#define SET_I2C_BUS_SPEED 800000L // Can set up to 800 kHz, depending on devices. 800000L = 800 khz, 400000L = 400 khz. Default is 100 khz

View File

@ -325,3 +325,6 @@ You can tweak these, but read the online documentation!
#define AUDIBLE_ALERT_AT_STARTUP 1
#define AUDIBLE_ALERT_AT_AZ_TARGET 1
#define AUDIBLE_ALERT_AT_EL_TARGET 1
//#define SET_I2C_BUS_SPEED 800000L // Can set up to 800 kHz, depending on devices. 800000L = 800 khz, 400000L = 400 khz. Default is 100 khz

View File

@ -326,3 +326,5 @@ You can tweak these, but read the online documentation!
#define AUDIBLE_ALERT_AT_AZ_TARGET 1
#define AUDIBLE_ALERT_AT_EL_TARGET 1
//#define SET_I2C_BUS_SPEED 800000L // Can set up to 800 kHz, depending on devices. 800000L = 800 khz, 400000L = 400 khz. Default is 100 khz

View File

@ -346,6 +346,8 @@ You can tweak these, but read the online documentation!
#define AUDIBLE_ALERT_AT_AZ_TARGET 1
#define AUDIBLE_ALERT_AT_EL_TARGET
//#define SET_I2C_BUS_SPEED 800000L // Can set up to 800 kHz, depending on devices. 800000L = 800 khz, 400000L = 400 khz. Default is 100 khz
// ######## ######## ###### ########
// ## ## ## ## ##

View File

@ -327,4 +327,7 @@ You can tweak these, but read the online documentation!
#define AUDIBLE_ALERT_AT_STARTUP 1
#define AUDIBLE_ALERT_AT_AZ_TARGET 1
#define AUDIBLE_ALERT_AT_EL_TARGET 1
//#define SET_I2C_BUS_SPEED 800000L // Can set up to 800 kHz, depending on devices. 800000L = 800 khz, 400000L = 400 khz. Default is 100 khz