Thank you,Giovanni.
It's just as what you said.I add "#include 'hal.h'",and it's ok to produce the object code.
Search found 3 matches
- Fri Jul 01, 2011 2:07 am
- Forum: General Support
- Topic: how to use irq in ChibiOS?
- Replies: 2
- Views: 3818
- Thu Jun 30, 2011 9:35 am
- Forum: General Support
- Topic: how to use irq in ChibiOS?
- Replies: 2
- Views: 3818
how to use irq in ChibiOS?
hi,
I write a irq service.Some code like:
CH_IRQ_HANDLER(USART1_IRQHandler) {
CH_IRQ_PROLOGUE();
some code;
CH_IRQ_EPILOGUE();
}
and I use following code to initiate IRQ in main program:
NVICEnableVector(USART1_IRQn,CORTEX_PRIORITY_MASK(1));//this function is defined in /os/ports/GCC/ARMCMx ...
I write a irq service.Some code like:
CH_IRQ_HANDLER(USART1_IRQHandler) {
CH_IRQ_PROLOGUE();
some code;
CH_IRQ_EPILOGUE();
}
and I use following code to initiate IRQ in main program:
NVICEnableVector(USART1_IRQn,CORTEX_PRIORITY_MASK(1));//this function is defined in /os/ports/GCC/ARMCMx ...
- Thu Jun 16, 2011 3:26 am
- Forum: General Support
- Topic: more User Guides needed
- Replies: 1
- Views: 2634
more User Guides needed
Hi,
Thanks the developers for their effort on Chibios.It's really a good RTOS.It also has good reference manual.But,still, I cannot use it easily.
I think there are mainly 2 reasons for me:
1.I'm from China,and English is a little difficult for me to grasp it accurately.
2.User guides is not enough ...
Thanks the developers for their effort on Chibios.It's really a good RTOS.It also has good reference manual.But,still, I cannot use it easily.
I think there are mainly 2 reasons for me:
1.I'm from China,and English is a little difficult for me to grasp it accurately.
2.User guides is not enough ...