Files
Racer/firmware/main/gpio_interrupt.h
StuckAtPrototype 4110b70152 version 2.0
2024-10-14 22:33:43 -05:00

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