Skip to content

Instantly share code, notes, and snippets.

View romatou18's full-sized avatar

rsacchettini romatou18

View GitHub Profile
@romatou18
romatou18 / HardwareSerial.cpp
Created March 12, 2020 23:51 — forked from shaielc/HardwareSerial.cpp
interrupt extension for UART
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "HardwareSerial.h"
HardwareSerial Serial(0);
HardwareSerial::HardwareSerial(int uart_nr) : _uart_nr(uart_nr), _uart(NULL) {}
void HardwareSerial::setInterrupt(void(*arg)() )