1
0
forked from me/IronOS

Adding MHP30 to makefile

This commit is contained in:
Ben V. Brown
2021-04-27 21:44:35 +10:00
parent 67ba9e20c0
commit 6d0f9897b9
3 changed files with 9 additions and 19 deletions

View File

@@ -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; }

View File

@@ -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);
}