 b9a766d909
			
		
	
	
		b9a766d909
		
	
	
	
	
		
			
			* Added support for running applications from SD card (FAPs - Flipper Application Packages) * Added plugin_dist target for fbt to build FAPs * All apps of type FlipperAppType.EXTERNAL and FlipperAppType.PLUGIN are built as FAPs by default * Updated VSCode configuration for new fbt features - re-deploy stock configuration to use them * Added debugging support for FAPs with fbt debug & VSCode * Added public firmware API with automated versioning Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: SG <who.just.the.doctor@gmail.com> Co-authored-by: あく <alleteam@gmail.com>
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <furi.h>
 | |
| #include <furi_hal.h>
 | |
| #include "notification.h"
 | |
| #include "notification_messages.h"
 | |
| #include "notification_app.h"
 | |
| 
 | |
| void notification_message(NotificationApp* app, const NotificationSequence* sequence) {
 | |
|     NotificationAppMessage m = {
 | |
|         .type = NotificationLayerMessage, .sequence = sequence, .back_event = NULL};
 | |
|     furi_check(furi_message_queue_put(app->queue, &m, FuriWaitForever) == FuriStatusOk);
 | |
| };
 | |
| 
 | |
| void notification_internal_message(NotificationApp* app, const NotificationSequence* sequence) {
 | |
|     NotificationAppMessage m = {
 | |
|         .type = InternalLayerMessage, .sequence = sequence, .back_event = NULL};
 | |
|     furi_check(furi_message_queue_put(app->queue, &m, FuriWaitForever) == FuriStatusOk);
 | |
| };
 | |
| 
 | |
| void notification_message_block(NotificationApp* app, const NotificationSequence* sequence) {
 | |
|     NotificationAppMessage m = {
 | |
|         .type = NotificationLayerMessage,
 | |
|         .sequence = sequence,
 | |
|         .back_event = furi_event_flag_alloc()};
 | |
|     furi_check(furi_message_queue_put(app->queue, &m, FuriWaitForever) == FuriStatusOk);
 | |
|     furi_event_flag_wait(
 | |
|         m.back_event, NOTIFICATION_EVENT_COMPLETE, FuriFlagWaitAny, FuriWaitForever);
 | |
|     furi_event_flag_free(m.back_event);
 | |
| };
 | |
| 
 | |
| void notification_internal_message_block(
 | |
|     NotificationApp* app,
 | |
|     const NotificationSequence* sequence) {
 | |
|     NotificationAppMessage m = {
 | |
|         .type = InternalLayerMessage, .sequence = sequence, .back_event = furi_event_flag_alloc()};
 | |
|     furi_check(furi_message_queue_put(app->queue, &m, FuriWaitForever) == FuriStatusOk);
 | |
|     furi_event_flag_wait(
 | |
|         m.back_event, NOTIFICATION_EVENT_COMPLETE, FuriFlagWaitAny, FuriWaitForever);
 | |
|     furi_event_flag_free(m.back_event);
 | |
| };
 |