aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/templates/chcore.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-11-23 18:15:56 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-11-23 18:15:56 +0000
commita1052ff43eb30723fcc801f6d3dcc637e1463145 (patch)
treefc90866fbf89ce827f0ab79e5d356c072cc76b34 /os/rt/templates/chcore.c
parent76b6b659291973e23b6ecbe8459baeac0577f1d8 (diff)
downloadChibiOS-a1052ff43eb30723fcc801f6d3dcc637e1463145.tar.gz
ChibiOS-a1052ff43eb30723fcc801f6d3dcc637e1463145.tar.bz2
ChibiOS-a1052ff43eb30723fcc801f6d3dcc637e1463145.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7528 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/templates/chcore.c')
-rw-r--r--os/rt/templates/chcore.c98
1 files changed, 22 insertions, 76 deletions
diff --git a/os/rt/templates/chcore.c b/os/rt/templates/chcore.c
index 2cb651c76..46a7679bc 100644
--- a/os/rt/templates/chcore.c
+++ b/os/rt/templates/chcore.c
@@ -33,89 +33,35 @@
#include "ch.h"
-/**
- * @brief Port-related initialization code.
- * @note This function is usually empty.
- */
-void port_init(void) {
-}
+/*===========================================================================*/
+/* Module local definitions. */
+/*===========================================================================*/
-/**
- * @brief Kernel-lock action.
- * @details Usually this function just disables interrupts but may perform more
- * actions.
- */
-void port_lock(void) {
-}
+/*===========================================================================*/
+/* Module exported variables. */
+/*===========================================================================*/
-/**
- * @brief Kernel-unlock action.
- * @details Usually this function just enables interrupts but may perform more
- * actions.
- */
-void port_unlock(void) {
-}
+/*===========================================================================*/
+/* Module local types. */
+/*===========================================================================*/
-/**
- * @brief Kernel-lock action from an interrupt handler.
- * @details This function is invoked before invoking I-class APIs from
- * interrupt handlers. The implementation is architecture dependent,
- * in its simplest form it is void.
- */
-void port_lock_from_isr(void) {
-}
+/*===========================================================================*/
+/* Module local variables. */
+/*===========================================================================*/
-/**
- * @brief Kernel-unlock action from an interrupt handler.
- * @details This function is invoked after invoking I-class APIs from interrupt
- * handlers. The implementation is architecture dependent, in its
- * simplest form it is void.
- */
-void port_unlock_from_isr(void) {
-}
+/*===========================================================================*/
+/* Module local functions. */
+/*===========================================================================*/
-/**
- * @brief Disables all the interrupt sources.
- * @note Of course non-maskable interrupt sources are not included.
- */
-void port_disable(void) {
-}
+/*===========================================================================*/
+/* Module exported functions. */
+/*===========================================================================*/
/**
- * @brief Disables the interrupt sources below kernel-level priority.
- * @note Interrupt sources above kernel level remains enabled.
- */
-void port_suspend(void) {
-}
-
-/**
- * @brief Enables all the interrupt sources.
- */
-void port_enable(void) {
-}
-
-/**
- * @brief Enters an architecture-dependent IRQ-waiting mode.
- * @details The function is meant to return when an interrupt becomes pending.
- * The simplest implementation is an empty function or macro but this
- * would not take advantage of architecture-specific power saving
- * modes.
- */
-void port_wait_for_interrupt(void) {
-}
-
-/**
- * @brief Halts the system.
- * @details This function is invoked by the operating system when an
- * unrecoverable error is detected (for example because a programming
- * error in the application code that triggers an assertion while in
- * debug mode).
+ * @brief Port-related initialization code.
+ * @note This function is usually empty.
*/
-void port_halt(void) {
-
- port_disable();
- while (TRUE) {
- }
+void _port_init(void) {
}
/**
@@ -128,7 +74,7 @@ void port_halt(void) {
* @param[in] ntp the thread to be switched in
* @param[in] otp the thread to be switched out
*/
-void port_switch(thread_t *ntp, thread_t *otp) {
+void _port_switch(thread_t *ntp, thread_t *otp) {
}
/** @} */