mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Adding MHP30 to makefile
This commit is contained in:
@@ -40,16 +40,4 @@ uint8_t usb_pd_detect() {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool getIsPoweredByDCIN() {
|
||||
#ifdef MODEL_TS80
|
||||
return false;
|
||||
#endif
|
||||
|
||||
#ifdef MODEL_TS80P
|
||||
return false;
|
||||
#endif
|
||||
|
||||
#ifdef MODEL_TS100
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
bool getIsPoweredByDCIN() { return false; }
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
static uint16_t settings_page[512] __attribute__((section(".settings_page")));
|
||||
|
||||
uint8_t flash_save_buffer(const uint8_t *buffer, const uint16_t length) {
|
||||
return; // TODO
|
||||
FLASH_EraseInitTypeDef pEraseInit;
|
||||
pEraseInit.TypeErase = FLASH_TYPEERASE_PAGES;
|
||||
pEraseInit.Banks = FLASH_BANK_1;
|
||||
@@ -41,7 +40,5 @@ uint8_t flash_save_buffer(const uint8_t *buffer, const uint16_t length) {
|
||||
|
||||
void flash_read_buffer(uint8_t *buffer, const uint16_t length) {
|
||||
memset(buffer, 0, length);
|
||||
return; // TODO
|
||||
|
||||
memcpy(buffer, settings_page, length);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user