git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@589 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
9f6887fdd7
commit
56221d3e7f
|
@ -85,7 +85,7 @@ static void ServeInterrupt(USART_TypeDef *u, FullDuplexDriver *com) {
|
|||
/*
|
||||
* USART1 IRQ service routine.
|
||||
*/
|
||||
void VectorD4(void) {
|
||||
SYS_IRQ_HANDLER void VectorD4(void) {
|
||||
|
||||
chSysIRQEnterI();
|
||||
ServeInterrupt(USART1, &COM1);
|
||||
|
@ -106,7 +106,7 @@ static void OutNotify1(void) {
|
|||
/*
|
||||
* USART2 IRQ service routine.
|
||||
*/
|
||||
void VectorD8(void) {
|
||||
SYS_IRQ_HANDLER void VectorD8(void) {
|
||||
|
||||
chSysIRQEnterI();
|
||||
ServeInterrupt(USART2, &COM2);
|
||||
|
@ -127,7 +127,7 @@ static void OutNotify2(void) {
|
|||
/*
|
||||
* USART3 IRQ service routine.
|
||||
*/
|
||||
void VectorDC(void) {
|
||||
SYS_IRQ_HANDLER void VectorDC(void) {
|
||||
|
||||
chSysIRQEnterI();
|
||||
ServeInterrupt(USART3, &COM3);
|
||||
|
|
|
@ -62,7 +62,7 @@ void threadstart(void) {
|
|||
* This interrupt is used as system tick.
|
||||
* @note The timer is initialized in the board setup code.
|
||||
*/
|
||||
void SysTickVector(void) {
|
||||
SYS_IRQ_HANDLER void SysTickVector(void) {
|
||||
|
||||
chSysIRQEnterI();
|
||||
chSysLockI();
|
||||
|
|
|
@ -186,9 +186,16 @@ typedef struct {
|
|||
*/
|
||||
#define sys_enable_from_isr() sys_enable()
|
||||
|
||||
#if ENABLE_WFI_IDLE != 0
|
||||
/**
|
||||
* This port function is implemented as inlined code for performance reasons.
|
||||
*/
|
||||
#define sys_wait_for_interrupt() { \
|
||||
asm volatile ("wfi"); \
|
||||
}
|
||||
#else
|
||||
#define sys_wait_for_interrupt()
|
||||
#endif
|
||||
|
||||
/**
|
||||
* This port function is implemented as inlined code for performance reasons.
|
||||
|
|
Loading…
Reference in New Issue