X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Fat91sam7s%2Fhw%2Fhw_cpu.h;fp=examples%2Fat91sam7s%2Fhw%2Fhw_cpu.h;h=696526103748782ba4430a37bc772ee06fa79cd0;hb=24c21c92d29b76a3f0de0a107f4bafef7bb0f812;hp=0000000000000000000000000000000000000000;hpb=6b7a2e7b20bc7fe05a61c17d6d96eb70c67a09c9;p=bertos.git diff --git a/examples/at91sam7s/hw/hw_cpu.h b/examples/at91sam7s/hw/hw_cpu.h new file mode 100644 index 00000000..69652610 --- /dev/null +++ b/examples/at91sam7s/hw/hw_cpu.h @@ -0,0 +1,61 @@ +/** + * \file + * + * + * \brief Hardware-specific definitions + * + * \version $Id$ + * + * \author Bernie Innocenti + */ + +/*#* + *#* $Log$ + *#* Revision 1.1 2006/05/18 00:41:47 bernie + *#* New triface devlib application. + *#* + *#*/ + +#ifndef AT91SAM7SEK_HW_H +#define AT91SAM7SEK_HW_H + +/// CPU Clock frequency (48.023 MHz) +#define CLOCK_FREQ (48023000UL) + + +/* Timer IRQ strobe */ +//#if CONFIG_TIMER_STROBE +// #define TIMER_STROBE_ON ATOMIC(PORTD |= BV(PD0)) +// #define TIMER_STROBE_OFF ATOMIC(PORTD &= ~BV(PD0)) +// #define TIMER_STROBE_INIT ATOMIC(PORTD &= ~BV(PD0); DDRD |= BV(PD0)) +//#endif /* CONFIG_TIMER_STROBE */ + +#endif /* AT91SAM7SEK_HW_H */