async command void ResourceConfigure.configure()
{
atomic {
- msp430_usci_config_t* config = call Msp430UsciConfigure.get();
+ const msp430_usci_config_t* config = call Msp430UsciConfigure.get();
call Registers.setCtl1(UCSWRST);
signal UartStream.receivedByte(byte);
}
- default async command msp430_usci_config_t* Msp430UsciConfigure.get()
+ default async command const msp430_usci_config_t* Msp430UsciConfigure.get()
{
- static msp430_usci_config_t def = {
+ const static msp430_usci_config_t def = {
uart: {
ctl0: UCMODE_0, /* async, lsb first, 8N1 */
ctl1: UCSWRST|UCSSEL_1, /* clock uart from SMCLK */