[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
building problems
- Date: Mon, 11 Nov 2002 13:47:31 -0600
- From: jtm at smoothsmoothie.com (Jay Monkman)
- Subject: building problems
On Mon, Nov 11, 2002 at 06:19:12PM +0100, Poletti Francesco wrote:
> >void bsp_start_default( void )
> >{ unsigned long c = "b";
> > *((volatile unsigned long*) SWARM_UART0_TXBASE) = (unsigned long )(c);
You are setting *SWARM_UART0_TXBASE to the address where the string c
begins. I think you want something like:
*((volatile unsigned long*) SWARM_UART0_TXBASE) = (unsigned long )(c[0]);
or
unsigned char c = 'b';
*((volatile unsigned long*) SWARM_UART0_TXBASE) = (unsigned long )(c);
--
Jay Monkman The truth knocks on the door and you say "Go away, I'm
looking for the truth," and so it goes away. Puzzling.
- from _Zen_and_the_Art_of_Motorcycle_Maintenance_