Search found 5 matches

by Jack666
Thu Oct 13, 2016 1:56 pm
Forum: ChibiOS/HAL
Topic: Fast interrupt with OS-Less
Replies: 2
Views: 2848

Re: Fast interrupt with OS-Less

Thank you Giovanni.

And for readers who want to write their own interrupt handler with ChibiOS drivers, like me:
- Don't forget to declare the SUPPRESS_ISR macro. (in my case, the timer4: STM32_TIM4_SUPPRESS_ISR)
- Don't forget to clear the status register flag in your ISR
- Don't forget to not ...
by Jack666
Thu Oct 13, 2016 10:23 am
Forum: ChibiOS/HAL
Topic: Fast interrupt with OS-Less
Replies: 2
Views: 2848

Fast interrupt with OS-Less

Hi,

I would like to use a fast interrupt to use with the GPT driver without OS (os-less).
I can't declare a fast interrupt with CH_FAST_INTERRUPT_HANDLER as it belong to RT kernel.
I can declare a "normal" interrupt with OSAL_IRQ_HANDLER() (defined in osal.h), but there is no OSAL_FAST_IRQ_HANDLER ...
by Jack666
Mon Oct 03, 2016 1:19 pm
Forum: ChibiOS/HAL
Topic: gptPolledDelay()
Replies: 3
Views: 4423

Re: gptPolledDelay()

Thank you!
by Jack666
Mon Oct 03, 2016 11:06 am
Forum: ChibiOS/HAL
Topic: gptPolledDelay()
Replies: 3
Views: 4423

Re: gptPolledDelay()

Sorry, i've double clicked the "submit" button, and created two threads. Oups...
by Jack666
Mon Oct 03, 2016 11:04 am
Forum: ChibiOS/HAL
Topic: gptPolledDelay()
Replies: 3
Views: 4423

gptPolledDelay()

Hi everybody.

I'm quite new to ChibiOS and i have a question about gptPolledDelay().
I want to make small delay (between 20 and 200 micro seconds). According to this blog , the best way is to use gptPolledDelay().

I tested my code with an olimex P103 board and ChibiOS 16.1.5. I take the demo code ...