You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
394 B
22 lines
394 B
#include "unity.h"
|
|
#include "Types.h"
|
|
#include "UsartTransmitBufferStatus.h"
|
|
|
|
AT91S_USART Usart0Peripheral;
|
|
|
|
void setUp(void)
|
|
{
|
|
}
|
|
|
|
void tearDown(void)
|
|
{
|
|
}
|
|
|
|
void testReadyToTransmitShouldReturnStatusPerTransmitBufferReadyStatus(void)
|
|
{
|
|
AT91C_BASE_US0->US_CSR = 0;
|
|
TEST_ASSERT(!Usart_ReadyToTransmit());
|
|
|
|
AT91C_BASE_US0->US_CSR = AT91C_US_TXRDY;
|
|
TEST_ASSERT(Usart_ReadyToTransmit());
|
|
}
|
|
|