25 #include "../INC/keysIRQhandler.h"
30 uint32_t edgesCaptured = 0;
39 if (OS_NO_ERR != err) {
40 error(
"KEY_ISR_FLAG_ERR: %i\n", err);
45 if (OS_NO_ERR != err) {
46 error(
"KEY_ISR_FLAG_ERR: %i\n", err);
51 if (OS_NO_ERR != err) {
52 error(
"KEY_ISR_FLAG_ERR: %i\n", err);
#define PIO_KEY_MINUS_IR2_MSK
Increase steps mask for PIO-Key.
#define PIO_KEY_PLUS_IR3_MSK
Decreses steps mask for PIO-Key.
#define PIO_KEY_RS_IR0_MSK
Run/Stop mask for PIO-Key.
#define error(...)
Prints the Error-messages in the terminal.
static __inline__ void PIO_KEY_ClearEdgeCptBits(uint32_t clearbits)
Function to clear bits of keys edgecapture register.
#define KEY3_PLUS_EVENT
increases the steps to turn via key_3
static __inline__ uint32_t PIO_KEY_GetEdgeCpt(void)
Function to read content of keys edgecapture register.
#define KEY0_RS_EVENT
runs or stops the motor via key_0
#define KEY2_MINUS_EVENT
decreases the steps to turn via key_2
void keysIRQhandler(void *context)
IRQ-Handler for key-input.
OS_FLAG_GRP * userInputTaskFlagsGrp
The flags group used in the user-input-task.