fix consistency #if and #if defined()
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include "bas_types.h"
|
#include "bas_types.h"
|
||||||
|
|
||||||
#if MACHINE_FIREBEE
|
#if defined(MACHINE_FIREBEE)
|
||||||
#include "firebee.h"
|
#include "firebee.h"
|
||||||
#elif MACHINE_M5484LITE
|
#elif defined(MACHINE_M5484LITE)
|
||||||
#include "m5484l.h"
|
#include "m5484l.h"
|
||||||
#endif /* MACHINE_FIREBEE */
|
#endif /* MACHINE_FIREBEE */
|
||||||
|
|
||||||
|
|||||||
@@ -1104,9 +1104,9 @@ void init_eport(void)
|
|||||||
/* configure IRQ1-7 pins on EPORT falling edge triggered */
|
/* configure IRQ1-7 pins on EPORT falling edge triggered */
|
||||||
MCF_EPORT_EPPAR = MCF_EPORT_EPPAR_EPPA7(MCF_EPORT_EPPAR_FALLING) |
|
MCF_EPORT_EPPAR = MCF_EPORT_EPPAR_EPPA7(MCF_EPORT_EPPAR_FALLING) |
|
||||||
MCF_EPORT_EPPAR_EPPA6(MCF_EPORT_EPPAR_FALLING) |
|
MCF_EPORT_EPPAR_EPPA6(MCF_EPORT_EPPAR_FALLING) |
|
||||||
#if MACHINE_FIREBEE /* irq5 level triggered on FireBee */
|
#if defined(MACHINE_FIREBEE) /* irq5 level triggered on FireBee */
|
||||||
MCF_EPORT_EPPAR_EPPA5(MCF_EPORT_EPPAR_LEVEL) |
|
MCF_EPORT_EPPAR_EPPA5(MCF_EPORT_EPPAR_LEVEL) |
|
||||||
#elif MACHINE_M5484LITE
|
#elif defined(MACHINE_M5484LITE)
|
||||||
MCF_EPORT_EPPAR_EPPA5(MCF_EPORT_EPPAR_FALLING) |
|
MCF_EPORT_EPPAR_EPPA5(MCF_EPORT_EPPAR_FALLING) |
|
||||||
#endif /* MACHINE_FIREBEE */
|
#endif /* MACHINE_FIREBEE */
|
||||||
MCF_EPORT_EPPAR_EPPA4(MCF_EPORT_EPPAR_FALLING) |
|
MCF_EPORT_EPPAR_EPPA4(MCF_EPORT_EPPAR_FALLING) |
|
||||||
|
|||||||
@@ -21,9 +21,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "startcf.h"
|
#include "startcf.h"
|
||||||
#if MACHINE_FIREBEE
|
#if defined(MACHINE_FIREBEE)
|
||||||
#include "firebee.h"
|
#include "firebee.h"
|
||||||
#elif MACHINE_M5484LITE
|
#elif defined(MACHINE_M5484LITE)
|
||||||
#include "m5484l.h"
|
#include "m5484l.h"
|
||||||
#endif /* MACHINE_FIREBEE */
|
#endif /* MACHINE_FIREBEE */
|
||||||
|
|
||||||
@@ -446,8 +446,8 @@ irq6: move.w #0x2700,sr // disable interrupt
|
|||||||
|
|
||||||
move.l 8(a6),-(sp) // format status word
|
move.l 8(a6),-(sp) // format status word
|
||||||
move.l 12(a6),-(sp) // pc at exception
|
move.l 12(a6),-(sp) // pc at exception
|
||||||
jsr _irq6_handler // call C handler
|
jsr _irq6_handler // call C handler
|
||||||
lea 8(sp),sp // fix stack
|
lea 8(sp),sp // fix stack
|
||||||
|
|
||||||
tst.b d0 // interrupt handled?
|
tst.b d0 // interrupt handled?
|
||||||
beq irq6_forward // no, forward to TOS
|
beq irq6_forward // no, forward to TOS
|
||||||
|
|||||||
Reference in New Issue
Block a user