2751440193
* Scripts: add flipper lib, migrate ob to flipper lib, update ob.data * Makefile: speedup build with phony target for .d files * FuriHal,U8G2: full MGG display support and ERC contrast tuning. * Desktop: fix dolphin rename artifact. * Scripts: port otp.py to flipper scripting lib. * Scripts: add wipe and core1 flashing to flash.py, remove obsolete shell scripts * Scripts: replace core1 flashing script with global makefile. * Scripts: final touches and migration to python. Root Makefile for everything.
22 lines
438 B
C
22 lines
438 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();
|
|
furi_hal_version_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);
|
|
}
|