Landtiger LPC1768 C BigLib 1
A self made, custom C library for the LandTiger board.
 
Loading...
Searching...
No Matches
buttons.h
Go to the documentation of this file.
1#ifndef BUTTONS_H
2#define BUTTONS_H
3
4#include "button_types.h"
5#include "types.h"
6
11
14void BUTTON_Deinit(void);
15
16// INTERRUPTS
17
23
28
36
40
41#endif
BUTTON_Source
void(* BUTTON_Function)(void)
BUTTON_Error
void BUTTON_SetFunction(BUTTON_Source source, BUTTON_Function func)
Binds a given interrupt to a functionality.
BUTTON_Error BUTTON_EnableSource(BUTTON_Source source, u8 int_priority)
Enables the interrupt generation of the given source, provided that there's a function associated to ...
Definition buttons_irq.c:84
void BUTTON_Deinit(void)
Deinitializes the buttons, by removing all jobs, disabling the interrupts, and removing the debouncin...
Definition buttons.c:43
BUTTON_Error BUTTON_Init(u8 options)
Initializes the BUTTON peripherals.
Definition buttons.c:15
void BUTTON_UnsetFunction(BUTTON_Source source)
Unbinds the previously set function from the selected interrupt source.
void BUTTON_DisableSource(BUTTON_Source source)
Disables the interrupt generation of the given source, but it leaves the function binding.
uint8_t u8
Definition types.h:8