start sd implementation
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "hw/mcp23018.h"
|
||||
#include "hw/mpu9250.h"
|
||||
#include "hw/buscfg.h"
|
||||
#include "components/sdcard.h"
|
||||
|
||||
#include "hw/gps.h"
|
||||
|
||||
@@ -48,6 +49,8 @@ void app_main(void)
|
||||
// };
|
||||
// ESP_ERROR_CHECK(spi_bus_initialize(SPI2_HOST, &MCPBusCfg, SPI_DMA_DISABLED));
|
||||
|
||||
gpio_pullup_en(HSPI_MISO_GPIO);
|
||||
gpio_pullup_en(HSPI_SD_CS);
|
||||
spi_bus_config_t HighSpeedBusCfg = {
|
||||
// CONNECTED to LoRa and SD card
|
||||
.mosi_io_num = HSPI_MOSI_GPIO,
|
||||
@@ -64,6 +67,8 @@ void app_main(void)
|
||||
|
||||
mcp23018_init();
|
||||
|
||||
initSD();
|
||||
|
||||
void servoControllerInit();
|
||||
|
||||
ESP_LOGI(TAG, "BEGIN ESP TASKS");
|
||||
|
Reference in New Issue
Block a user