ARM Integrator-CP Bare Bones: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
Nathan (talk | contribs)
Line 50:
#define SERIAL_BUFFER_FULL (1 << 5)
 
void putc (char c)
{
/* Wait until the serial buffer is empty */
while (*(volatile unsigned long*)(SERIAL_BASE + SERIAL_FLAG_REGISTER)
& (SERIAL_BUFFER_FULL));
/* Put our character, c, into the serial buffer */
Line 59:
}
 
void puts (const char * str)
{
while (*str) putc (*str++);
putc(*str++);
}
 
int main (void)
{
puts ("hello, world!\n");
return 0;
}