+1 for K.I.S.S. code. I really like how short that bit of code wound up Peter. It is also nice to read a source file at a glance, and immediately be able to tell whats going on. Something many others could stand to work on ( writing short, and readable code ).
On Fri, Jul 10, 2015 at 7:25 AM, <[email protected]> wrote: > +1 for community service. > > > -----Original Message----- > > From: [email protected] > > [mailto:[email protected]] On Behalf Of Peter Hurley > > Sent: 10 July 2015 15:07 > > To: [email protected] > > Subject: Re: [beagleboard] Problemas para comunicar com o Baud Rate 5760 > > > > Hi Marlon, > > > > On 07/09/2015 07:30 PM, Peter Hurley wrote:> Using the BOTHER method of > > setting a custom baud rate is roughly > > > outlined in the stackoverflow link noted by William. > > > > > > I hacked up a quick test to set this baud rate in an i/o validation > > > test jig and confirmed with a scope the signal period of ~173.6 us > > > > I understand that was probably too much information :) So I forked the > > github gist from the stackoverflow answer and cleaned it up. > > > > Here's what you need to do to get this working. At the console prompt on > > your beaglebone: > > > > $ # install compiler, include files, basic libraries, etc. > > $ sudo apt-get install build-essential > > > > $ # get source file from github for program that allows you to set any > baud in > > linux $ wget > > https://gist.githubusercontent.com/peterhurley/fbace59b55d87306a5b8/ra > > w/220cfc2cb1f2bf03ce662fe387362c3cc21b65d7/anybaud.c > > > > $ # compile program > > $ gcc -o anybaud anybaud.c > > > > $ # run program, but substitute your tty device name $ ./anybaud > /dev/ttyS4 > > 5760 > > > > > > Regards, > > Peter Hurley > > > > -- > > For more options, visit http://beagleboard.org/discuss > > --- > > You received this message because you are subscribed to the Google Groups > > "BeagleBoard" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to [email protected]. > > For more options, visit https://groups.google.com/d/optout. > > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
