* add blank example * add ipc example code, need to change FURI API * add ipc example code, need to change FURI API * change core API, add context * check handler at take * fix important bugs in furi * drawing example * add posix mq * fix unsigned demo counter * create at open * working local demo * russian version of IPC example * english version * add gif
		
			
				
	
	
		
			20 lines
		
	
	
		
			422 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			422 B
		
	
	
	
		
			C
		
	
	
	
	
	
#include "furi.h"
 | 
						|
#include "main.h"
 | 
						|
 | 
						|
extern UART_HandleTypeDef DEBUG_UART;
 | 
						|
 | 
						|
void handle_uart_write(const void* data, size_t size, void* ctx) {
 | 
						|
	HAL_UART_Transmit(&DEBUG_UART, (uint8_t*)data, (uint16_t)size, HAL_MAX_DELAY);
 | 
						|
}
 | 
						|
 | 
						|
bool register_tty_uart() {
 | 
						|
	if(!furi_create("tty", NULL, 0)) {
 | 
						|
		return false;
 | 
						|
	}
 | 
						|
	
 | 
						|
	if(furi_open("tty", false, false, handle_uart_write, NULL, NULL) == NULL) {
 | 
						|
		return false;
 | 
						|
	}
 | 
						|
 | 
						|
	return true;
 | 
						|
} |