Started following some tutorial on att85 usi. Downloaded example code from make avr book.

This commit is contained in:
Dan
2022-09-20 01:08:01 -04:00
parent d0cbc0000e
commit 361a828c46
295 changed files with 68746 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
/* Support functions that otherwise make the main code more readable */
/* Includes */
#include <util/delay.h>
#include <avr/io.h>
#include "USART.h"
/* Function Prototypes in support.c */
void printMilliseconds(uint16_t value);
/* Given a value in milliseconds, prints out how many seconds
you took over the serial port. Does ascii conversion, prints
decimal point, and drops extra leading zeros.
*/
void printComments(uint16_t value);
/* Given a value in milliseconds, rates your reaction time */
void randomDelay(void);
/* Waits for a "random" delay from 1 - 3.5 sec */
/* Requires timer 1 initialized and running */
/* It's not really random, but very hard to control
like coin-flipping. */