Skip to content

Commit 1ac5f6b

Browse files
committed
adds missing includes
1 parent 2f63058 commit 1ac5f6b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

ext_mod/esp32_additions/spi/src/esp32_spi.c

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,21 @@
3434
#include "py/stream.h"
3535
#include "py/mphal.h"
3636
#include "mphalport.h"
37+
#include "py/gc.h"
38+
#include "py/stackctrl.h"
3739

3840
#include "driver/spi_master.h"
3941
#include "driver/spi_common.h"
4042
#include "soc/spi_pins.h"
43+
#include "rom/ets_sys.h"
44+
#include "freertos/FreeRTOS.h"
45+
#include "freertos/task.h"
46+
#include "esp_system.h"
47+
#include "esp_cpu.h"
4148

42-
/* SPI DEVICE CLASS
43-
/*********************************************************************************************************/
49+
50+
// SPI DEVICE CLASS
51+
//---------------------------------------------------------------------------------------------------
4452

4553
void _esp_spi_cb_isr(esp32_hw_spi_dev_obj_t *self, mp_obj_t cb, mp_obj_t user_data)
4654
{
@@ -627,7 +635,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
627635
locals_dict, (mp_obj_dict_t *)&esp32_hw_spi_dev_locals_dict
628636
);
629637

630-
/*********************************************************************************************************/
638+
//---------------------------------------------------------------------------------------------------
631639

632640
#if CONFIG_IDF_TARGET_ESP32
633641
#define ESP32_HW_SPI_MAX 2

0 commit comments

Comments
 (0)