Hi guys. I'm trying to port the OS onto a 68k uP, just for the sake of
educational purposes. But I got problem whenever I try to point my variables
to memory locations.
// $Id: Main.nc
module Main
{
  uses interface Boot;
}
implementation
{
  char cntrl,a_creg,a_ddir,leds;
int index = 0;
*cntrl = 0x800001;
*a_creg= 0x80000D;
*a_ddir= 0x800005;
*leds  = 0x800011;

cntrl = 0x00;
a_creg= 0x80;
a_ddir= 0xFF;

  event void Boot.booted()
  {
   //Set led 0 to on
leds = 0x01;
index++;
if (index > 100)
{
leds = 0x02;
}
  }
}

The errors are in the picture attachment. The errors all occured on the
variables with pointers (e.g leds,a_creg etc)

Thanks.

<<attachment: problem in nesc.GIF>>

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to