Skip to content

Instantly share code, notes, and snippets.

View parsley72's full-sized avatar
🔥

Tom Isaacson parsley72

🔥
View GitHub Profile
@parsley72
parsley72 / uart.c
Last active May 4, 2021 02:00 — forked from ryankurte/uart.c
Simple unix serial implementation.This uses pthreads to receive and buffer incoming data for later use.
// https://gist.github.com/ryankurte/8143058
#include "uart.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <termios.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>