From c2eeff35ac488279744c03baf04007a4fbc045c0 Mon Sep 17 00:00:00 2001 From: "Paul D.Smith" <paul@pauldsmith.org.uk> Date: Sat, 6 Jan 2024 16:46:06 +0000 Subject: [PATCH] Updating to 1000000 baud. --- tlsr8258/build/tlsr_tc32/apps/cloudsmets/app_cfg.h | 4 ++-- .../tlsr_tc32/apps/cloudsmets/board_8258_dongle.h | 10 ++++++---- .../build/tlsr_tc32/apps/cloudsmets/zcl_cloudsmetsCb.c | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/tlsr8258/build/tlsr_tc32/apps/cloudsmets/app_cfg.h b/tlsr8258/build/tlsr_tc32/apps/cloudsmets/app_cfg.h index dbb5056..fc5ca28 100644 --- a/tlsr8258/build/tlsr_tc32/apps/cloudsmets/app_cfg.h +++ b/tlsr8258/build/tlsr_tc32/apps/cloudsmets/app_cfg.h @@ -52,8 +52,8 @@ extern "C" { * BAUDRATE sets the BAUD rate that will be used if you use the printf() * debugging statements but HCI_BAUDRATE sets the BAUD rate for the HCI interface. */ -#define BAUDRATE 115200 -#define HCI_BAUDRATE 115200 +#define BAUDRATE 1000000 +#define HCI_BAUDRATE 1000000 /* PM */ #define PM_ENABLE 0 diff --git a/tlsr8258/build/tlsr_tc32/apps/cloudsmets/board_8258_dongle.h b/tlsr8258/build/tlsr_tc32/apps/cloudsmets/board_8258_dongle.h index a17600b..7e673be 100644 --- a/tlsr8258/build/tlsr_tc32/apps/cloudsmets/board_8258_dongle.h +++ b/tlsr8258/build/tlsr_tc32/apps/cloudsmets/board_8258_dongle.h @@ -69,10 +69,12 @@ extern "C" { // UART #if ZBHCI_UART -//#define UART_TX_PIN UART_TX_PB1 -//#define UART_RX_PIN UART_RX_PB7 -#define UART_TX_PIN UART_TX_PC2 -#define UART_RX_PIN UART_RX_PC3 +#define UART_TX_PIN UART_TX_PB1 +#define UART_RX_PIN UART_RX_PB7 + +// These used when not relaying via ESP32c3. +///#define UART_TX_PIN UART_TX_PC2 +///#define UART_RX_PIN UART_RX_PC3 #define UART_PIN_CFG() uart_gpio_set(UART_TX_PIN, UART_RX_PIN);// uart tx/rx pin set #endif diff --git a/tlsr8258/build/tlsr_tc32/apps/cloudsmets/zcl_cloudsmetsCb.c b/tlsr8258/build/tlsr_tc32/apps/cloudsmets/zcl_cloudsmetsCb.c index 6d75e64..728bf2a 100644 --- a/tlsr8258/build/tlsr_tc32/apps/cloudsmets/zcl_cloudsmetsCb.c +++ b/tlsr8258/build/tlsr_tc32/apps/cloudsmets/zcl_cloudsmetsCb.c @@ -639,7 +639,7 @@ status_t cloudsmets_identifyCb(zclIncomingAddrInfo_t *pAddrInfo, u8 cmdId, void static void cloudsmets_zclPublishPriceCmdHandler(zclIncomingAddrInfo_t *pAddrInfo, zcl_price_publishPriceCmd_t *pPublishPriceCmd) { #if ZBHCI_EN - u8 payload[56] = {0}; + u8 payload[59] = {0}; u8 *pBuf = payload; // Note that zbhci interrace is BIG endian.