Problem calling gptStartOneShotI from EXT callback
Posted: Sun Aug 19, 2012 7:14 am
Target: STM32F407
Ver: Trunk
I'm getting the debug assertion error below when I try to use gptStartOneShotI() from within my EXT callback:
chDbgAssert(gptp->state == GPT_READY,"gptStartContinuousI(), #1", "invalid state") // gpt.c
main() {
gptStart(&GPTD2, &gpt2cfg);
gptPolledDelay(&GPTD2, 1000);
extStart(&EXTD1, &extcfg);
}
extcb1 {
chSysLockFromIsr();
gptStartOneShotI(&GPTD2, 200);
chSysUnlockFromIsr();
}
Am I doing something wrong, or is this a bug? Thanks....!
Ver: Trunk
I'm getting the debug assertion error below when I try to use gptStartOneShotI() from within my EXT callback:
chDbgAssert(gptp->state == GPT_READY,"gptStartContinuousI(), #1", "invalid state") // gpt.c
main() {
gptStart(&GPTD2, &gpt2cfg);
gptPolledDelay(&GPTD2, 1000);
extStart(&EXTD1, &extcfg);
}
extcb1 {
chSysLockFromIsr();
gptStartOneShotI(&GPTD2, 200);
chSysUnlockFromIsr();
}
Am I doing something wrong, or is this a bug? Thanks....!