Merge remote-tracking branch 'ofw/dev' into mntm-dev

This commit is contained in:
Willy-JL
2024-10-14 23:44:44 +01:00
167 changed files with 6280 additions and 2155 deletions

View File

@@ -746,6 +746,7 @@ Function,+,canvas_draw_str,void,"Canvas*, int32_t, int32_t, const char*"
Function,+,canvas_draw_str_aligned,void,"Canvas*, int32_t, int32_t, Align, Align, const char*"
Function,+,canvas_draw_triangle,void,"Canvas*, int32_t, int32_t, size_t, size_t, CanvasDirection"
Function,+,canvas_draw_xbm,void,"Canvas*, int32_t, int32_t, size_t, size_t, const uint8_t*"
Function,+,canvas_draw_xbm_ex,void,"Canvas*, int32_t, int32_t, size_t, size_t, IconRotation, const uint8_t*"
Function,+,canvas_get_font_params,const CanvasFontParameters*,"const Canvas*, Font"
Function,+,canvas_glyph_width,size_t,"Canvas*, uint16_t"
Function,+,canvas_height,size_t,const Canvas*
@@ -1102,6 +1103,7 @@ Function,-,ftello,off_t,FILE*
Function,-,ftrylockfile,int,FILE*
Function,-,funlockfile,void,FILE*
Function,-,funopen,FILE*,"const void*, int (*)(void*, char*, int), int (*)(void*, const char*, int), fpos_t (*)(void*, fpos_t, int), int (*)(void*)"
Function,-,furi_background,void,
Function,+,furi_delay_ms,void,uint32_t
Function,+,furi_delay_tick,void,uint32_t
Function,+,furi_delay_until_tick,FuriStatus,uint32_t
@@ -1114,6 +1116,7 @@ Function,+,furi_event_flag_set,uint32_t,"FuriEventFlag*, uint32_t"
Function,+,furi_event_flag_wait,uint32_t,"FuriEventFlag*, uint32_t, uint32_t, uint32_t"
Function,+,furi_event_loop_alloc,FuriEventLoop*,
Function,+,furi_event_loop_free,void,FuriEventLoop*
Function,+,furi_event_loop_is_subscribed,_Bool,"FuriEventLoop*, FuriEventLoopObject*"
Function,+,furi_event_loop_pend_callback,void,"FuriEventLoop*, FuriEventLoopPendingCallback, void*"
Function,+,furi_event_loop_run,void,FuriEventLoop*
Function,+,furi_event_loop_stop,void,FuriEventLoop*
@@ -1370,6 +1373,8 @@ Function,-,furi_hal_resources_deinit_early,void,
Function,+,furi_hal_resources_get_ext_pin_number,int32_t,const GpioPin*
Function,-,furi_hal_resources_init,void,
Function,-,furi_hal_resources_init_early,void,
Function,+,furi_hal_resources_pin_by_name,const GpioPinRecord*,const char*
Function,+,furi_hal_resources_pin_by_number,const GpioPinRecord*,uint8_t
Function,-,furi_hal_rtc_deinit_early,void,
Function,+,furi_hal_rtc_get_boot_mode,FuriHalRtcBootMode,
Function,+,furi_hal_rtc_get_datetime,void,DateTime*
@@ -1672,6 +1677,7 @@ Function,+,furi_thread_stdout_write,size_t,"const char*, size_t"
Function,+,furi_thread_suspend,void,FuriThreadId
Function,+,furi_thread_yield,void,
Function,+,furi_timer_alloc,FuriTimer*,"FuriTimerCallback, FuriTimerType, void*"
Function,+,furi_timer_flush,void,
Function,+,furi_timer_free,void,FuriTimer*
Function,+,furi_timer_get_expire_time,uint32_t,FuriTimer*
Function,+,furi_timer_is_running,uint32_t,FuriTimer*
@@ -2684,6 +2690,7 @@ Function,+,text_input_get_validator_callback_context,void*,TextInput*
Function,+,text_input_get_view,View*,TextInput*
Function,+,text_input_reset,void,TextInput*
Function,+,text_input_set_header_text,void,"TextInput*, const char*"
Function,+,text_input_set_minimum_length,void,"TextInput*, size_t"
Function,+,text_input_set_result_callback,void,"TextInput*, TextInputCallback, void*, char*, size_t, _Bool"
Function,+,text_input_set_validator,void,"TextInput*, TextInputValidatorCallback, void*"
Function,-,tgamma,double,double
@@ -2758,6 +2765,7 @@ Function,+,view_allocate_model,void,"View*, ViewModelType, size_t"
Function,+,view_commit_model,void,"View*, _Bool"
Function,+,view_dispatcher_add_view,void,"ViewDispatcher*, uint32_t, View*"
Function,+,view_dispatcher_alloc,ViewDispatcher*,
Function,+,view_dispatcher_alloc_ex,ViewDispatcher*,FuriEventLoop*
Function,+,view_dispatcher_attach_to_gui,void,"ViewDispatcher*, Gui*, ViewDispatcherType"
Function,+,view_dispatcher_enable_queue,void,ViewDispatcher*
Function,+,view_dispatcher_free,void,ViewDispatcher*
1 entry status name type params
746 Function + canvas_draw_str_aligned void Canvas*, int32_t, int32_t, Align, Align, const char*
747 Function + canvas_draw_triangle void Canvas*, int32_t, int32_t, size_t, size_t, CanvasDirection
748 Function + canvas_draw_xbm void Canvas*, int32_t, int32_t, size_t, size_t, const uint8_t*
749 Function + canvas_draw_xbm_ex void Canvas*, int32_t, int32_t, size_t, size_t, IconRotation, const uint8_t*
750 Function + canvas_get_font_params const CanvasFontParameters* const Canvas*, Font
751 Function + canvas_glyph_width size_t Canvas*, uint16_t
752 Function + canvas_height size_t const Canvas*
1103 Function - ftrylockfile int FILE*
1104 Function - funlockfile void FILE*
1105 Function - funopen FILE* const void*, int (*)(void*, char*, int), int (*)(void*, const char*, int), fpos_t (*)(void*, fpos_t, int), int (*)(void*)
1106 Function - furi_background void
1107 Function + furi_delay_ms void uint32_t
1108 Function + furi_delay_tick void uint32_t
1109 Function + furi_delay_until_tick FuriStatus uint32_t
1116 Function + furi_event_flag_wait uint32_t FuriEventFlag*, uint32_t, uint32_t, uint32_t
1117 Function + furi_event_loop_alloc FuriEventLoop*
1118 Function + furi_event_loop_free void FuriEventLoop*
1119 Function + furi_event_loop_is_subscribed _Bool FuriEventLoop*, FuriEventLoopObject*
1120 Function + furi_event_loop_pend_callback void FuriEventLoop*, FuriEventLoopPendingCallback, void*
1121 Function + furi_event_loop_run void FuriEventLoop*
1122 Function + furi_event_loop_stop void FuriEventLoop*
1373 Function + furi_hal_resources_get_ext_pin_number int32_t const GpioPin*
1374 Function - furi_hal_resources_init void
1375 Function - furi_hal_resources_init_early void
1376 Function + furi_hal_resources_pin_by_name const GpioPinRecord* const char*
1377 Function + furi_hal_resources_pin_by_number const GpioPinRecord* uint8_t
1378 Function - furi_hal_rtc_deinit_early void
1379 Function + furi_hal_rtc_get_boot_mode FuriHalRtcBootMode
1380 Function + furi_hal_rtc_get_datetime void DateTime*
1677 Function + furi_thread_suspend void FuriThreadId
1678 Function + furi_thread_yield void
1679 Function + furi_timer_alloc FuriTimer* FuriTimerCallback, FuriTimerType, void*
1680 Function + furi_timer_flush void
1681 Function + furi_timer_free void FuriTimer*
1682 Function + furi_timer_get_expire_time uint32_t FuriTimer*
1683 Function + furi_timer_is_running uint32_t FuriTimer*
2690 Function + text_input_get_view View* TextInput*
2691 Function + text_input_reset void TextInput*
2692 Function + text_input_set_header_text void TextInput*, const char*
2693 Function + text_input_set_minimum_length void TextInput*, size_t
2694 Function + text_input_set_result_callback void TextInput*, TextInputCallback, void*, char*, size_t, _Bool
2695 Function + text_input_set_validator void TextInput*, TextInputValidatorCallback, void*
2696 Function - tgamma double double
2765 Function + view_commit_model void View*, _Bool
2766 Function + view_dispatcher_add_view void ViewDispatcher*, uint32_t, View*
2767 Function + view_dispatcher_alloc ViewDispatcher*
2768 Function + view_dispatcher_alloc_ex ViewDispatcher* FuriEventLoop*
2769 Function + view_dispatcher_attach_to_gui void ViewDispatcher*, Gui*, ViewDispatcherType
2770 Function + view_dispatcher_enable_queue void ViewDispatcher*
2771 Function + view_dispatcher_free void ViewDispatcher*

View File

@@ -354,3 +354,19 @@ int32_t furi_hal_resources_get_ext_pin_number(const GpioPin* gpio) {
}
return -1;
}
const GpioPinRecord* furi_hal_resources_pin_by_name(const char* name) {
for(size_t i = 0; i < gpio_pins_count; i++) {
const GpioPinRecord* record = &gpio_pins[i];
if(strcasecmp(name, record->name) == 0) return record;
}
return NULL;
}
const GpioPinRecord* furi_hal_resources_pin_by_number(uint8_t number) {
for(size_t i = 0; i < gpio_pins_count; i++) {
const GpioPinRecord* record = &gpio_pins[i];
if(record->number == number) return record;
}
return NULL;
}

View File

@@ -121,6 +121,26 @@ void furi_hal_resources_init(void);
*/
int32_t furi_hal_resources_get_ext_pin_number(const GpioPin* gpio);
/**
* @brief Finds a pin by its name
*
* @param name case-insensitive pin name to look for (e.g. `"Pc3"`, `"pA4"`)
*
* @return a pointer to the corresponding `GpioPinRecord` if such a pin exists,
* `NULL` otherwise.
*/
const GpioPinRecord* furi_hal_resources_pin_by_name(const char* name);
/**
* @brief Finds a pin by its number
*
* @param name pin number to look for (e.g. `7`, `4`)
*
* @return a pointer to the corresponding `GpioPinRecord` if such a pin exists,
* `NULL` otherwise.
*/
const GpioPinRecord* furi_hal_resources_pin_by_number(uint8_t number);
#ifdef __cplusplus
}
#endif