Skip to content

fj138696/Xnergy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Xnergy Firmware Challenge

GPIO Module Design Task Assumptions

  • Button 1 pressed for 1sec - GREEN LED is ON and blinks for 1sec
  • Button 2 pressed for 5sec - RED LED is ON continously

test_app.c

  • handles button1 task after button release from pressing
  • handles button2 task after button release from pressing

button.c

  • handles GPIO initial setting
  • Edge/Level Detection
  • Logic Level: ACTIVE HIGH or ACTIVE LOW setting
  • button state if pressed or released

led.c

  • handles GPIO initial setting
  • GPIO setting to ON and OFF
  • cyclic timer for blinking

Dummy functions and header to avoid compile error

  • timer.c
  • timer.h
  • gpio.c
  • gpio.h
  • sys_type.h

About

Firmware Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages