* 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>
		
			
				
	
	
		
			49 lines
		
	
	
		
			1009 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1009 B
		
	
	
	
		
			C
		
	
	
	
	
	
#pragma once
 | 
						|
 | 
						|
#include "serial_service.h"
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif
 | 
						|
 | 
						|
#define FURI_HAL_BT_SERIAL_PACKET_SIZE_MAX SERIAL_SVC_DATA_LEN_MAX
 | 
						|
 | 
						|
/** Serial service callback type */
 | 
						|
typedef SerialServiceEventCallback FuriHalBtSerialCallback;
 | 
						|
 | 
						|
/** Start Serial Profile
 | 
						|
 */
 | 
						|
void furi_hal_bt_serial_start();
 | 
						|
 | 
						|
/** Stop Serial Profile
 | 
						|
 */
 | 
						|
void furi_hal_bt_serial_stop();
 | 
						|
 | 
						|
/** Set Serial service events callback
 | 
						|
 *
 | 
						|
 * @param buffer_size   Applicaition buffer size
 | 
						|
 * @param calback       FuriHalBtSerialCallback instance
 | 
						|
 * @param context       pointer to context
 | 
						|
 */
 | 
						|
void furi_hal_bt_serial_set_event_callback(
 | 
						|
    uint16_t buff_size,
 | 
						|
    FuriHalBtSerialCallback callback,
 | 
						|
    void* context);
 | 
						|
 | 
						|
/** Notify that application buffer is empty
 | 
						|
 */
 | 
						|
void furi_hal_bt_serial_notify_buffer_is_empty();
 | 
						|
 | 
						|
/** Send data through BLE
 | 
						|
 *
 | 
						|
 * @param data  data buffer
 | 
						|
 * @param size  data buffer size
 | 
						|
 *
 | 
						|
 * @return      true on success
 | 
						|
 */
 | 
						|
bool furi_hal_bt_serial_tx(uint8_t* data, uint16_t size);
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 |