Skip to content

Commit

Permalink
Updating to 1000000 baud.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul D.Smith committed Jan 6, 2024
1 parent 53e33fb commit c2eeff3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tlsr8258/build/tlsr_tc32/apps/cloudsmets/app_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 6 additions & 4 deletions tlsr8258/build/tlsr_tc32/apps/cloudsmets/board_8258_dongle.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c2eeff3

Please sign in to comment.