Skip to content

Instantly share code, notes, and snippets.

View Guidoz1k's full-sized avatar
🔌
Solvitur Ambulando

Rigo aka RodrigoDM Guidoz1k

🔌
Solvitur Ambulando
View GitHub Profile
@Guidoz1k
Guidoz1k / esp32_2core_main.c
Last active May 5, 2023 15:45
How to run hard real time functions on both cores of the ESP32
#include <stdio.h>
#include "driver/gpio.h"
#include "driver/timer.h"
#include <esp_intr_alloc.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "sdkconfig.h"
#define SYNCPIN0 32 // interruption 0 work pin
#define SYNCPIN1 33 // interruption 1 work pin