forked from Imagelibrary/rtems
Corrected spacing and added a comment.
This commit is contained in:
@@ -82,13 +82,11 @@ console_fns z85c30_fns_polled =
|
|||||||
z85c30_init, /* deviceInitialize */
|
z85c30_init, /* deviceInitialize */
|
||||||
z85c30_write_polled, /* deviceWritePolled */
|
z85c30_write_polled, /* deviceWritePolled */
|
||||||
NULL, /* deviceSetAttributes */
|
NULL, /* deviceSetAttributes */
|
||||||
FALSE, /* deviceOutputUsesInterrupts */
|
FALSE /* deviceOutputUsesInterrupts */
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void set_vector( rtems_isr_entry, rtems_vector_number, int );
|
extern void set_vector( rtems_isr_entry, rtems_vector_number, int );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* z85c30_initialize_port
|
* z85c30_initialize_port
|
||||||
*
|
*
|
||||||
@@ -494,6 +492,10 @@ Z85C30_STATIC int z85c30_set_attributes(
|
|||||||
wr4 |= SCC_WR4_1_STOP; /* 1 stop bits */
|
wr4 |= SCC_WR4_1_STOP; /* 1 stop bits */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Now actually set the chip
|
||||||
|
*/
|
||||||
|
|
||||||
rtems_interrupt_disable(Irql);
|
rtems_interrupt_disable(Irql);
|
||||||
(*setReg)( ulCtrlPort, SCC_WR0_SEL_WR4, wr4 );
|
(*setReg)( ulCtrlPort, SCC_WR0_SEL_WR4, wr4 );
|
||||||
(*setReg)( ulCtrlPort, SCC_WR0_SEL_WR3, wr3 );
|
(*setReg)( ulCtrlPort, SCC_WR0_SEL_WR3, wr3 );
|
||||||
|
|||||||
@@ -82,13 +82,11 @@ console_fns z85c30_fns_polled =
|
|||||||
z85c30_init, /* deviceInitialize */
|
z85c30_init, /* deviceInitialize */
|
||||||
z85c30_write_polled, /* deviceWritePolled */
|
z85c30_write_polled, /* deviceWritePolled */
|
||||||
NULL, /* deviceSetAttributes */
|
NULL, /* deviceSetAttributes */
|
||||||
FALSE, /* deviceOutputUsesInterrupts */
|
FALSE /* deviceOutputUsesInterrupts */
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void set_vector( rtems_isr_entry, rtems_vector_number, int );
|
extern void set_vector( rtems_isr_entry, rtems_vector_number, int );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* z85c30_initialize_port
|
* z85c30_initialize_port
|
||||||
*
|
*
|
||||||
@@ -494,6 +492,10 @@ Z85C30_STATIC int z85c30_set_attributes(
|
|||||||
wr4 |= SCC_WR4_1_STOP; /* 1 stop bits */
|
wr4 |= SCC_WR4_1_STOP; /* 1 stop bits */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Now actually set the chip
|
||||||
|
*/
|
||||||
|
|
||||||
rtems_interrupt_disable(Irql);
|
rtems_interrupt_disable(Irql);
|
||||||
(*setReg)( ulCtrlPort, SCC_WR0_SEL_WR4, wr4 );
|
(*setReg)( ulCtrlPort, SCC_WR0_SEL_WR4, wr4 );
|
||||||
(*setReg)( ulCtrlPort, SCC_WR0_SEL_WR3, wr3 );
|
(*setReg)( ulCtrlPort, SCC_WR0_SEL_WR3, wr3 );
|
||||||
|
|||||||
Reference in New Issue
Block a user