1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

Bugfix UARTClass

This commit is contained in:
Cristian Maglie
2011-11-23 23:15:13 +01:00
parent 5c88944e39
commit c8ec267d0b
3 changed files with 50 additions and 62 deletions

View File

@ -265,24 +265,15 @@ extern const PinDescription g_APinDescription[]=
* UART objects
*/
RingBuffer rx_buffer1 ;
RingBuffer tx_buffer1 ;
UARTClass Serial( UART, UART_IRQn, ID_UART, &rx_buffer1, &tx_buffer1 ) ;
#ifdef __cplusplus
extern "C" {
#endif
UARTClass Serial( UART, UART_IRQn, ID_UART, &rx_buffer1 ) ;
// IT handlers
extern void UART_IrqHandler( void )
void UART_IrqHandler(void)
{
Serial.IrqHandler() ;
}
#ifdef __cplusplus
}
#endif
// ----------------------------------------------------------------------------
/*
* USART objects