Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 666 Bytes

README.md

File metadata and controls

27 lines (23 loc) · 666 Bytes

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