mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-22 05:14:46 -07:00
21 lines
409 B
C
21 lines
409 B
C
#include <furi-hal.h>
|
|
#include <stm32wbxx_ll_utils.h>
|
|
|
|
void furi_hal_init() {
|
|
furi_hal_i2c_init();
|
|
furi_hal_light_init();
|
|
furi_hal_spi_init();
|
|
}
|
|
|
|
void delay(float milliseconds) {
|
|
LL_mDelay((uint32_t)milliseconds);
|
|
}
|
|
|
|
void delay_us(float microseconds) {
|
|
microseconds = microseconds / 1000;
|
|
if(microseconds < 1) {
|
|
microseconds = 1;
|
|
}
|
|
LL_mDelay((uint32_t)microseconds);
|
|
}
|