forked from espressif/arduino-esp32
fix psram always init
This commit is contained in:
@ -19,6 +19,17 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
|
#ifndef BOARD_HAS_PSRAM
|
||||||
|
#ifdef CONFIG_SPIRAM_SUPPORT
|
||||||
|
#undef CONFIG_SPIRAM_SUPPORT
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_SPIRAM
|
||||||
|
#undef CONFIG_SPIRAM
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
bool psramInit();
|
bool psramInit();
|
||||||
bool psramFound();
|
bool psramFound();
|
||||||
|
|
||||||
|
@ -77,12 +77,6 @@ void yield(void);
|
|||||||
#include "esp32-hal-psram.h"
|
#include "esp32-hal-psram.h"
|
||||||
#include "esp32-hal-cpu.h"
|
#include "esp32-hal-cpu.h"
|
||||||
|
|
||||||
#ifndef BOARD_HAS_PSRAM
|
|
||||||
#ifdef CONFIG_SPIRAM_SUPPORT
|
|
||||||
#undef CONFIG_SPIRAM_SUPPORT
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//returns chip temperature in Celsius
|
//returns chip temperature in Celsius
|
||||||
float temperatureRead();
|
float temperatureRead();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user