mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
XMC4 Serial: The Alternative Receive Interrupt was not being configured.
This commit is contained in:
@@ -417,15 +417,18 @@ int xmc4_uart_configure(enum usic_channel_e channel,
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
regval = getreg32(base + XMC4_USIC_INPR_OFFSET);
|
regval = getreg32(base + XMC4_USIC_INPR_OFFSET);
|
||||||
regval &= ~(USIC_INPR_TBINP_MASK | USIC_INPR_RINP_MASK | USIC_INPR_PINP_MASK);
|
regval &= ~(USIC_INPR_TBINP_MASK | USIC_INPR_RINP_MASK |
|
||||||
|
USIC_INPR_AINP_MASK | USIC_INPR_PINP_MASK);
|
||||||
|
|
||||||
if (((unsigned int)channel & 1) != 0)
|
if (((unsigned int)channel & 1) != 0)
|
||||||
{
|
{
|
||||||
regval |= (USIC_INPR_TBINP_SR1 | USIC_INPR_RINP_SR1 | USIC_INPR_PINP_SR1);
|
regval |= (USIC_INPR_TBINP_SR1 | USIC_INPR_RINP_SR1 |
|
||||||
|
USIC_INPR_AINP_SR1 | USIC_INPR_PINP_SR1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
regval |= (USIC_INPR_TBINP_SR0 | USIC_INPR_RINP_SR0 | USIC_INPR_PINP_SR0);
|
regval |= (USIC_INPR_TBINP_SR0 | USIC_INPR_RINP_SR0 |
|
||||||
|
USIC_INPR_AINP_SR0 | USIC_INPR_PINP_SR0);
|
||||||
}
|
}
|
||||||
|
|
||||||
putreg32(regval, base + XMC4_USIC_INPR_OFFSET);
|
putreg32(regval, base + XMC4_USIC_INPR_OFFSET);
|
||||||
|
|||||||
@@ -345,7 +345,8 @@ void board_tsc_teardown(void);
|
|||||||
* initialization, then this board interface should be provided.
|
* initialization, then this board interface should be provided.
|
||||||
*
|
*
|
||||||
* This is an internal OS interface. It is invoked by graphics sub-system
|
* This is an internal OS interface. It is invoked by graphics sub-system
|
||||||
* initialization logic (nx_start()).
|
* initialization logic (nx_start()) or from the LCD framebuffer driver
|
||||||
|
* (when the NX server is not used).
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
@@ -388,6 +389,9 @@ int board_ioctl(unsigned int cmd, uintptr_t arg);
|
|||||||
* multiple LCD devices.
|
* multiple LCD devices.
|
||||||
* board_lcd_uninitialize - Uninitialize the LCD support
|
* board_lcd_uninitialize - Uninitialize the LCD support
|
||||||
*
|
*
|
||||||
|
* Alternatively, board_graphics_setup() may be used if external graphics
|
||||||
|
* initialization is configured.
|
||||||
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_LCD
|
#ifdef CONFIG_LCD
|
||||||
|
|||||||
Reference in New Issue
Block a user