mgr::priv -> mgr::ifp, use explicit type

This commit is contained in:
Sergey Lyubka committed 2024-12-16 14:22:13 +00:00
1 parent 19cbb27b4c
commit b0e4069bb7
6 files changed
+46 -66

No files matched your search

+3 -6
View File
@@ -161,9 +161,7 @@ MG_IRAM static bool mg_stm32f_swap(void) {
static bool s_flash_irq_disabled;
MG_IRAM static bool mg_stm32f_write(void *addr,
const void *buf,
size_t len) {
MG_IRAM static bool mg_stm32f_write(void *addr, const void *buf, size_t len) {
if ((len % s_mg_flash_stm32f.align) != 0) {
MG_ERROR(("%lu is not aligned to %lu", len, s_mg_flash_stm32f.align));
return false;
@@ -194,8 +192,7 @@ MG_IRAM static bool mg_stm32f_write(void *addr,
}
// just overwrite instead of swap
MG_IRAM void single_bank_swap(char *p1, char *p2,
size_t size) {
MG_IRAM void single_bank_swap(char *p1, char *p2, size_t size) {
// no stdlib calls here
mg_stm32f_write(p1, p2, size);
*(volatile unsigned long *) 0xe000ed0c = 0x5fa0004;
@@ -226,4 +223,4 @@ bool mg_ota_end(void) {
}
return false;
}
#endif
#endif