Hi Mark,
Sorry, for some reason I never used your code for timing, I had been switching between projects and got mixed up.
I tried copying in the table below, but got errors , undefined identifiers RTS_TIMES etc..
I havent used the hardware timer yet, I have copied the below,and marked the ones not sure about, can you let me know what to set :
void fnTimer_0(void);
DMA_TIMER_SETUP OE_negate;
negate.int_type = DMA_TIMER_INTERRUPT;
negate.channel = //not sure here..
negate.int_priority = //not sure here..
negate.int_handler = fnTimer_0; // enter timer call-back
negate.mode = (DMA_TIMER_INTERNAL_CLOCK | DMA_TIMER_SINGLE_SHOT_INTERRUPT);
negate.count_delay = DMA_TIMER_US_DELAY(1,1,DMA_TIMER_US_DELAY(1,1,usRTSTimes[SERIAL_BAUD_1200][1])
;//1200baud 7 bit
void fnTimer_0(void)
{
set pin high....
}
extern void fnUARTFrameTermination(QUEUE_HANDLE Channel)
{
fnConfigureInterrupt((void *)OE_negate); // start last delay to negation
}
Many Thanks
Neil