summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/atsam/libraries/libchip/include/sams70/system_sams70.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/arm/atsam/libraries/libchip/include/sams70/system_sams70.h')
-rw-r--r--c/src/lib/libbsp/arm/atsam/libraries/libchip/include/sams70/system_sams70.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/atsam/libraries/libchip/include/sams70/system_sams70.h b/c/src/lib/libbsp/arm/atsam/libraries/libchip/include/sams70/system_sams70.h
index 9ecad30583..3e74f5c900 100644
--- a/c/src/lib/libbsp/arm/atsam/libraries/libchip/include/sams70/system_sams70.h
+++ b/c/src/lib/libbsp/arm/atsam/libraries/libchip/include/sams70/system_sams70.h
@@ -29,6 +29,9 @@
#ifndef SYSTEM_SAMS70_H_INCLUDED
#define SYSTEM_SAMS70_H_INCLUDED
+#ifdef __rtems__
+#include <bsp/atsam-clock-config.h>
+#endif /* __rtems__ */
/* @cond 0 */
/**INDENT-OFF**/
@@ -46,7 +49,11 @@ extern uint32_t SystemCoreClock; /* System Clock Frequency (Core Clock) */
* @brief Setup the microcontroller system.
* Initialize the System and update the SystemCoreClock variable.
*/
+#ifndef __rtems__
void SystemInit(void);
+#else /* __rtems__ */
+void ATSAM_START_SRAM_SECTION SystemInit(void);
+#endif /* __rtems__ */
/**
* @brief Updates the SystemCoreClock with current core Clock