mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-01-09 15:12:33 +00:00
h/f: compilation hangs when Oryx code is disabled
This commit is contained in:
@@ -19,6 +19,19 @@
|
||||
#include "i2c_master.h"
|
||||
#include "moonlander.h"
|
||||
#include "mcp23018.h"
|
||||
#ifndef ORYX_CONFIGURATOR
|
||||
// TODO: move this to a zsa community module once we adopt qmk25 100%.
|
||||
#include "i2c_master.h"
|
||||
|
||||
#ifndef I2C_DRIVER
|
||||
# define I2C_DRIVER I2CD1
|
||||
#endif
|
||||
void i2c_reset(void) {
|
||||
i2cStop(&I2C_DRIVER);
|
||||
chThdSleepMilliseconds(10);
|
||||
i2c_init();
|
||||
}
|
||||
#endif
|
||||
|
||||
#pragma GCC push_options
|
||||
#pragma GCC optimize("-O3")
|
||||
|
||||
@@ -5,7 +5,19 @@
|
||||
#include <stdint.h>
|
||||
#include "voyager.h"
|
||||
#include "mcp23018.h"
|
||||
#ifndef ORYX_CONFIGURATOR
|
||||
// TODO: move this to a zsa community module once we adopt qmk25 100%.
|
||||
#include "i2c_master.h"
|
||||
|
||||
#ifndef I2C_DRIVER
|
||||
# define I2C_DRIVER I2CD1
|
||||
#endif
|
||||
void i2c_reset(void) {
|
||||
i2cStop(&I2C_DRIVER);
|
||||
chThdSleepMilliseconds(10);
|
||||
i2c_init();
|
||||
}
|
||||
#endif
|
||||
#pragma GCC push_options
|
||||
#pragma GCC optimize("-O3")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user