I've just overwritten the baudrate registers with precomputed values to switch speeds "on the fly".
Greets, Kiste ________________________________ Fixed baudrate is definitely a limitation, I had an application where I did autobaud by trying out the validity of of ascii characters and switching bauds. I had to use a custom serial lib for that. Sunish On Wed, Dec 11, 2013 at 1:40 AM, Rob Hamerling <[email protected]> wrote: >Hi Kyle, > > >On 2013/12/10 20:44, zmafoox wrote: > > >I'm afraid I don't follow this list as closely as I probably should, but >>just started using the serial library and am curious why serial_hw_init >>and _calculate_and_set_baudrate are not inlined. Granted, this only >>saves a tiny amount of space. >> > Currently the serial libraries assume the used baudrate is fixed, thus these procedures may be called once during startup. >But I know of at least one device which can and does switch baudrates: the >Wisp648 PIC programmer. Probably there are more, so we may have to get rid of >this fixed baudrate limitation. > >Regards, Rob. > > >-- >R. Hamerling, Netherlands --- http://www.robh.nl > > >-- >You received this message because you are subscribed to the Google Groups >"jallib" group. >To unsubscribe from this group and stop receiving emails from it, send an >email to [email protected]. >To post to this group, send email to [email protected]. >Visit this group at http://groups.google.com/group/jallib. >For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/jallib. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/jallib. For more options, visit https://groups.google.com/groups/opt_out.
