Rename Irukagotchi to Dolphin. Add basic game state structures. (#268)
* Rename Irukagotchi to Dolphin. Add basic game state structures. * Dolphin: state, counters, api. BT: shared access to flash. Flash: write api. * add fake -1 deeds, example of changing icounter Co-authored-by: coreglitch <mail@s3f.ru>
This commit is contained in:
20
firmware/targets/f4/api-hal/api-hal-flash.h
Normal file
20
firmware/targets/f4/api-hal/api-hal-flash.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
/*
|
||||
* 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
|
||||
*/
|
||||
void 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
|
||||
*/
|
||||
void api_hal_flash_write_page(size_t address, size_t source_address);
|
Reference in New Issue
Block a user