Skip to content

Commit

Permalink
bring up of these new LilyGO T3-S3-ePaper and T3-C6 boards is complete
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Jun 25, 2024
1 parent e21c969 commit bfab736
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions software/firmware/source/SoftRF/src/platform/ESP32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ PCF8563_Class *rtc = nullptr;
I2CBus *i2c = nullptr;

static bool ESP32_has_spiflash = false;
static uint32_t spiflash_id = 0;
static bool FATFS_is_mounted = false;
static bool ADB_is_open = false;
static bool RTC_sync = false;
Expand Down Expand Up @@ -262,7 +261,7 @@ ui_settings_t ui_settings = {
.units = UNITS_METRIC,
.zoom = ZOOM_MEDIUM,
.protocol = PROTOCOL_NMEA,
.rotate = ROTATE_90,
.rotate = ROTATE_0,
.orientation = DIRECTION_TRACK_UP,
.adb = DB_OGN,
.idpref = ID_TYPE,
Expand Down Expand Up @@ -580,7 +579,7 @@ static void ESP32_setup()
* Heltec Tracker | | GIGADEVICE_GD25Q64
* | WT0132C6-S5 | ZBIT_ZB25VQ32B
* LilyGO T3-C6 | ESP32-C6-MINI | XMC_XM25QH32B
* LilyGO T3-S3-EP | ESP32-S3-MINI |
* LilyGO T3-S3-EP | ESP32-S3-MINI | XMC_XM25QH32B
*/

if (psramFound()) {
Expand Down Expand Up @@ -661,9 +660,6 @@ static void ESP32_setup()
esp32_board = ESP32_HELTEC_TRACKER;
hw_info.model = SOFTRF_MODEL_MIDI;
break;
case MakeFlashId(ST_ID, XMC_XM25QH32B):
esp32_board = ESP32_LILYGO_T3S3_EPD; /* ESP32-S3-MINI-1U */
break;
default:
esp32_board = ESP32_S3_DEVKIT;
break;
Expand Down Expand Up @@ -1435,9 +1431,8 @@ static void ESP32_setup()
ESP32_has_spiflash = SPIFlash->begin(possible_devices,
EXTERNAL_FLASH_DEVICE_COUNT);
if (ESP32_has_spiflash) {
spiflash_id = SPIFlash->getJEDECID();
uint32_t capacity = ESP32_getFlashId() & 0xFF;

uint32_t capacity = spiflash_id & 0xFF;
if (capacity >= 0x17) { /* equal or greater than 1UL << 23 (8 MiB) */
hw_info.storage = STORAGE_FLASH;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ bool hal_pin_tcxo (u1_t val) {
// BCM2835_CORE_CLK_HZ = 250000000
// Clock divider / 64 = 3.906 MHz
static const SPISettings settings(BCM2835_SPI_CLOCK_DIVIDER_64, BCM2835_SPI_BIT_ORDER_MSBFIRST, BCM2835_SPI_MODE0);
#elif defined(__ASR6501__) || defined(ARDUINO_ARCH_ASR650X)
//#elif defined(__ASR6501__) || defined(ARDUINO_ARCH_ASR650X)
/* nothing to do */
#else
static const SPISettings settings(LMIC_SPI_FREQ, MSBFIRST, SPI_MODE0);
Expand Down

1 comment on commit bfab736

@lyusupov
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

t3s3-bringup



image

Please sign in to comment.