2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>

* mcf5206/console/mcfuart.c, mcf5206/include/mcf5206e.h: Cosmetics.
This commit is contained in:
Ralf Corsepius
2004-03-31 11:11:09 +00:00
parent 4debfd362d
commit 2ab000f8e3
3 changed files with 9 additions and 5 deletions

View File

@@ -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,

View File

@@ -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);
}
/*

View File

@@ -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 ***/