-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #338 from lyusupov/master
Add Heltec Wireless Tracker
- Loading branch information
Showing
5 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Apply board specific content here | ||
set(IDF_TARGET "esp32s3") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* The MIT License (MIT) | ||
* | ||
* Copyright (c) 2020 Ha Thach (tinyusb.org) for Adafruit Industries | ||
* Copyright (c) 2023 Linar Yusupov | ||
* | ||
* 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. | ||
*/ | ||
|
||
#pragma once | ||
|
||
//--------------------------------------------------------------------+ | ||
// Button | ||
//--------------------------------------------------------------------+ | ||
|
||
// Enter UF2 mode if GPIO is pressed while 2nd stage bootloader indicator | ||
// is on e.g RGB = Purple. If it is GPIO0, user should not hold this while | ||
// reset since that will instead run the 1st stage ROM bootloader | ||
#define PIN_BUTTON_UF2 0 | ||
|
||
// Initial delay in milliseconds to detect user interaction to enter UF2 | ||
#define UF2_DETECTION_DELAY_MS 1000 | ||
|
||
//--------------------------------------------------------------------+ | ||
// LED | ||
//--------------------------------------------------------------------+ | ||
|
||
// LED for indicator and writing flash | ||
#define LED_PIN 18 | ||
#define LED_STATE_ON 1 | ||
|
||
//--------------------------------------------------------------------+ | ||
// USB UF2 | ||
//--------------------------------------------------------------------+ | ||
|
||
#define USB_VID 0x303A // Espressif VID | ||
#define USB_PID 0x81A1 // Espressif assigned PID | ||
#define USB_MANUFACTURER "Heltec" | ||
#define USB_PRODUCT "Wireless Tracker" | ||
|
||
#define UF2_PRODUCT_NAME USB_MANUFACTURER " " USB_PRODUCT | ||
#define UF2_BOARD_ID "ESP32S3-HTIT-v1.0" | ||
#define UF2_VOLUME_LABEL "HTBOOT" | ||
#define UF2_INDEX_URL "https://heltec.org/project/wireless-tracker" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Board Specific Config | ||
|
||
# Partition Table | ||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-8MB.csv" | ||
|
||
# Serial flasher config | ||
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y |