]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/usci/Msp430UartP.nc
Mintor tweaks to usci
[tinyos-2.x.git] / tos / chips / msp430 / usci / Msp430UartP.nc
index ad919b82249137f6cc158bc84a8c63cb61c94f7d..2ef1736f95954679858031bdd39bf01b8c8ef862 100644 (file)
@@ -90,7 +90,7 @@ implementation {
   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);
 
@@ -280,9 +280,9 @@ implementation {
       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 */