Skip to content

Commit

Permalink
ESP32C3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer committed Jul 30, 2022
1 parent 0c1d9d0 commit 926cb85
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@

#ifndef SPIFFS_TOOLS_BUILD
#define CS_SPIFFS_ENABLE_METADATA 1
#ifdef MGOS_ESP32 // Legacy feature that we only keep for ESP32.
#define CS_SPIFFS_ENABLE_ENCRYPTION 1
#define CS_SPIFFS_ENCRYPTION_BLOCK_SIZE 32
#else
#define CS_SPIFFS_ENABLE_ENCRYPTION 0
#endif
#endif

#include <stdio.h>
Expand Down
10 changes: 10 additions & 0 deletions mos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ build_vars:
cdefs:
MGOS_ROOT_FS_OPTS_SPIFFS: '{"bs":4096,"ps":256,"es":4096}'

conds:
- when: mos.platform == "esp32"
apply:
includes:
- include/esp32xx
- when: mos.platform == "esp32c3"
apply:
includes:
- include/esp32xx

tags:
- c
- fs
Expand Down

0 comments on commit 926cb85

Please sign in to comment.