-->
Page 2 of 3

Re: Software uart for debug and peripherials

PostPosted: Sun Feb 08, 2015 11:17 am
by Fr4gg0r
There is a second hardware UART (tx only on GPIO 2), just saying.. ;)

Re: Software uart for debug and peripherials

PostPosted: Sun Feb 08, 2015 6:10 pm
by milikiller
This soft uart can be on every GPIO, on multiple GPIOs and have any baudrate from 1 to 57600 but at 1 baud, is delay loop too long. This is extremely flexible.

Re: Software uart for debug and peripherials

PostPosted: Tue Mar 17, 2015 7:22 pm
by kolalde
Fr4gg0r wrote:There is a second hardware UART (tx only on GPIO 2), just saying.. ;)


I hope I'm missing something simple, but can you point me to example code that uses that second UART? I saw some use in the IoT example, I'll try that tonight. Any other pointers would be appreciated. Thanks.

Re: Software uart for debug and peripherials

PostPosted: Tue Mar 17, 2015 8:58 pm
by kolalde
OK, answering my own question:

os_install_putc1((void *)uart1_write_char); // that seemed to redirect output from os_printf to GPIO2.

OK, cool, updated my DS18x20 code, used some fun defines for GPIO2, move to GPIO5.
And not sure exactly what the pattern is yet, but hooking up GPIO2 to the RX on my FTDI is messing around with re-flashing. Off to add some definition to 'messing around'.