[FL-2627] Flipper applications: SDK, build and debug system (#1387)
* 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>
This commit is contained in:
		@@ -96,6 +96,12 @@ for wrapped_fn in wrapped_fn_list:
 | 
			
		||||
        ]
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
env.Append(
 | 
			
		||||
    SDK_HEADERS=[
 | 
			
		||||
        File("#/lib/print/wrappers.h"),
 | 
			
		||||
    ],
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
libenv = env.Clone(FW_LIB_NAME="print")
 | 
			
		||||
libenv.ApplyLibFlags()
 | 
			
		||||
libenv.Append(CCFLAGS=["-Wno-double-promotion"])
 | 
			
		||||
 
 | 
			
		||||
@@ -1,11 +1,10 @@
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
#include "wrappers.h"
 | 
			
		||||
 | 
			
		||||
#include <stdbool.h>
 | 
			
		||||
#include <stdarg.h>
 | 
			
		||||
#include <furi/core/check.h>
 | 
			
		||||
#include <furi/core/thread.h>
 | 
			
		||||
#include <furi/core/common_defines.h>
 | 
			
		||||
#include <string.h>
 | 
			
		||||
#include "printf_tiny.h"
 | 
			
		||||
 | 
			
		||||
void _putchar(char character) {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										25
									
								
								lib/print/wrappers.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								lib/print/wrappers.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
#include <string.h>
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
void _putchar(char character);
 | 
			
		||||
int __wrap_printf(const char* format, ...);
 | 
			
		||||
int __wrap_vsnprintf(char* str, size_t size, const char* format, va_list args);
 | 
			
		||||
int __wrap_puts(const char* str);
 | 
			
		||||
int __wrap_putchar(int ch);
 | 
			
		||||
int __wrap_putc(int ch, FILE* stream);
 | 
			
		||||
int __wrap_snprintf(char* str, size_t size, const char* format, ...);
 | 
			
		||||
int __wrap_fflush(FILE* stream);
 | 
			
		||||
 | 
			
		||||
__attribute__((__noreturn__)) void __wrap___assert(const char* file, int line, const char* e);
 | 
			
		||||
 | 
			
		||||
__attribute__((__noreturn__)) void
 | 
			
		||||
    __wrap___assert_func(const char* file, int line, const char* func, const char* e);
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
		Reference in New Issue
	
	Block a user