forked from Imagelibrary/rtems
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
* clock/ckinit.c, console/console.c, include/bsp.h, network/network.c, startup/bspstart.c, timer/timer.c: Convert to using c99 fixed size types.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
|
* clock/ckinit.c, console/console.c, include/bsp.h,
|
||||||
|
network/network.c, startup/bspstart.c, timer/timer.c: Convert to
|
||||||
|
using c99 fixed size types.
|
||||||
|
|
||||||
2004-02-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
2004-02-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
* Makefile.am: Reflect changes to bsp.am.
|
* Makefile.am: Reflect changes to bsp.am.
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
* Clock_driver_ticks is a monotonically increasing counter of the
|
* Clock_driver_ticks is a monotonically increasing counter of the
|
||||||
* number of clock ticks since the driver was initialized.
|
* number of clock ticks since the driver was initialized.
|
||||||
*/
|
*/
|
||||||
volatile rtems_unsigned32 Clock_driver_ticks;
|
volatile uint32_t Clock_driver_ticks;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Clock_isrs is the number of clock ISRs until the next invocation of
|
* Clock_isrs is the number of clock ISRs until the next invocation of
|
||||||
@@ -47,7 +47,7 @@ volatile rtems_unsigned32 Clock_driver_ticks;
|
|||||||
* length of time between the user configured microseconds per tick
|
* length of time between the user configured microseconds per tick
|
||||||
* has passed.
|
* has passed.
|
||||||
*/
|
*/
|
||||||
rtems_unsigned32 Clock_isrs;
|
uint32_t Clock_isrs;
|
||||||
|
|
||||||
void Clock_exit( void );
|
void Clock_exit( void );
|
||||||
|
|
||||||
@@ -128,7 +128,7 @@ rtems_device_driver Clock_control(
|
|||||||
void *pargp
|
void *pargp
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtems_unsigned32 isrlevel;
|
uint32_t isrlevel;
|
||||||
rtems_libio_ioctl_args_t *args = pargp;
|
rtems_libio_ioctl_args_t *args = pargp;
|
||||||
|
|
||||||
if (args == 0)
|
if (args == 0)
|
||||||
|
|||||||
@@ -65,14 +65,14 @@ rtems_device_driver console_initialize(
|
|||||||
p->scc2.bd.rx[0].status = 0xA000; /* RxBD0 empty, wrap, no intr */
|
p->scc2.bd.rx[0].status = 0xA000; /* RxBD0 empty, wrap, no intr */
|
||||||
p->scc2.bd.rx[0].length = 0x0000;
|
p->scc2.bd.rx[0].length = 0x0000;
|
||||||
p->scc2.bd.rx[0].buffer =
|
p->scc2.bd.rx[0].buffer =
|
||||||
(rtems_unsigned8 *) &m302.scc2.bd.rx[1]; /* RxBD1 is Rx buffer */
|
(uint8_t*) &m302.scc2.bd.rx[1]; /* RxBD1 is Rx buffer */
|
||||||
|
|
||||||
p->reg.scc[1].dsr = 0x7000; /* set full-length last stop bit */
|
p->reg.scc[1].dsr = 0x7000; /* set full-length last stop bit */
|
||||||
|
|
||||||
p->scc2.bd.tx[0].status = 0x3000; /* TxBD0 not ready, wrap, intr */
|
p->scc2.bd.tx[0].status = 0x3000; /* TxBD0 not ready, wrap, intr */
|
||||||
p->scc2.bd.tx[0].length = 0x0001;
|
p->scc2.bd.tx[0].length = 0x0001;
|
||||||
p->scc2.bd.tx[0].buffer =
|
p->scc2.bd.tx[0].buffer =
|
||||||
(rtems_unsigned8 *) &m302.scc2.bd.tx[1]; /* TxBD1 is Tx buffer */
|
(uint8_t*) &m302.scc2.bd.tx[1]; /* TxBD1 is Tx buffer */
|
||||||
|
|
||||||
p->reg.scc[1].scce = 0xFF; /* clear all SCC event flags */
|
p->reg.scc[1].scce = 0xFF; /* clear all SCC event flags */
|
||||||
p->reg.scc[1].sccm = 0x03; /* enable only Tx & Rx interrupts */
|
p->reg.scc[1].sccm = 0x03; /* enable only Tx & Rx interrupts */
|
||||||
|
|||||||
@@ -68,8 +68,8 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define rtems_bsp_delay( microseconds ) \
|
#define rtems_bsp_delay( microseconds ) \
|
||||||
{ register rtems_unsigned32 _delay=(microseconds); \
|
{ register uint32_t _delay=(microseconds); \
|
||||||
register rtems_unsigned32 _tmp=123; \
|
register uint32_t _tmp=123; \
|
||||||
asm volatile( "0: \
|
asm volatile( "0: \
|
||||||
nbcd %0 ; \
|
nbcd %0 ; \
|
||||||
nbcd %0 ; \
|
nbcd %0 ; \
|
||||||
|
|||||||
@@ -287,7 +287,7 @@ static void
|
|||||||
m302Enet_retire_tx_bd (struct scc_softc *sc)
|
m302Enet_retire_tx_bd (struct scc_softc *sc)
|
||||||
{
|
{
|
||||||
|
|
||||||
rtems_unsigned16 status;
|
uint16_t status;
|
||||||
int i;
|
int i;
|
||||||
int nRetired;
|
int nRetired;
|
||||||
struct mbuf *m, *n;
|
struct mbuf *m, *n;
|
||||||
@@ -388,7 +388,7 @@ scc_rxDaemon (void *arg)
|
|||||||
struct scc_softc *sc = (struct scc_softc *)arg;
|
struct scc_softc *sc = (struct scc_softc *)arg;
|
||||||
struct ifnet *ifp = &sc->arpcom.ac_if;
|
struct ifnet *ifp = &sc->arpcom.ac_if;
|
||||||
struct mbuf *m;
|
struct mbuf *m;
|
||||||
rtems_unsigned16 status;
|
uint16_t status;
|
||||||
volatile struct m68302_scc_bd *rxBd;
|
volatile struct m68302_scc_bd *rxBd;
|
||||||
int rxBdIndex;
|
int rxBdIndex;
|
||||||
|
|
||||||
@@ -474,7 +474,7 @@ scc_rxDaemon (void *arg)
|
|||||||
|
|
||||||
m = sc->rxMbuf[rxBdIndex];
|
m = sc->rxMbuf[rxBdIndex];
|
||||||
m->m_len = m->m_pkthdr.len = rxBd->data_lgth -
|
m->m_len = m->m_pkthdr.len = rxBd->data_lgth -
|
||||||
sizeof(rtems_unsigned32) -
|
sizeof(uint32_t) -
|
||||||
sizeof(struct ether_header);
|
sizeof(struct ether_header);
|
||||||
eh = mtod (m, struct ether_header *);
|
eh = mtod (m, struct ether_header *);
|
||||||
m->m_data += sizeof(struct ether_header);
|
m->m_data += sizeof(struct ether_header);
|
||||||
@@ -533,7 +533,7 @@ sendpacket (struct ifnet *ifp, struct mbuf *m)
|
|||||||
struct scc_softc *sc = ifp->if_softc;
|
struct scc_softc *sc = ifp->if_softc;
|
||||||
volatile struct m68302_scc_bd *firstTxBd, *txBd;
|
volatile struct m68302_scc_bd *firstTxBd, *txBd;
|
||||||
struct mbuf *l = NULL;
|
struct mbuf *l = NULL;
|
||||||
rtems_unsigned16 status;
|
uint16_t status;
|
||||||
int nAdded;
|
int nAdded;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ char *rtems_progname;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
void bsp_postdriver_hook(void);
|
void bsp_postdriver_hook(void);
|
||||||
void bsp_libc_init( void *, unsigned32, int );
|
void bsp_libc_init( void *, uint32_t, int );
|
||||||
void bsp_pretasking_hook(void); /* m68k version */
|
void bsp_pretasking_hook(void); /* m68k version */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
* 2000 ticks @ (16MHz/1)/8 = 1-ms count
|
* 2000 ticks @ (16MHz/1)/8 = 1-ms count
|
||||||
*/
|
*/
|
||||||
|
|
||||||
rtems_unsigned32 Timer_interrupts;
|
uint32_t Timer_interrupts;
|
||||||
|
|
||||||
rtems_boolean Timer_driver_Find_average_overhead;
|
rtems_boolean Timer_driver_Find_average_overhead;
|
||||||
|
|
||||||
@@ -79,8 +79,8 @@ void Timer_initialize( void )
|
|||||||
*/
|
*/
|
||||||
int Read_timer( void )
|
int Read_timer( void )
|
||||||
{
|
{
|
||||||
rtems_unsigned16 clicks;
|
uint16_t clicks;
|
||||||
rtems_unsigned32 total;
|
uint32_t total;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Read the timer and see how many clicks it has been since counter
|
* Read the timer and see how many clicks it has been since counter
|
||||||
|
|||||||
Reference in New Issue
Block a user