From 3c57e466444d95d4358eb4f0e2a8130dcfb0f55b Mon Sep 17 00:00:00 2001 From: aleph Date: Mon, 20 Sep 2010 17:02:57 +0000 Subject: [PATCH] SAM3 port: add clock initialization stubs git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4249 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/cortex-m3/drv/clock_cm3.h | 2 ++ bertos/cpu/cortex-m3/drv/clock_sam3.c | 42 ++++++++++++++++++++++++++ bertos/cpu/cortex-m3/drv/clock_sam3.h | 43 +++++++++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 bertos/cpu/cortex-m3/drv/clock_sam3.c create mode 100644 bertos/cpu/cortex-m3/drv/clock_sam3.h diff --git a/bertos/cpu/cortex-m3/drv/clock_cm3.h b/bertos/cpu/cortex-m3/drv/clock_cm3.h index 8abc4eef..0479f902 100644 --- a/bertos/cpu/cortex-m3/drv/clock_cm3.h +++ b/bertos/cpu/cortex-m3/drv/clock_cm3.h @@ -42,6 +42,8 @@ #include "clock_lm3s.h" #elif CPU_CM3_STM32 #include "clock_stm32.h" +#elif CPU_CM3_AT91SAM3 + #include "clock_sam3.h" /*#elif Add other Cortex-M3 CPUs here */ #else #error Unknown CPU diff --git a/bertos/cpu/cortex-m3/drv/clock_sam3.c b/bertos/cpu/cortex-m3/drv/clock_sam3.c new file mode 100644 index 00000000..967e3798 --- /dev/null +++ b/bertos/cpu/cortex-m3/drv/clock_sam3.c @@ -0,0 +1,42 @@ +/** + * \file + * + * + * \brief AT91SAM3 clocking driver. + * + * \author Stefano Fedrigo + */ + +#include "clock_sam3.h" + +void clock_init(void) +{ +} diff --git a/bertos/cpu/cortex-m3/drv/clock_sam3.h b/bertos/cpu/cortex-m3/drv/clock_sam3.h new file mode 100644 index 00000000..82af6547 --- /dev/null +++ b/bertos/cpu/cortex-m3/drv/clock_sam3.h @@ -0,0 +1,43 @@ +/** + * \file + * + * + * \brief Low-level clocking driver for AT91SAM3. + * + * \author Stefano Fedrigo + */ + +#ifndef DRV_AT91SAM3_CLOCK_H +#define DRV_AT91SAM3_CLOCK_H + +void clock_init(void); + +#endif /* DRV_AT91SAM3_CLOCK_H */ -- 2.25.1