mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-07-11 14:50:22 +00:00
acba0a5a8a
- Relocated example project in preparation for adding real CMock system test git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@47 bf332499-1b4d-0410-844d-d2d48d5cc64c
23 lines
416 B
C
23 lines
416 B
C
#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());
|
|
}
|