2021-09-10 12:19:02 +10:00
|
|
|
#include <furi-hal.h>
|
2021-10-17 23:34:36 +03:00
|
|
|
#include <stm32wbxx_ll_utils.h>
|
2021-09-10 12:19:02 +10:00
|
|
|
|
|
|
|
void furi_hal_init() {
|
|
|
|
furi_hal_i2c_init();
|
|
|
|
furi_hal_light_init();
|
|
|
|
furi_hal_spi_init();
|
2021-10-21 15:24:34 +03:00
|
|
|
furi_hal_version_init();
|
2021-10-17 23:34:36 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|