Skip to content

Commit

Permalink
SUKU nvm, usb, and port moved to proper components
Browse files Browse the repository at this point in the history
  • Loading branch information
SukuWc committed Dec 12, 2023
1 parent 9411dbf commit ad19144
Show file tree
Hide file tree
Showing 16 changed files with 2,153 additions and 108 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@
"pico_firmware.h": "c",
"esp_sysview_trace.h": "c",
"gpio_ll.h": "c",
"ulp_grid_esp32_adc.h": "c"
"ulp_grid_esp32_adc.h": "c",
"spi_flash_mmap.h": "c"
},
"files.exclude": {
".archive": true,
Expand Down
8 changes: 8 additions & 0 deletions grid_esp/components/grid_esp32_nvm/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
idf_component_register(
SRCS
"grid_esp32_nvm.c"
INCLUDE_DIRS
"."
REQUIRES
"driver" "littlefs" "grid_common" "spi_flash"
)
674 changes: 674 additions & 0 deletions grid_esp/components/grid_esp32_nvm/LICENSE

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,38 @@

#include "grid_esp32_nvm.h"

#include "rom/ets_sys.h" // For ets_printf


#include <sys/unistd.h>
#include <sys/stat.h>
#include "esp_system.h"
#include "esp_chip_info.h"

#include <string.h>

#include "esp_flash.h"


#include "esp_log.h"
#include "esp_check.h"
#include "rom/ets_sys.h" // For ets_printf

#include "esp_littlefs.h"

#include <sys/types.h>
#include <dirent.h>

#include <stdlib.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#include "freertos/task.h"
#include "esp_log.h"

#include "grid_ui.h"


static const char *TAG = "grid_esp32_nvm";

struct grid_esp32_nvm_model grid_esp32_nvm_state;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,6 @@

#include <stdint.h>

#include "rom/ets_sys.h" // For ets_printf


#include <sys/unistd.h>
#include <sys/stat.h>
#include "esp_system.h"
#include "esp_chip_info.h"
#include "spi_flash_mmap.h"

#include <string.h>

#include "esp_flash.h"


#include "esp_log.h"
#include "esp_check.h"
#include "rom/ets_sys.h" // For ets_printf

#include "esp_littlefs.h"

#include <sys/types.h>
#include <dirent.h>

#include <stdlib.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#include "freertos/task.h"
#include "esp_log.h"

#include "../../grid_common/grid_ui.h"


#ifdef __cplusplus
extern "C" {
#endif
Expand Down
8 changes: 8 additions & 0 deletions grid_esp/components/grid_esp32_port/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
idf_component_register(
SRCS
"grid_esp32_port.c"
INCLUDE_DIRS
"."
REQUIRES
"driver" "grid_common" "esp_tinyusb"
)
Loading

0 comments on commit ad19144

Please sign in to comment.