change metro s3 psram type to opi, default SD_CS (SS) to input pull up

This commit is contained in:
hathach 2023-08-23 18:16:16 +07:00
parent cc6565ef3c
commit 67e461114c
2 changed files with 40 additions and 3 deletions

View file

@ -8360,15 +8360,15 @@ adafruit_metro_esp32s3.menu.UploadMode.default=UART0 / Hardware CDC
adafruit_metro_esp32s3.menu.UploadMode.default.upload.use_1200bps_touch=false
adafruit_metro_esp32s3.menu.UploadMode.default.upload.wait_for_upload_port=false
adafruit_metro_esp32s3.menu.PSRAM.opi=OPI PSRAM
adafruit_metro_esp32s3.menu.PSRAM.opi.build.defines=-DBOARD_HAS_PSRAM
adafruit_metro_esp32s3.menu.PSRAM.opi.build.psram_type=opi
adafruit_metro_esp32s3.menu.PSRAM.enabled=QSPI PSRAM
adafruit_metro_esp32s3.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM
adafruit_metro_esp32s3.menu.PSRAM.enabled.build.psram_type=qspi
adafruit_metro_esp32s3.menu.PSRAM.disabled=Disabled
adafruit_metro_esp32s3.menu.PSRAM.disabled.build.defines=
adafruit_metro_esp32s3.menu.PSRAM.disabled.build.psram_type=qspi
adafruit_metro_esp32s3.menu.PSRAM.opi=OPI PSRAM
adafruit_metro_esp32s3.menu.PSRAM.opi.build.defines=-DBOARD_HAS_PSRAM
adafruit_metro_esp32s3.menu.PSRAM.opi.build.psram_type=opi
adafruit_metro_esp32s3.menu.PartitionScheme.tinyuf2=TinyUF2 16MB (2MB APP/11.6MB FATFS)
adafruit_metro_esp32s3.menu.PartitionScheme.tinyuf2.build.custom_bootloader=bootloader-tinyuf2

View file

@ -0,0 +1,37 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2021 Ha Thach (tinyusb.org) for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "esp32-hal-gpio.h"
#include "pins_arduino.h"
extern "C" {
// Initialize variant/board, called before setup()
void initVariant(void) {
// default SD_CS to input pullup
pinMode(SS, INPUT_PULLUP);
}
}