forked from Imagelibrary/rtems
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
* mcf5206/console/mcfuart.c, mcf5206/include/mcf5206e.h: Cosmetics.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
|
||||
* mcf5206/console/mcfuart.c, mcf5206/include/mcf5206e.h: Cosmetics.
|
||||
|
||||
2004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
|
||||
* m68040/fpsp/rtems_fpsp.c, mcf5206/clock/ckinit.c,
|
||||
|
||||
@@ -110,8 +110,8 @@ mcfuart_set_baudrate(mcfuart *uart, speed_t baud)
|
||||
|
||||
div = SYSTEM_CLOCK_FREQUENCY / (rate * 32);
|
||||
|
||||
*MCF5206E_UBG1(MBAR,uart->chn) = (uint8_t )((div >> 8) & 0xff);
|
||||
*MCF5206E_UBG2(MBAR,uart->chn) = (uint8_t )(div & 0xff);
|
||||
*MCF5206E_UBG1(MBAR,uart->chn) = (uint8_t)((div >> 8) & 0xff);
|
||||
*MCF5206E_UBG2(MBAR,uart->chn) = (uint8_t)(div & 0xff);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -23,11 +23,11 @@
|
||||
#define MCF5206E_REG32(base,ofs) (ofs+base)
|
||||
#else
|
||||
#define MCF5206E_REG8(base,ofs) \
|
||||
(volatile uint8_t *)((uint8_t *)(base) + (ofs))
|
||||
(volatile uint8_t*)((uint8_t*)(base) + (ofs))
|
||||
#define MCF5206E_REG16(base,ofs) \
|
||||
(volatile uint16_t *)((uint8_t *)(base) + (ofs))
|
||||
(volatile uint16_t*)((uint8_t*)(base) + (ofs))
|
||||
#define MCF5206E_REG32(base,ofs) \
|
||||
(volatile uint32_t *)((uint8_t *)(base) + (ofs))
|
||||
(volatile uint32_t*)((uint8_t*)(base) + (ofs))
|
||||
#endif
|
||||
|
||||
/*** Instruction Cache -- MCF5206e User's Manual, Chapter 4 ***/
|
||||
|
||||
Reference in New Issue
Block a user