aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/chcore.c64
-rw-r--r--src/templates/chcore.h21
2 files changed, 1 insertions, 84 deletions
diff --git a/src/templates/chcore.c b/src/templates/chcore.c
index 5a887d6ed..dbcf26ced 100644
--- a/src/templates/chcore.c
+++ b/src/templates/chcore.c
@@ -25,9 +25,7 @@
#include <ch.h>
/*
- * This file is just a template, it contains the function prototypes and the
- * doxigen documentation. The implementation of the following functions is
- * architecture/compiler specific.
+ * This file is a template of the system driver functions provided by a port.
*/
/**
@@ -45,64 +43,4 @@ void _idle(void *p) {
;
}
-/**
- * Abonormal system termination handler. Invoked by the ChibiOS/RT when an
- * abnormal unrecoverable condition is met.
- */
-void chSysHalt(void) {
-
- chSysLock();
-
- while (TRUE)
- ;
-}
-
-/**
- * Enables the interrupts, it is only invoked once into \p chSysInit().
- */
-void chSysEnable(void) {
-}
-
-/**
- * Enters the ChibiOS/RT system mutual exclusion zone. The implementation is
- * architecture dependent, on single core systems usually this function usually
- * just disables the interrupts.
- * @note The code in the system mutual exclusion zone must be as light and
- * fast as possible, the system performance is affected by this.
- * @note The use of system mutual exclusion zones are not recommended in
- * the user code, it is a better idea to use the Semaphores instead.
- */
-void chSysLock(void) {
-}
-
-/**
- * Leaves the ChibiOS/RT system mutual exclusion zone. The implementation is
- * architecture dependent, on single core systems usually this function usually
- * just enables the interrupts.
- * @note The code in the system mutual exclusion zone must be as light and
- * fast as possible, the system performance is affected by this.
- * @note The use of system mutual exclusion zones are not recommended in
- * the user code, it is a better idea to use the Semaphores instead.
- */
-void chSysUnlock(void) {
-}
-
-/**
- * Performs a context switch.
- * This is the most critical code in any port, this function is responsible
- * for the context switch between 2 threads.
- * @param otp the thread to be switched out
- * @param ntp the thread to be switched in
- * @note The implementation of this code affects <b>directly</b> the context
- * switch performance so optimize here as much as you can.
- */
-void chSysSwitchI(Thread *otp, Thread *ntp) {}
-
-/**
- * Prints a message on the system console (if any).
- * @param msg the message to be printed on the system console
- */
-void chSysPuts(char *msg) {
-}
-
/** @} */
diff --git a/src/templates/chcore.h b/src/templates/chcore.h
index e551f3a61..a1bc48db1 100644
--- a/src/templates/chcore.h
+++ b/src/templates/chcore.h
@@ -106,31 +106,10 @@ typedef struct {
*/
#define WORKING_AREA(s, n) stkalign_t s[THD_WA_SIZE(n) / sizeof(stkalign_t)];
-/**
- * IRQ handler enter code.
- * @note Usually IRQ handlers functions are also declared naked.
- * @note On some architectures this macro can be empty.
- */
-#define chSysIRQEnterI()
-
-/**
- * IRQ handler exit code.
- * @note Usually IRQ handlers function are also declared naked.
- * @note This macro usually performs the final reschedulation by using
- * \p chSchRescRequiredI() and \p chSchDoRescheduleI().
- */
-#define chSysIRQExitI()
-
#ifdef __cplusplus
extern "C" {
#endif
void _idle(void *p);
- void chSysHalt(void);
- void chSysEnable(void);
- void chSysLock(void);
- void chSysUnlock(void);
- void chSysSwitchI(Thread *otp, Thread *ntp);
- void chSysPuts(char *msg);
#ifdef __cplusplus
}
#endif