I used the code posted by CheBuzz on 12 Dec 2011 04:26. Is this the "best" way to bit bang a 1 wire interface?
Edit; Question:
tickDelay(int tick)
One tick do represent 5uS of wait.
tickSleep(int tick)
Does tick represent a 5uS wait or 1uS?
I guess the first
Edit 2; I can't get the GPT3 to work. The gptp->state is equal to GPT_STOP, where it expects / requires to be GPT_READY. I already changed the chBSemReset to set the semaphore as taken.
Possible solution; It seems like it that, in tickSleep(), the gptStart(&GPTD3, &gpt3cfg); is forgotten. Adding that, fix the debug assertion