mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Fix clang-format issues
This commit is contained in:
@@ -121,9 +121,7 @@ void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void unstick_I2C() {
|
void unstick_I2C() {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
uint8_t getButtonA() { return HAL_GPIO_ReadPin(KEY_A_GPIO_Port, KEY_A_Pin) == GPIO_PIN_RESET ? 1 : 0; }
|
uint8_t getButtonA() { return HAL_GPIO_ReadPin(KEY_A_GPIO_Port, KEY_A_Pin) == GPIO_PIN_RESET ? 1 : 0; }
|
||||||
uint8_t getButtonB() { return HAL_GPIO_ReadPin(KEY_B_GPIO_Port, KEY_B_Pin) == GPIO_PIN_RESET ? 1 : 0; }
|
uint8_t getButtonB() { return HAL_GPIO_ReadPin(KEY_B_GPIO_Port, KEY_B_Pin) == GPIO_PIN_RESET ? 1 : 0; }
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
extern int32_t powerSupplyWattageLimit;
|
extern int32_t powerSupplyWattageLimit;
|
||||||
|
|
||||||
uint8_t I2C_PORT = 2;
|
uint8_t I2C_PORT = 2;
|
||||||
|
|
||||||
fs2711_state_t FS2711::state;
|
fs2711_state_t FS2711::state;
|
||||||
|
|
||||||
void i2c_write(uint8_t addr, uint8_t data) {
|
void i2c_write(uint8_t addr, uint8_t data) {
|
||||||
@@ -46,7 +47,7 @@ bool i2c_probe(uint8_t addr) {
|
|||||||
I2CBB1::probe(addr);
|
I2CBB1::probe(addr);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t FS2711::detect_i2c_bus_num() {
|
uint8_t FS2711::detect_i2c_bus_num() {
|
||||||
if (I2CBB2::probe(FS2711_ADDR)) {
|
if (I2CBB2::probe(FS2711_ADDR)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user