Merge remote-tracking branch 'origin/main'

This commit is contained in:
Hosted Weblate 2022-04-06 19:13:45 +02:00
commit 84e77ef89c
No known key found for this signature in database
GPG Key ID: A3FAAA06E6569B4C
2 changed files with 21 additions and 9 deletions

View File

@ -31,6 +31,10 @@ void filesystem_background(void) {
return; return;
} }
void filesystem_tick(void) {
return;
}
bool filesystem_init(bool create_allowed, bool force_create) { bool filesystem_init(bool create_allowed, bool force_create) {
(void)create_allowed; (void)create_allowed;
(void)force_create; (void)force_create;

View File

@ -23,7 +23,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "supervisor/internal_flash.h" #include "supervisor/flash.h"
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
@ -46,21 +46,29 @@ uint32_t supervisor_flash_get_block_count(void) {
return 0; return 0;
} }
void port_internal_flash_flush(void) {
return;
}
mp_uint_t supervisor_flash_read_blocks(uint8_t *dest, uint32_t block, uint32_t num_blocks) { mp_uint_t supervisor_flash_read_blocks(uint8_t *dest, uint32_t block, uint32_t num_blocks) {
return 0; // success return 0; // success
} }
bool supervisor_flash_write_block(const uint8_t *src, uint32_t block) {
return true;
}
mp_uint_t supervisor_flash_write_blocks(const uint8_t *src, uint32_t block_num, uint32_t num_blocks) { mp_uint_t supervisor_flash_write_blocks(const uint8_t *src, uint32_t block_num, uint32_t num_blocks) {
return 0; // success return 0; // success
} }
#if (0)
// See definition in supervisor/flash.c
void supervisor_flash_init_vfs(struct _fs_user_mount_t *vfs) {
return;
}
// See definition in supervisor/flash.c
void supervisor_flash_flush(void) {
return;
}
#endif
void supervisor_flash_release_cache(void) { void supervisor_flash_release_cache(void) {
} }
void port_internal_flash_flush(void) {
return;
}