Use I2C_ADDRESS_LEFT_KEYBOARD_HALF_BOOTLOADER and remove redundant comments.
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
#include "i2c_addresses.h"
|
||||||
#include "bootloader.h"
|
#include "bootloader.h"
|
||||||
|
|
||||||
/* bits for enabledPeripherals */
|
/* bits for enabledPeripherals */
|
||||||
@@ -9,12 +10,12 @@
|
|||||||
#define ENABLE_PERIPHERAL_USB_MSC (1<<7)
|
#define ENABLE_PERIPHERAL_USB_MSC (1<<7)
|
||||||
|
|
||||||
__attribute__((used, section(".BootloaderConfig"))) const bootloader_config_t BootloaderConfig = {
|
__attribute__((used, section(".BootloaderConfig"))) const bootloader_config_t BootloaderConfig = {
|
||||||
.tag = 0x6766636B, // Magic Number
|
.tag = 0x6766636B, // Magic Number
|
||||||
.enabledPeripherals = ENABLE_PERIPHERAL_I2C /*0xE2*/, // Enabled Peripheral: I2C
|
.enabledPeripherals = ENABLE_PERIPHERAL_I2C,
|
||||||
.i2cSlaveAddress = 0x10, // Use user-defined I2C address
|
.i2cSlaveAddress = I2C_ADDRESS_LEFT_KEYBOARD_HALF_BOOTLOADER,
|
||||||
.peripheralDetectionTimeoutMs = 300, // Use user-defined timeout (ms)
|
.peripheralDetectionTimeoutMs = 300,
|
||||||
.clockFlags = 0xFF, // Disable High speed mode
|
.clockFlags = 0xFF, // Disable High speed mode
|
||||||
.clockDivider = 0xFF, // Use clock divider (0)
|
.clockDivider = 0xFF, // Use clock divider (0)
|
||||||
};
|
};
|
||||||
|
|
||||||
void JumpToBootloader(void) {
|
void JumpToBootloader(void) {
|
||||||
|
|||||||
Reference in New Issue
Block a user