Sha256: 68df4d58a1ad3a41b256c9e928e2e5792a845cbc15150283e14f882c5697127e

Contents?: true

Size: 785 Bytes

Versions: 17

Compression:

Stored size: 785 Bytes

Contents

#include "unity.h"
#include "Types.h"
#include "UsartHardware.h"
#include "MockUsartConfigurator.h"
#include "MockUsartPutChar.h"

void setUp(void)
{
}

void tearDown(void)
{
}

void testInitShouldConfigureUsartPeripheralByCallingConfiguratorAppropriately(void)
{
  Usart_ConfigureUsartIO_Expect();
  Usart_EnablePeripheralClock_Expect();
  Usart_Reset_Expect();
  Usart_ConfigureMode_Expect();
  Usart_SetBaudRateRegister_Expect(73);
  Usart_Enable_Expect();

  UsartHardware_Init(73);
}

void testTransmitStringShouldSendDesiredStringOutUsingUsart(void)
{
  Usart_PutChar_Expect('h');
  Usart_PutChar_Expect('e');
  Usart_PutChar_Expect('l');
  Usart_PutChar_Expect('l');
  Usart_PutChar_Expect('o');
  
  UsartHardware_TransmitString("hello");
}

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ceedling-0.29.1 examples/temp_sensor/test/TestUsartHardware.c
ceedling-0.29.0 examples/temp_sensor/test/TestUsartHardware.c
ceedling-0.19.0 examples/temp_sensor/test/TestUsartHardware.c
ceedling-0.18.0 examples/temp_sensor/test/TestUsartHardware.c
ceedling-0.17.0 examples/temp_sensor/test/TestUsartHardware.c
ceedling-0.16.0 examples/temp_sensor/test/TestUsartHardware.c
ceedling-0.15.6 examples/temp_sensor/test/TestUsartHardware.c
ceedling-0.15.5 examples/temp_sensor/test/TestUsartHardware.c
ceedling-0.15.4 examples/temp_sensor/test/TestUsartHardware.c
ceedling-0.15.3 examples/temp_sensor/test/TestUsartHardware.c
ceedling-0.15.2 examples/temp_sensor/test/TestUsartHardware.c
ceedling-0.15.1 examples/temp_sensor/test/TestUsartHardware.c
ceedling-0.15.0 examples/temp_sensor/test/TestUsartHardware.c
ceedling-0.13.0 examples/temp_sensor/test/TestUsartHardware.c
ceedling-0.13.0.rc1 examples/temp_sensor/test/TestUsartHardware.c
ceedling-0.0.2 new_project_template/vendor/ceedling/examples/temp_sensor/test/TestUsartHardware.c
ceedling-0.0.1 new_project_template/vendor/ceedling/examples/temp_sensor/test/TestUsartHardware.c