From 62d25171fba3c5fa52ee9a1dcc131150d9023283 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 8 Jul 2018 12:24:13 +0200 Subject: [PATCH] PSRAM support added to hal files --- platformio.ini | 4 ++-- src/hal/fipy.h | 1 + src/hal/lopy4.h | 1 + src/hal/ttgobeam.h | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/platformio.ini b/platformio.ini index 99ae625b..ee1d133b 100644 --- a/platformio.ini +++ b/platformio.ini @@ -48,6 +48,7 @@ build_flags = ; override lora settings from LMiC library in lmic/config.h and use main.h instead -D_lmic_config_h_ -include "src/paxcounter.conf" + -w [env:heltec] platform = ${common_env_data.platform_espressif32} @@ -118,7 +119,7 @@ lib_deps = build_flags = ${common_env_data.build_flags} -include "src/hal/ttgobeam.h" - -DBOARD_HAS_PSRAM + -include [env:fipy] platform = ${common_env_data.platform_espressif32} @@ -163,7 +164,6 @@ lib_deps = build_flags = ${common_env_data.build_flags} -include "src/hal/lopy4.h" - -DBOARD_HAS_PSRAM [env:lolin32lite] platform = ${common_env_data.platform_espressif32} diff --git a/src/hal/fipy.h b/src/hal/fipy.h index 9f88928d..1d255697 100644 --- a/src/hal/fipy.h +++ b/src/hal/fipy.h @@ -3,6 +3,7 @@ #define CFG_sx1272_radio 1 #define HAS_LED NOT_A_PIN // FiPy has no on board LED, so we use RGB LED #define HAS_RGB_LED GPIO_NUM_0 // WS2812B RGB LED on GPIO0 +#define BOARD_HAS_PSRAM // use extra 4MB extern RAM // Hardware pin definitions for Pycom FiPy board #define PIN_SPI_SS GPIO_NUM_18 diff --git a/src/hal/lopy4.h b/src/hal/lopy4.h index 6a799351..1b14d8d1 100644 --- a/src/hal/lopy4.h +++ b/src/hal/lopy4.h @@ -3,6 +3,7 @@ #define CFG_sx1276_radio 1 #define HAS_LED NOT_A_PIN // LoPy4 has no on board LED, so we use RGB LED on LoPy4 #define HAS_RGB_LED GPIO_NUM_0 // WS2812B RGB LED on GPIO0 +#define BOARD_HAS_PSRAM // use extra 4MB extern RAM // Hardware pin definitions for Pycom LoPy4 board #define PIN_SPI_SS GPIO_NUM_18 diff --git a/src/hal/ttgobeam.h b/src/hal/ttgobeam.h index 50511b60..e3ea1638 100644 --- a/src/hal/ttgobeam.h +++ b/src/hal/ttgobeam.h @@ -1,6 +1,7 @@ // Hardware related definitions for TTGO T-Beam board #define CFG_sx1276_radio 1 // HPD13A LoRa SoC +#define BOARD_HAS_PSRAM // use extra 4MB extern RAM #define HAS_LED GPIO_NUM_21 // on board green LED_G1 //#define HAS_BUTTON GPIO_NUM_39 // on board button "BOOT" (next to reset button) !! seems not to work!!