/*********************************************************************************************************************** * Function Name: main * Description : This function implements main function. * Arguments : None * Return Value : None ***********************************************************************************************************************/ void main(void) { /* Start user code. Do not edit comment generated here */ uint16_t j; DTC_Create(); // initialize with modified versions ADC_Create(); TMR_RJ0_Create(); while(1) { setupChain(); STOP(); // within the ADC interrupt, output is set low // allow for some delay to trigger on the pulse with the scope, for debug // will also flash the LED on the Promo board for(j=0;j<65535;j++); P7_bit.no7 = 1; for(j=0;j<65535;j++); for(j=0;j<65535;j++); for(j=0;j<65535;j++); }; /* End user code. Do not edit comment generated here */ }
void testGroup_isLink(CuTest *testCase) { cactusGroupTestSetup(); CuAssertTrue(testCase, !group_isLink(group2)); Chain *chain = setupChain(); CuAssertTrue(testCase, group_isLink(group2)); chain_destruct(chain); CuAssertTrue(testCase, !group_isLink(group2)); cactusGroupTestTeardown(); }
void testGroup_getLink(CuTest *testCase) { cactusGroupTestSetup(); CuAssertTrue(testCase, group_getLink(group2) == NULL); Chain *chain = setupChain(); CuAssertTrue(testCase, group_getLink(group2) == chain_getFirst(chain)); chain_destruct(chain); CuAssertTrue(testCase, group_getLink(group2) == NULL); cactusGroupTestTeardown(); }