Remove unlicensed file, fix reset pin type check
This commit is contained in:
parent
ecc219fe50
commit
e504438fd2
|
@ -1,41 +0,0 @@
|
|||
# The ESP32-S2 only supports JTAG.
|
||||
transport select jtag
|
||||
adapter_khz 1000
|
||||
|
||||
# Source the ESP common configuration file
|
||||
source [find target/esp_common.cfg]
|
||||
|
||||
if { [info exists CHIPNAME] } {
|
||||
set _CHIPNAME $CHIPNAME
|
||||
} else {
|
||||
set _CHIPNAME esp32s2
|
||||
}
|
||||
|
||||
if { [info exists CPUTAPID] } {
|
||||
set _CPUTAPID $CPUTAPID
|
||||
} else {
|
||||
set _CPUTAPID 0x120034e5
|
||||
}
|
||||
|
||||
set _TARGETNAME $_CHIPNAME
|
||||
set _CPUNAME cpu
|
||||
set _TAPNAME $_CHIPNAME.$_CPUNAME
|
||||
|
||||
jtag newtap $_CHIPNAME $_CPUNAME -irlen 5 -expected-id $_CPUTAPID
|
||||
|
||||
if { $_RTOS == "none" } {
|
||||
target create $_TARGETNAME esp32s2 -endian little -chain-position $_TAPNAME
|
||||
} else {
|
||||
target create $_TARGETNAME esp32s2 -endian little -chain-position $_TAPNAME -rtos $_RTOS
|
||||
}
|
||||
|
||||
configure_esp_workarea $_TARGETNAME 0x40030000 0x3400 0x3FFE0000 0x6000
|
||||
configure_esp_flash_bank $_TARGETNAME $_TARGETNAME $_FLASH_SIZE
|
||||
|
||||
xtensa maskisr on
|
||||
if { $_SEMIHOST_BASEDIR != "" } {
|
||||
esp semihost_basedir $_SEMIHOST_BASEDIR
|
||||
}
|
||||
if { $_FLASH_SIZE == 0 } {
|
||||
gdb_breakpoint_override hard
|
||||
}
|
|
@ -72,8 +72,8 @@ void common_hal_displayio_i2cdisplay_deinit(displayio_i2cdisplay_obj_t* self) {
|
|||
common_hal_busio_i2c_deinit(self->bus);
|
||||
}
|
||||
|
||||
if (self->reset.pin) {
|
||||
common_hal_reset_pin(self->reset.pin);
|
||||
if (self->reset.base.type == &digitalio_digitalinout_type) {
|
||||
common_hal_digitalio_digitalinout_deinit(&self->reset);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue