Use external 16MHz crystal
This commit is contained in:
parent
a48b71620f
commit
2d74be29e9
2
Makefile
2
Makefile
@ -31,7 +31,7 @@ DEBUG = stabs
|
|||||||
CSTANDARD = -std=gnu99
|
CSTANDARD = -std=gnu99
|
||||||
|
|
||||||
# Place -D or -U options here
|
# Place -D or -U options here
|
||||||
CDEFS = -DF_CPU=1000000L -D__AVR__ -D__AVR_ATmega328P__
|
CDEFS = -DF_CPU=16000000L -D__AVR__ -D__AVR_ATmega328P__
|
||||||
|
|
||||||
# Place -I options here
|
# Place -I options here
|
||||||
CINCS = -I $(INC_DIR)
|
CINCS = -I $(INC_DIR)
|
||||||
|
@ -12,11 +12,6 @@
|
|||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#endif /* DEBUG */
|
#endif /* DEBUG */
|
||||||
|
|
||||||
#ifndef F_CPU
|
|
||||||
#define F_CPU 1000000UL // Stock atmega328p
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
void read_temp(void)
|
void read_temp(void)
|
||||||
{
|
{
|
||||||
double d;
|
double d;
|
||||||
|
Loading…
Reference in New Issue
Block a user