Skip to content

Commit

Permalink
T2K_R8K_Q2K_T16_R17_CTS15_RTS14
Browse files Browse the repository at this point in the history
  • Loading branch information
murasame-aya-chan authored Jul 12, 2024
1 parent 84b0258 commit b38c4a6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
6 changes: 5 additions & 1 deletion components/at/src/at_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,14 @@ esp_err_t esp_at_netif_init(void)

static void at_module_init(void)
{
#define AT_TEMP_BUFFER_SIZE 256
#define AT_TEMP_BUFFER_SIZE 512
int ret = 0;
uint8_t *version = (uint8_t *)malloc(AT_TEMP_BUFFER_SIZE);
/// add company info
ret = snprintf((char *)version, AT_TEMP_BUFFER_SIZE,
"company: HY\r\n");

ret += snprintf((char *)version + ret, AT_TEMP_BUFFER_SIZE - ret,
"compile time(%s):%s %s\r\n", ESP_AT_PROJECT_COMMIT_ID, __DATE__, __TIME__);

#ifdef CONFIG_ESP_AT_FW_VERSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ PLATFORM_ESP32C3,ESP32C3_RAINMAKER,"support rainmaker cloud, TX:7 RX:6",4,78,1,1
PLATFORM_ESP32C2,ESP32C2-2MB,"single Wi-Fi, 2MB, TX:7 RX:6",4,78,1,1,13,CN,115200,7,6,19,20
PLATFORM_ESP32C2,ESP32C2-4MB,"Wi-Fi + BluFi, 4MB, TX:7 RX:6",4,78,1,1,13,CN,115200,7,6,5,4
PLATFORM_ESP32C2,ESP32C2-BLE-2MB,"single BLE, 2MB, TX:7 RX:6",4,78,1,1,13,CN,115200,7,6,5,4
PLATFORM_ESP32C6,ESP32C6-4MB,"TX:7 RX:6",4,78,1,1,13,CN,115200,7,6,5,4
PLATFORM_ESP32C6,ESP32C6-4MB,"TX:16 RX:17",4,78,1,1,13,CN,115200,16,17,15,14
PLATFORM_ESP32S2,MINI,"TX:17 RX:21",4,78,1,1,13,CN,115200,17,21,20,19
12 changes: 6 additions & 6 deletions main/interface/include/at_uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Macros
*******************************************************/
#define AT_UART_BAUD_RATE_MAX SOC_UART_BITRATE_MAX /**< maximum uart baud rate */
#define AT_UART_BAUD_RATE_MIN 80 /**< minimum uart baud rate */
#define AT_UART_BAUD_RATE_MIN 1200 /**< minimum uart baud rate */
#define AT_UART_BAUD_RATE_DEF 115200 /**< default uart baud rate */
#define AT_UART_PATTERN_TIMEOUT_MS 20 /**< uart pattern timeout */

Expand All @@ -41,7 +41,7 @@
#else
#define AT_UART_RX_BUFFER_SIZE 2048 /**< uart rx buffer size */
#define AT_UART_TX_BUFFER_SIZE 8192 /**< uart tx buffer size */
#define AT_UART_QUEUE_SIZE 30 /**< uart queue size */
#define AT_UART_QUEUE_SIZE 2000 /**< uart queue size */
#endif

/**
Expand All @@ -62,10 +62,10 @@
#endif

#if defined(CONFIG_IDF_TARGET_ESP32C6)
#define CONFIG_AT_UART_PORT_TX_PIN_DEFAULT 7
#define CONFIG_AT_UART_PORT_RX_PIN_DEFAULT 6
#define CONFIG_AT_UART_PORT_CTS_PIN_DEFAULT 5
#define CONFIG_AT_UART_PORT_RTS_PIN_DEFAULT 4
#define CONFIG_AT_UART_PORT_TX_PIN_DEFAULT 16
#define CONFIG_AT_UART_PORT_RX_PIN_DEFAULT 17
#define CONFIG_AT_UART_PORT_CTS_PIN_DEFAULT 15
#define CONFIG_AT_UART_PORT_RTS_PIN_DEFAULT 14
#endif

#if defined(CONFIG_IDF_TARGET_ESP32C2)
Expand Down
6 changes: 3 additions & 3 deletions module_config/module_esp32c6_default/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ CONFIG_ESP_TLS_INSECURE=y
CONFIG_ESP_TLS_SKIP_SERVER_CERT_VERIFY=y

# Hardware Settings
CONFIG_RTC_CLK_SRC_EXT_CRYS=y
CONFIG_RTC_CLK_SRC_EXT_CRYS=n
CONFIG_RTC_CLK_CAL_CYCLES=1024

# AT Customized Partitions
Expand All @@ -147,7 +147,7 @@ CONFIG_AT_OTA_SERVER_PORT=80
CONFIG_AT_OTA_TOKEN_KEY="dd93253c287f725de50d4071a05dd28b72056ca7"
CONFIG_AT_OTA_SSL_TOKEN_KEY="dd93253c287f725de50d4071a05dd28b72056ca7"
CONFIG_AT_SOCKET_MAX_CONN_NUM=5
CONFIG_ESP_AT_FW_VERSION="v4.1.0.0-dev"
CONFIG_ESP_AT_FW_VERSION="HY-v4.1.0.0-dev"

# Wear Levelling
CONFIG_WL_SECTOR_SIZE_512=y
Expand Down Expand Up @@ -176,7 +176,7 @@ CONFIG_HTTPD_MAX_REQ_HDR_LEN=1024
CONFIG_HTTPD_MAX_URI_LEN=1024

# ESP System Settings
CONFIG_ESP_SYSTEM_RTC_EXT_XTAL=y
CONFIG_ESP_SYSTEM_RTC_EXT_XTAL=n
CONFIG_ESP_SYSTEM_RTC_EXT_XTAL_BOOTSTRAP_CYCLES=0
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=n
CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG=n
Expand Down

0 comments on commit b38c4a6

Please sign in to comment.