mirror of
https://github.com/StuckAtPrototype/Racer.git
synced 2024-10-20 22:49:48 +03:00
20 lines
471 B
C
20 lines
471 B
C
#ifndef GPIO_INTERRUPT_H
|
|
#define GPIO_INTERRUPT_H
|
|
|
|
#include <stdint.h>
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/queue.h"
|
|
|
|
// Define the interrupt pin
|
|
#define INTERRUPT_PIN 10
|
|
|
|
// Function prototypes
|
|
QueueHandle_t gpio_interrupt_get_evt_queue(void);
|
|
void configure_gpio_interrupt(void);
|
|
void start_gpio_interrupt_task(void);
|
|
|
|
// Declare the queue handle as extern so it can be accessed from main.c
|
|
extern QueueHandle_t gpio_evt_queue;
|
|
|
|
#endif // GPIO_INTERRUPT_H
|