Add CLOCK_FLAG_HIGH_SPEED_MODE and negate .clockDivider value according to the spec, so that the actual value is easier to read.

This commit is contained in:
László Monda
2017-09-22 01:52:44 +02:00
parent 444e9d58d0
commit 50207a288d
2 changed files with 3 additions and 2 deletions

View File

@@ -6,6 +6,6 @@ __attribute__((used, section(".BootloaderConfig"))) const bootloader_config_t Bo
.enabledPeripherals = EnabledBootloaderPeripherial_I2c,
.i2cSlaveAddress = I2C_ADDRESS_LEFT_KEYBOARD_HALF_BOOTLOADER,
.peripheralDetectionTimeoutMs = BOOTLOADER_TIMEOUT_MS,
.clockFlags = 0xFF, // Disable High speed mode
.clockDivider = 0xFF, // Use clock divider (0)
.clockFlags = CLOCK_FLAG_HIGH_SPEED_MODE,
.clockDivider = ~0
};

View File

@@ -10,6 +10,7 @@
#define BOOTLOADER_TAG 0x6766636B
#define BOOTLOADER_TIMEOUT_MS 100
#define CLOCK_FLAG_HIGH_SPEED_MODE 0x01
// Typedefs: