TTK4155 Ping-pong project
button_driver.c File Reference
#include "general_header.h"
#include "button_driver.h"
Include dependency graph for button_driver.c:

Functions

int button_init (void)
 Initialize button registers. More...
 
uint8_t button_read (button_t button)
 Function to read joystick button or touch button push. More...
 

Detailed Description

Implementation of button driver.

Function Documentation

◆ button_init()

int button_init ( void  )

Initialize button registers.

Here is the caller graph for this function:

◆ button_read()

uint8_t button_read ( button_t  button)

Function to read joystick button or touch button push.

Parameters
buttonType of button to read.
Here is the caller graph for this function: