summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Ajax <[email protected]>2026-04-23 21:35:44 -0700
committerMike Ajax <[email protected]>2026-04-23 21:35:44 -0700
commitb3665a7b76b800ecc22818347682ed8dfa0632a4 (patch)
tree740345ddaef31231002cf2e1a9da8103a64afafb
parent7a73e6943d918405c2be42edc2dd06d3bed1b89c (diff)
typec/stm32: fix -Wcast-qual error, _rx_buf doesn't need const
-rw-r--r--src/portable/st/typec/typec_stm32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/st/typec/typec_stm32.c b/src/portable/st/typec/typec_stm32.c
index 518af6c72..0fed5de66 100644
--- a/src/portable/st/typec/typec_stm32.c
+++ b/src/portable/st/typec/typec_stm32.c
@@ -62,7 +62,7 @@ enum {
#define PHY_ORDERED_SET_SOP_PP_DEBUG (PHY_SYNC1 | (PHY_RST2<<5u) | (PHY_SYNC3<<10u) | (PHY_SYNC2<<15u)) // SOP'' Debug Ordered set coding
-static uint8_t const* _rx_buf;
+static uint8_t* _rx_buf;
static uint8_t const* _tx_pending_buf;
static uint16_t _tx_pending_bytes;
static uint16_t _tx_xferring_bytes;
@@ -340,7 +340,7 @@ void tcd_int_handler(uint8_t rhport) {
TU_LOG3("Hard Reset received\r\n");
// Re-arm RX DMA. _rx_buf is a pointer so sizeof(_rx_buf) would be 4 bytes —
// use the same size as usbc.c's _rx_buf (64 bytes) to avoid truncating messages.
- tcd_msg_receive(rhport, (uint8_t*) _rx_buf, 64);
+ tcd_msg_receive(rhport, _rx_buf, 64);
UCPD1->ICR = UCPD_ICR_RXHRSTDETCF;
}