diff options
Diffstat (limited to 'cfg')
-rw-r--r-- | cfg/chconf.h | 2 | ||||
-rw-r--r-- | cfg/halconf.h | 2 | ||||
-rw-r--r-- | cfg/osalconf.h | 69 |
3 files changed, 71 insertions, 2 deletions
diff --git a/cfg/chconf.h b/cfg/chconf.h index 25d444a..f935558 100644 --- a/cfg/chconf.h +++ b/cfg/chconf.h @@ -55,7 +55,7 @@ * @brief Auto starts threads when @p chSysInit() is invoked.
*/
#if !defined(CH_CFG_AUTOSTART_THREADS)
-#define CH_CFG_AUTOSTART_THREADS TRUE
+#define CH_CFG_AUTOSTART_THREADS FALSE
#endif
/** @} */
diff --git a/cfg/halconf.h b/cfg/halconf.h index 6688b95..e3a57ae 100644 --- a/cfg/halconf.h +++ b/cfg/halconf.h @@ -447,7 +447,7 @@ * @note Disabling this option saves both code and data space.
*/
#if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
-#define SPI_USE_WAIT FALSE
+#define SPI_USE_WAIT TRUE
#endif
/**
diff --git a/cfg/osalconf.h b/cfg/osalconf.h new file mode 100644 index 0000000..0d772ed --- /dev/null +++ b/cfg/osalconf.h @@ -0,0 +1,69 @@ +/*
+ ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
+
+ 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
+
+ http://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.
+*/
+
+/**
+ * @file templates/halconf.h
+ * @brief Bare-metal OSAL configuration header.
+ *
+ * @addtogroup OSAL_CONF
+ * @{
+ */
+
+#ifndef OSALCONF_H
+#define OSALCONF_H
+
+/**
+ * @brief Frequency in Hertz of the system tick.
+ */
+#if !defined(OSAL_ST_FREQUENCY) || defined(__DOXYGEN__)
+#define OSAL_ST_FREQUENCY 0
+#endif
+
+#define OSAL_ST_MODE OSAL_ST_MODE_NONE
+
+/**
+ * @brief Enables OSAL assertions.
+ */
+#if !defined(OSAL_DBG_ENABLE_ASSERTS) || defined(__DOXYGEN__)
+#define OSAL_DBG_ENABLE_ASSERTS TRUE
+#endif
+
+/**
+ * @brief Enables OSAL functions parameters checks.
+ */
+#if !defined(OSAL_DBG_ENABLE_CHECKS) || defined(__DOXYGEN__)
+#define OSAL_DBG_ENABLE_CHECKS TRUE
+#endif
+
+/**
+ * @brief OSAL initialization hook.
+ */
+#if !defined(OSAL_INIT_HOOK) || defined(__DOXYGEN__)
+#define OSAL_INIT_HOOK() { \
+}
+#endif
+
+/**
+ * @brief Idle loop hook macro.
+ */
+#if !defined(OSAL_IDLE_HOOK) || defined(__DOXYGEN__)
+#define OSAL_IDLE_HOOK() { \
+}
+#endif
+
+#endif /* OSALCONF_H */
+
+/** @} */
|