void test_disableDWTComparator_given_DWT_COMP3_should_write_0_to_DWT_FUNC3()
{ 
  //Program function
	emulateSwdRegisterWrite(TAR_REG,SWD_AP,4,(uint32_t)(&DWT_COMP[3].FUNCTION));
	emulateSwdRegisterWrite(DRW_REG,SWD_AP,4,0);
  
  TEST_ASSERT_EQUAL(0,disableDWTComparator(COMPARATOR_3));
}
/*------------------disableDWTComparator--------------*/
void test_disableDWTComparator_given_DWT_COMP1_should_write_0_to_DWT_FUNC1()
{
  //Faking CSW to Word Size
  cswDataSize = CSW_WORD_SIZE ;
  
  //Program function
	emulateSwdRegisterWrite(TAR_REG,SWD_AP,4,(uint32_t)(&DWT_COMP[1].FUNCTION));
	emulateSwdRegisterWrite(DRW_REG,SWD_AP,4,0);
  
  TEST_ASSERT_EQUAL(0,disableDWTComparator(COMPARATOR_1));
}
void tearDown(void)
{
  disableDWTComparator(COMPARATOR_1);
  clearDWTTrapDebugEvent();
  disableDWTandITM();
}