Skip to content

Instantly share code, notes, and snippets.

View LittleBuster's full-sized avatar

Sergey Denisov LittleBuster

  • Denisov Smart Devices Limited
  • Russia, Novosibirsk city
View GitHub Profile
@adnbr
adnbr / simple-usart-commands.c
Last active September 22, 2022 07:01
Parsing simple USART commands on an AVR
/* Parsing simple USART commands
* -----------------------------
* For more information see
* http://www.adnbr.co.uk/articles/parsing-simple-usart-commands
*
* 996 bytes - ATmega168 - 16MHz
*/
#define F_CPU 16000000UL
#define BAUD 19200
@adnbr
adnbr / counting-millis.c
Created April 21, 2012 19:01
Counting the passing of milliseconds using Timer1 on AVR.
/* Counting Milliseconds with Timer1
* ---------------------------------
* For more information see
* http://www.adnbr.co.uk/articles/counting-milliseconds
*
* 620 bytes - ATmega168 - 16MHz
*/
// 16MHz Clock
#define F_CPU 16000000UL