diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-17 18:16:26 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-17 18:16:26 +0000 |
commit | f6ff614e9b23f889b29ac17c7ebfcc96ca3606b6 (patch) | |
tree | caafd1d3c517aa3b8210ac95758d54c681bffda0 /src/templates | |
parent | b66044d9698c9048623e328ea4d62fadd5293e11 (diff) | |
download | ChibiOS-f6ff614e9b23f889b29ac17c7ebfcc96ca3606b6.tar.gz ChibiOS-f6ff614e9b23f889b29ac17c7ebfcc96ca3606b6.tar.bz2 ChibiOS-f6ff614e9b23f889b29ac17c7ebfcc96ca3606b6.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@624 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/templates')
-rw-r--r-- | src/templates/chcore.c | 26 | ||||
-rw-r--r-- | src/templates/chcore.h | 30 |
2 files changed, 28 insertions, 28 deletions
diff --git a/src/templates/chcore.c b/src/templates/chcore.c index 677c4ea2f..e9f1868af 100644 --- a/src/templates/chcore.c +++ b/src/templates/chcore.c @@ -35,21 +35,21 @@ * Port-related initialization code.
* @note This function is usually empty. */
-void sys_init(void){
+void port_init(void){
}
/**
* Kernel-unlock action. Usually this function just disables interrupts but
* may perform more actions. */
-void sys_lock(void) {
+void port_lock(void) {
}
/**
* Kernel-unlock action. Usually this function just disables interrupts but
* may perform more actions.
*/
-void sys_unlock(void) {
+void port_unlock(void) {
}
/**
@@ -57,7 +57,7 @@ void sys_unlock(void) { * before invoking I-class APIs from interrupt handlers. The implementation
* is architecture dependent, in its simplest form it is void.
*/
-void sys_lock_from_isr(void) {
+void port_lock_from_isr(void) {
}
/**
@@ -65,26 +65,26 @@ void sys_lock_from_isr(void) { * after invoking I-class APIs from interrupt handlers. The implementation
* is architecture dependent, in its simplest form it is void.
*/
-void sys_unlock_from_isr(void) {
+void port_unlock_from_isr(void) {
}
/**
* Disables all the interrupt sources.
* @note Of course non maskable interrupt sources are not included. */
-void sys_disable() {
+void port_disable() {
}
/**
* Disables the interrupt sources that are not supposed to preempt the kernel. */
-void sys_suspend(void) {
+void port_suspend(void) {
}
/**
* Enables all the interrupt sources. */
-void sys_enable(void) {
+void port_enable(void) {
}
/**
@@ -93,7 +93,7 @@ void sys_enable(void) { * function but this will not take advantage of architecture-specific power
* saving modes. */
-void sys_wait_for_interrupt(void) {
+void port_wait_for_interrupt(void) {
}
/**
@@ -101,9 +101,9 @@ void sys_wait_for_interrupt(void) { * unrecoverable error is detected (as example because a programming error in
* the application code that triggers an assertion while in debug mode). */
-void sys_halt(void) {
+void port_halt(void) {
- sys_disable_all();
+ port_disable_all();
while (TRUE) {
}
}
@@ -113,14 +113,14 @@ void sys_halt(void) { * @param otp the thread to be switched out
* @param ntp the thread to be switched in
*/
-void sys_switch(Thread *otp, Thread *ntp) {
+void port_switch(Thread *otp, Thread *ntp) {
}
/**
* Prints a message on the system console.
* @param msg pointer to the message
*/
-void sys_puts(char *msg) {
+void port_puts(char *msg) {
}
/** @} */
diff --git a/src/templates/chcore.h b/src/templates/chcore.h index 92852fead..e4cf7d89e 100644 --- a/src/templates/chcore.h +++ b/src/templates/chcore.h @@ -113,34 +113,34 @@ typedef struct { * IRQ prologue code, inserted at the start of all IRQ handlers enabled to
* invoke system APIs. */
-#define SYS_IRQ_PROLOGUE()
+#define PORT_IRQ_PROLOGUE()
/**
* IRQ epilogue code, inserted at the end of all IRQ handlers enabled to
* invoke system APIs.
*/
-#define SYS_IRQ_EPILOGUE()
+#define PORT_IRQ_EPILOGUE()
/**
* IRQ handler function modifier. */
-#define SYS_IRQ_HANDLER
+#define PORT_IRQ_HANDLER
#ifdef __cplusplus
extern "C" {
#endif
- void sys_init(void);
- void sys_disable(void);
- void sys_suspend(void);
- void sys_enable(void);
- void sys_lock(void);
- void sys_unlock(void);
- void sys_disable_from_isr(void);
- void sys_enable_from_isr(void);
- void sys_wait_for_interrupt(void);
- void sys_halt(void);
- void sys_switch(Thread *otp, Thread *ntp);
- void sys_puts(char *msg);
+ void port_init(void);
+ void port_lock(void);
+ void port_unlock(void);
+ void port_lock_from_isr(void);
+ void port_unlock_from_isr(void);
+ void port_disable(void);
+ void port_suspend(void);
+ void port_enable(void);
+ void port_wait_for_interrupt(void);
+ void port_halt(void);
+ void port_switch(Thread *otp, Thread *ntp);
+ void port_puts(char *msg);
#ifdef __cplusplus
}
#endif
|