Skip to content

Instantly share code, notes, and snippets.

View lategoodbye's full-sized avatar

Stefan Wahren lategoodbye

  • chargebyte GmbH
  • Germany
View GitHub Profile
@lategoodbye
lategoodbye / anybaud.c
Last active November 4, 2022 19:54 — forked from peterhurley/anybaud.c
/*
* Allows to set arbitrary speed for the serial device on Linux.
* stty allows to set only predefined values: 9600, 19200, 38400, 57600, 115200, 230400, 460800.
*/
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>