patched the function pointer code
This commit is contained in:
parent
f035978610
commit
9dddf21eef
|
@ -8,15 +8,12 @@
|
|||
#define __AVR_ATtiny404__
|
||||
#endif
|
||||
|
||||
|
||||
#include <avr/io.h>
|
||||
#include "TriacOut.h"
|
||||
#include "RegEdit.h"
|
||||
|
||||
|
||||
void Delay_MicroSeconds_impl(double us);
|
||||
|
||||
void (*Delay_MicroSeconds)(double us) = &Delay_MicroSeconds_impl;
|
||||
|
||||
void TriacOut_InitTimerA(void)
|
||||
{
|
||||
|
||||
|
@ -47,7 +44,3 @@ void TriacOut_PulsePins(uint16_t pulse_time)
|
|||
RegEdit_ClearBit((void *) &PORTB.OUT, G2);
|
||||
RegEdit_ClearBit((void *) &PORTB.OUT, G3);
|
||||
}
|
||||
|
||||
void Delay_MicroSeconds_impl(double us){
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -24,11 +24,14 @@ void FakeDelay(double us)
|
|||
//do Nothing.
|
||||
}
|
||||
|
||||
void (*Delay_MicroSeconds)(double us) = FakeDelay;
|
||||
|
||||
|
||||
TEST_GROUP(test_TriacOut)
|
||||
{
|
||||
void setup()
|
||||
{
|
||||
UT_PTR_SET(Delay_MicroSeconds, FakeDelay);
|
||||
//UT_PTR_SET(Delay_MicroSeconds, FakeDelay);
|
||||
}
|
||||
void teardown()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue