mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-21 10:13:10 +00:00
73ecc7cde6
* 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>
20 lines
608 B
C
20 lines
608 B
C
#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);
|