View Single Post
  #6   Spotlight this post!  
Unread 28-01-2007, 01:11
Shinigami2057 Shinigami2057 is offline
Slackware Is Your New God (Mentor)
AKA: Harry Bock
FRC #1350 (Rambots)
Team Role: Programmer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Johnston, RI
Posts: 106
Shinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really nice
Re: Problem with TTL-RS232 + CMUCam

Sorry, it's late, I don't make much sense past 1 AM.

I mean, I set stdout_serial_port = SERIAL_PORT_ONE and instead wrote a simple function to take a C-style string and write it to the TTL port one byte at a time. i.e.

Code:
void cmucam_write_buf(const rom unsigned char *buf)
{
    int i;
    for(i = 0; i < strlen(buf); i++)
        cmucam_write( buf[i] );
}

cmucam_write_buf("tc 210 240 210 240 210 240\r");
__________________
One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.