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:
@@ -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
|
||||
};
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#define BOOTLOADER_TAG 0x6766636B
|
||||
#define BOOTLOADER_TIMEOUT_MS 100
|
||||
#define CLOCK_FLAG_HIGH_SPEED_MODE 0x01
|
||||
|
||||
// Typedefs:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user