Open zerberus666 opened 1 year ago
There is wrong bit name in file portserial.c in function void vMBPortSerialEnable( BOOL xRxEnable, BOOL xTxEnable ) :
void vMBPortSerialEnable( BOOL xRxEnable, BOOL xTxEnable )
if( xTxEnable ) { UCSRB |= _BV( TXEN ) | _BV( UDRE ); #ifdef RTS_ENABLE RTS_HIGH; #endif } else { UCSRB &= ~( _BV( UDRE ) ); }
Must be:
if( xTxEnable ) { UCSRB |= _BV( TXEN ) | _BV( UDRIE ); #ifdef RTS_ENABLE RTS_HIGH; #endif } else { UCSRB &= ~( _BV( UDRIE ) ); }
May be UDRIE must be defined like #define UDRIE UDRIE0 //or UDRIE1 in file port.h
UDRIE
#define UDRIE UDRIE0 //or UDRIE1
There is wrong bit name in file portserial.c in function
void vMBPortSerialEnable( BOOL xRxEnable, BOOL xTxEnable )
:Must be:
May be
UDRIE
must be defined like#define UDRIE UDRIE0 //or UDRIE1
in file port.h