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.3.1.3. Example_3 : Buzzer BeepingScenario :This project initializes and configures the GPIO ports of MCU which connects to the buzzer for tonegeneration. After I/O port being initialized, code then runs into an infinite loop and perform thefollowing tasks :● The buzzer start beeping for a specified period● The buzzer stop beeping for a specified periodProject Browsing :<strong>ePBB</strong>\Applications\Projects\PTK-STM32F207\EWARM-V6\ OS_None \base_buzzer\demo.ewwApplication groupStartup programmain() program<strong>ePBB</strong> LibrariesPTK Buzzerdevice driverPTK board levelInitial programMCU peripheralsdriverProject map fileProject image fileFigure-5. Buzzer project (Standalone)Code Listing :List-3. Buzzer Project execution starts at main() (Standalone : main.c)3-5 ePPB <strong>Development</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!