X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Ftmirws%2Fchips%2Fscp1000%2FScp1000PinsC.nc;h=525955e979451e19e600b3794b1bfd3bf5146900;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=95d36e36e42b33018f7e1ef3e1c3bfe56dcc792e;hpb=86e1f38f71efaa4ef35d676dde514fb9884f124e;p=tinyos-2.x.git diff --git a/tos/platforms/tmirws/chips/scp1000/Scp1000PinsC.nc b/tos/platforms/tmirws/chips/scp1000/Scp1000PinsC.nc index 95d36e36..525955e9 100644 --- a/tos/platforms/tmirws/chips/scp1000/Scp1000PinsC.nc +++ b/tos/platforms/tmirws/chips/scp1000/Scp1000PinsC.nc @@ -26,47 +26,44 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - + /** * Platform specific pin mapping for the Scp1000. - * + * * @author R. Steve McKown */ - + configuration Scp1000PinsC { provides { - interface HplMsp430GeneralIO as CSn; - interface HplMsp430GeneralIO as PD; - interface HplMsp430GeneralIO as DRDY; + interface GeneralIO as CSn; + interface GeneralIO as PD; + interface GeneralIO as DRDY; interface GpioInterrupt as IntDRDY; } } implementation { -#if 0 components new Msp430GpioC() as CSn_; CSn = CSn_.GeneralIO; - components new Msp430GpioC() as PD_; - PD = PD_.GeneralIO; - components new Msp430GpioC() as DRDY_; DRDY = DRDY_.GeneralIO; -#endif components new Msp430InterruptC() as IntDRDY_; IntDRDY = IntDRDY_.Interrupt; components HplMsp430GeneralIOC as IOC; -#if 0 CSn_.HplGeneralIO -> IOC.Port43; - PD_.HplGeneralIO -> IOC.Port42; DRDY_.HplGeneralIO -> IOC.Port26; -#else - CSn = IOC.Port43; - PD = IOC.Port42; - DRDY = IOC.Port26; -#endif components HplMsp430InterruptC as IntC; IntDRDY_.HplInterrupt -> IntC.Port26; + + components new Scp1000PinsP() as PinsP; + PD = PinsP.PD; + PinsP.CSn -> IOC.Port43; + PinsP._PD -> IOC.Port42; + PinsP.DRDY -> IOC.Port26; + + components MainC; + MainC.SoftwareInit -> PinsP; }