diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-12-30 18:08:30 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-12-30 18:08:30 +0000 |
commit | 3c101f29013c71f6a786f9ac7bdbf29499c47cbb (patch) | |
tree | 9264123e325ad43f6e89e8a8847198b061372d66 /src/templates/chcore.c | |
parent | e04e6ada046db4f8a8de0b9895af4dca51a36f8d (diff) | |
download | ChibiOS-3c101f29013c71f6a786f9ac7bdbf29499c47cbb.tar.gz ChibiOS-3c101f29013c71f6a786f9ac7bdbf29499c47cbb.tar.bz2 ChibiOS-3c101f29013c71f6a786f9ac7bdbf29499c47cbb.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@566 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/templates/chcore.c')
-rw-r--r-- | src/templates/chcore.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/templates/chcore.c b/src/templates/chcore.c index c15f1c490..5a887d6ed 100644 --- a/src/templates/chcore.c +++ b/src/templates/chcore.c @@ -88,12 +88,19 @@ void chSysUnlock(void) { }
/**
- * Context switch.
+ * 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) {
}
|