mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-23 05:24:46 -07:00
Api Symbols: replace asserts with checks
merge ofw commit
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include <stm32wbxx_ll_comp.h>
|
||||
#include <stm32wbxx_ll_pwr.h>
|
||||
|
||||
static uint32_t furi_hal_gpio_invalid_argument_crash() {
|
||||
static uint32_t furi_hal_gpio_invalid_argument_crash(void) {
|
||||
furi_crash("Invalid argument");
|
||||
return 0;
|
||||
}
|
||||
@@ -194,8 +194,8 @@ void furi_hal_gpio_init_ex(
|
||||
}
|
||||
|
||||
void furi_hal_gpio_add_int_callback(const GpioPin* gpio, GpioExtiCallback cb, void* ctx) {
|
||||
furi_assert(gpio);
|
||||
furi_assert(cb);
|
||||
furi_check(gpio);
|
||||
furi_check(cb);
|
||||
|
||||
FURI_CRITICAL_ENTER();
|
||||
|
||||
@@ -211,7 +211,7 @@ void furi_hal_gpio_add_int_callback(const GpioPin* gpio, GpioExtiCallback cb, vo
|
||||
}
|
||||
|
||||
void furi_hal_gpio_enable_int_callback(const GpioPin* gpio) {
|
||||
furi_assert(gpio);
|
||||
furi_check(gpio);
|
||||
|
||||
FURI_CRITICAL_ENTER();
|
||||
|
||||
@@ -222,7 +222,7 @@ void furi_hal_gpio_enable_int_callback(const GpioPin* gpio) {
|
||||
}
|
||||
|
||||
void furi_hal_gpio_disable_int_callback(const GpioPin* gpio) {
|
||||
furi_assert(gpio);
|
||||
furi_check(gpio);
|
||||
|
||||
FURI_CRITICAL_ENTER();
|
||||
|
||||
@@ -234,7 +234,7 @@ void furi_hal_gpio_disable_int_callback(const GpioPin* gpio) {
|
||||
}
|
||||
|
||||
void furi_hal_gpio_remove_int_callback(const GpioPin* gpio) {
|
||||
furi_assert(gpio);
|
||||
furi_check(gpio);
|
||||
|
||||
FURI_CRITICAL_ENTER();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user