adriendesp commented on code in PR #16923:
URL: https://github.com/apache/nuttx/pull/16923#discussion_r2309532388
##########
arch/arm/src/xmc4/Kconfig:
##########
@@ -605,6 +657,32 @@ config XMC4_USIC2_CHAN1_ISI2S
Configure USIC2 Channel 1 for I2S audio
endchoice # USIC2 Channel 1 Protocol
+config XMC4_USIC2_CHAN0_TX_BUFFER_SIZE
+ int "Channel 0 Tx FIFO Buffer Size (non-UART)"
+ depends on !XMC4_USIC2_CHAN0_ISUART
+ default 16
+ ---help---
+ USIC2_CHAN0 is not an UART but user can still set the desired
offsets
+ for CHAN1 TX in USIC2 FIFIO buffer. The buffer is mapped as
follow :
+ CHAN0_TX[CHAN0_TX_BUFFER_SIZE] -
CHAN0_RX[CHAN10_RX_BUFFER_SIZE] - CHAN1_TX[CHAN2_TX_BUFFER_SIZE] -
CHAN1_RX[CHAN2_RX_BUFFER_SIZE]
+
+ Should be a power of 2 between 2 and 64
+ The sum of Rx and Tx buffers sizes of both
+ channels should be inferior to 64
+
+config XMC4_USIC2_CHAN0_RX_BUFFER_SIZE
Review Comment:
It was already used in xmc4_serial.c and xmc4_lowput.c.
But in my board I'm only using the USIC0_CHAN1 and it won't compile without
this changes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]