 1b78418f9f
			
		
	
	
		1b78418f9f
		
			
		
	
	
	
	
		
			
			* GUI: view. Flooper-blooper fix compilation error. * GUI: view and viewdispatcher bones * GUI: view implementation, view models, view dispatcher * GUI: view navigation, model refinement. Power: use view, view dispatcher. * HAL Flash: proper page write. Dolphin: views. Power: views * Dolphin: transition idle scree to Views * Dolphin: input events on stats view. Format sources. * HAL: flash erase. Dolphin: permanent state storage. * Dolphin: first start welcome. HAL: flash operation status, errata 2.2.9 crutch.
		
			
				
	
	
		
			30 lines
		
	
	
		
			829 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			829 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <stdbool.h>
 | |
| #include <stdint.h>
 | |
| #include <stddef.h>
 | |
| 
 | |
| /*
 | |
|  * Erase Flash
 | |
|  * Locking operation, uses HSEM to manage shared access.
 | |
|  * @param page, page number
 | |
|  * @param count, page count to erase
 | |
|  */
 | |
| bool api_hal_flash_erase(uint8_t page, uint8_t count);
 | |
| 
 | |
| /*
 | |
|  * Write double word (64 bits)
 | |
|  * Locking operation, uses HSEM to manage shared access.
 | |
|  * @param address - destination address, must be double word aligned.
 | |
|  * @param data - data to write
 | |
|  */
 | |
| bool api_hal_flash_write_dword(size_t address, uint64_t data);
 | |
| 
 | |
| /*
 | |
|  * Write page (4096 bytes or 64 rows of double words).
 | |
|  * Locking operation, uses HSEM to manage shared access.
 | |
|  * @param address - destination address, must be page aligned
 | |
|  * @param source_address - source address
 | |
|  */
 | |
| bool api_hal_flash_write_page(size_t address, size_t source_address);
 |