arch: add MCU_RAW_FREQ for ATmega48P Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
1 files changed, 5 insertions(+), 0 deletions(-) M arch/atmega48p.h
M arch/atmega48p.h +5 -0
@@ 23,6 23,11 @@ #ifndef AVR_COMMON_ARCH_ATMEGA48P_H #define AVR_COMMON_ARCH_ATMEGA48P_H +/* the built-in oscillator runs at 8MHz */ +#ifndef MCU_RAW_FREQ +#define MCU_RAW_FREQ 8000000 +#endif + #define RAM_START_ADDR 0x100 #define RAM_END_ADDR 0x2ff