10.07.2015 Views

ePBB Development Guide.pdf

ePBB Development Guide.pdf

ePBB Development Guide.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Microtime Computer Inc.● To connect button I/O as interrupt source of EXTI0 (External Interrupt Line 0)● EXTI0 properties setupList-8-(3) :App_TaskStart() keeps toggling LED0 in the infinite loopList-8-(4) :These statements configure PA0 as input I/O pin for button sensing and interrupttriggering.List-8-(5) :This statement link PA0 to EXTI0 as interrupt source.List-3-(6) :These statements setup properties and enable interrupt for peripheral EXTI0 (in peripheralmodule).List-8-(7) :BSP_IntVectSet() installs EXTI0_IRQHandler, function pointer which points to interruptservice routine, to data structure BSP_IntVectTbl[]. List-9 shows details about the usage.List-8-(8) :It's the entry of EXTI0 interrupt service routine and perform the following tasks :● Toggling LED1● To clear the EXTI0 pending bit and allow the next trigger of interrupt EXTI0.List-9. Interrupt Routing (uCOS-II)3-17 ePPB <strong>Development</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!