Add BOOTLOADER_TAG

This commit is contained in:
László Monda
2017-09-22 01:17:41 +02:00
parent e7362a057c
commit cc3208a947
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
#include "i2c_addresses.h" #include "i2c_addresses.h"
__attribute__((used, section(".BootloaderConfig"))) const bootloader_config_t BootloaderConfig = { __attribute__((used, section(".BootloaderConfig"))) const bootloader_config_t BootloaderConfig = {
.tag = 0x6766636B, // Magic Number .tag = BOOTLOADER_TAG,
.enabledPeripherals = ENABLE_PERIPHERAL_I2C, .enabledPeripherals = ENABLE_PERIPHERAL_I2C,
.i2cSlaveAddress = I2C_ADDRESS_LEFT_KEYBOARD_HALF_BOOTLOADER, .i2cSlaveAddress = I2C_ADDRESS_LEFT_KEYBOARD_HALF_BOOTLOADER,
.peripheralDetectionTimeoutMs = 300, .peripheralDetectionTimeoutMs = 300,
+2
View File
@@ -8,6 +8,8 @@
// Macros: // Macros:
#define BOOTLOADER_TAG 0x6766636B
// bits for bootloader_config_t.enabledPeripherals // bits for bootloader_config_t.enabledPeripherals
#define ENABLE_PERIPHERAL_UART (1<<0) #define ENABLE_PERIPHERAL_UART (1<<0)
#define ENABLE_PERIPHERAL_I2C (1<<1) #define ENABLE_PERIPHERAL_I2C (1<<1)