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.List-1-(4) :The always true statement leads to the infinite loop operation. The following threestatements are involved in this never ending story.List-1-(5) :Here we toggle the LED from ON to OFF or vice versa, the argument indicates which LEDshould be controlled.List-1-(6) :This delay routine allow MCU to be "postponed" for a specified period. The argumentspecifies the delay time in unit of millisecond (1/1000 second).3.1.2. Example_2 : Button DetectingScenario :This project initializes and configures the GPIO ports of MCU for buttons sensing and LEDsilluminating. After being initialized, code then runs into an infinite loop and perform the followingtasks :● Detecting button state (Pressed or Released)● Controlling the LED accordinglyProject Browsing :<strong>ePBB</strong>\Applications\Projects\PTK-STM32F207\EWARM-V6\ OS_None \base_button\demo.ewwFigure-4. Button project (Standalone)3-3 ePPB <strong>Development</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!