Modify (or create a shadow copy) of chips/atm1281/HplAtm128UartC.nc in which you change the line
ubrr0 = call Atm128Calibrate.baudrateRegister(PLATFORM_BAUDRATE); to ubrr0 = call Atm128Calibrate.baudrateRegister(1200); The value returned by Atm128Calibrate.baudrateRegister(1200) should be around 383. Janos On Wed, May 18, 2011 at 5:24 PM, Li, Haixia <[email protected]> wrote: > Hello everyone, > > I'm using IRIS, mib510 with Tinyos2.x. I want to using UART0 to read a > sensor. I try to use component HplAtm128UartC. How can I change the baud > rate on UART0? > If I cannot use the component, do I need to use interface UartStream? > In this interface, can I change the m_byte_time=3200 to set the baud rate to > 1200? > > Any help will be appreciated. > > Haixia Li > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
