aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2020-01-24 02:15:29 +0000
committerQMK Bot <hello@qmk.fm>2020-01-24 02:15:29 +0000
commitfe50883c1568b1914fcadbe0c7f029c3f9fd99f4 (patch)
treee72189597e8be880b82a44ce520522a6fdec6099 /tmk_core
parentd13ada11622977bcc0b530212b4405229805016d (diff)
downloadfirmware-fe50883c1568b1914fcadbe0c7f029c3f9fd99f4.tar.gz
firmware-fe50883c1568b1914fcadbe0c7f029c3f9fd99f4.tar.bz2
firmware-fe50883c1568b1914fcadbe0c7f029c3f9fd99f4.zip
format code according to conventions [skip ci]
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/common/arm_atsam/eeprom.c2
-rw-r--r--tmk_core/common/chibios/eeprom_teensy.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/tmk_core/common/arm_atsam/eeprom.c b/tmk_core/common/arm_atsam/eeprom.c
index a69f38282..ccd5d15a5 100644
--- a/tmk_core/common/arm_atsam/eeprom.c
+++ b/tmk_core/common/arm_atsam/eeprom.c
@@ -18,7 +18,7 @@
#ifndef EEPROM_SIZE
# include "eeconfig.h"
-# define EEPROM_SIZE (((EECONFIG_SIZE+3)/4)*4) // based off eeconfig's current usage, aligned to 4-byte sizes, to deal with LTO
+# define EEPROM_SIZE (((EECONFIG_SIZE + 3) / 4) * 4) // based off eeconfig's current usage, aligned to 4-byte sizes, to deal with LTO
#endif
__attribute__((aligned(4))) static uint8_t buffer[EEPROM_SIZE];
diff --git a/tmk_core/common/chibios/eeprom_teensy.c b/tmk_core/common/chibios/eeprom_teensy.c
index 0fab9f73d..d436d0cb9 100644
--- a/tmk_core/common/chibios/eeprom_teensy.c
+++ b/tmk_core/common/chibios/eeprom_teensy.c
@@ -61,7 +61,6 @@
Attempts to modify the EEPROM_SIZE setting may brick your board.
*/
-
// Writing unaligned 16 or 32 bit data is handled automatically when
// this is defined, but at a cost of extra code size. Without this,
// any unaligned write will cause a hard fault exception! If you're
@@ -529,7 +528,7 @@ void eeprom_write_block(const void *buf, void *addr, uint32_t len) {
# ifndef EEPROM_SIZE
# include "eeconfig.h"
-# define EEPROM_SIZE (((EECONFIG_SIZE+3)/4)*4) // based off eeconfig's current usage, aligned to 4-byte sizes, to deal with LTO
+# define EEPROM_SIZE (((EECONFIG_SIZE + 3) / 4) * 4) // based off eeconfig's current usage, aligned to 4-byte sizes, to deal with LTO
# endif
__attribute__((aligned(4))) static uint8_t buffer[EEPROM_SIZE];