[external] First attempt to merge Khi external API

This commit is contained in:
Laury
2022-04-15 22:30:35 +02:00
parent 4b7631e78a
commit 38796253cb
6 changed files with 129 additions and 53 deletions

View File

@@ -16,6 +16,7 @@
#include <ion/storage.h>
#include <ion/timing.h>
#include <ion/usb.h>
#include <ion/flash.h>
#include <ion/unicode/utf8_decoder.h>
#include <ion/unicode/utf8_helper.h>
#include <stdint.h>

22
ion/include/ion/flash.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef ION_DEVICE_SHARED_FLASH_H
#define ION_DEVICE_SHARED_FLASH_H
#include <stddef.h>
#include <stdint.h>
namespace Ion {
namespace Device {
namespace Flash {
int TotalNumberOfSectors();
int SectorAtAddress(uint32_t address);
void MassErase();
void EraseSector(int i);
void WriteMemory(uint8_t * destination, uint8_t * source, size_t length);
}
}
}
#endif