File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
ext_mod/esp32_additions/spi/src Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 34
34
#include "py/stream.h"
35
35
#include "py/mphal.h"
36
36
#include "mphalport.h"
37
+ #include "py/gc.h"
38
+ #include "py/stackctrl.h"
37
39
38
40
#include "driver/spi_master.h"
39
41
#include "driver/spi_common.h"
40
42
#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"
41
48
42
- /* SPI DEVICE CLASS
43
- /*********************************************************************************************************/
49
+
50
+ // SPI DEVICE CLASS
51
+ //---------------------------------------------------------------------------------------------------
44
52
45
53
void _esp_spi_cb_isr (esp32_hw_spi_dev_obj_t * self , mp_obj_t cb , mp_obj_t user_data )
46
54
{
@@ -627,7 +635,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
627
635
locals_dict , (mp_obj_dict_t * )& esp32_hw_spi_dev_locals_dict
628
636
);
629
637
630
- /*********************************************************************************************************/
638
+ //---------------------------------------------------------------------------------------------------
631
639
632
640
#if CONFIG_IDF_TARGET_ESP32
633
641
#define ESP32_HW_SPI_MAX 2
You can’t perform that action at this time.
0 commit comments