aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredolomb <none@example.com>2018-09-06 11:32:37 +0000
committeredolomb <none@example.com>2018-09-06 11:32:37 +0000
commit7fdf849e4ee0764fbeb8acd9df92b5e432c79424 (patch)
tree63b7b99ceffdd97ecf9ecbf1ea1bd3e112bce221
parented50615d58ad755e7288cd444d2326432ca2ab2a (diff)
downloadChibiOS-7fdf849e4ee0764fbeb8acd9df92b5e432c79424.tar.gz
ChibiOS-7fdf849e4ee0764fbeb8acd9df92b5e432c79424.tar.bz2
ChibiOS-7fdf849e4ee0764fbeb8acd9df92b5e432c79424.zip
Fixed bugs
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12238 110e8d01-0319-4d1e-a829-52ad28d1bb01
-rwxr-xr-xdemos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/chconf.h2
-rw-r--r--os/common/ext/ARM/CMSIS/Core_A/Include/system_ARMCA5.h65
-rw-r--r--os/hal/ports/SAMA/SAMA5D2x/sama_trng.h7
3 files changed, 73 insertions, 1 deletions
diff --git a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/chconf.h b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/chconf.h
index b0ca2e3bd..c30360214 100755
--- a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/chconf.h
+++ b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/chconf.h
@@ -52,7 +52,7 @@
* setting also defines the system tick time unit.
*/
#if !defined(CH_CFG_ST_FREQUENCY)
-#define CH_CFG_ST_FREQUENCY 1000=/*=periodic=tick.=*/
+#define CH_CFG_ST_FREQUENCY 1000 /* periodic tick. */
#endif
/**
diff --git a/os/common/ext/ARM/CMSIS/Core_A/Include/system_ARMCA5.h b/os/common/ext/ARM/CMSIS/Core_A/Include/system_ARMCA5.h
new file mode 100644
index 000000000..7d48ceb91
--- /dev/null
+++ b/os/common/ext/ARM/CMSIS/Core_A/Include/system_ARMCA5.h
@@ -0,0 +1,65 @@
+/******************************************************************************
+ * @file system_ARMCA5.h
+ * @brief CMSIS Device System Header File for ARM Cortex-A Device Series
+ * @version V1.00
+ * @date 16 Mar 2017
+ *
+ * @note
+ *
+ ******************************************************************************/
+/*
+ * Copyright (c) 2009-2017 ARM Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may
+ * not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __SYSTEM_ARMCA5_H
+#define __SYSTEM_ARMCA5_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdint.h>
+
+extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
+
+/**
+ \brief Setup the microcontroller system.
+
+ Initialize the System and update the SystemCoreClock variable.
+ */
+extern void SystemInit (void);
+
+
+/**
+ \brief Update SystemCoreClock variable.
+
+ Updates the SystemCoreClock with current core Clock retrieved from cpu registers.
+ */
+extern void SystemCoreClockUpdate (void);
+
+/**
+ \brief Create Translation Table.
+
+ Creates Memory Management Unit Translation Table.
+ */
+extern void MMU_CreateTranslationTable(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __SYSTEM_ARMCA5_H */
diff --git a/os/hal/ports/SAMA/SAMA5D2x/sama_trng.h b/os/hal/ports/SAMA/SAMA5D2x/sama_trng.h
index 4eed31160..ba9ab34a9 100644
--- a/os/hal/ports/SAMA/SAMA5D2x/sama_trng.h
+++ b/os/hal/ports/SAMA/SAMA5D2x/sama_trng.h
@@ -25,6 +25,13 @@
#ifndef SAMA_TRNG_LLD_H
#define SAMA_TRNG_LLD_H
+/**
+ * @brief Using the TRNG driver.
+ */
+#if !defined(HAL_USE_TRNG) || defined(__DOXYGEN__)
+#define HAL_USE_TRNG FALSE
+#endif
+
#if (HAL_USE_TRNG) || defined(__DOXYGEN__)
/*===========================================================================*/