h/f: compilation hangs when Oryx code is disabled
Some checks failed
Build firmware / build-firmware (default) (push) Has been cancelled
Build firmware / build-firmware (oryx) (push) Has been cancelled

This commit is contained in:
Florian Didron
2025-05-27 08:42:37 +07:00
parent 6172b4cb3a
commit f820dbb048
2 changed files with 25 additions and 0 deletions

View File

@@ -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")

View File

@@ -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")