]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
rename RF230 to RF2xx to support the RF212 chip
authormmaroti <mmaroti>
Mon, 9 Mar 2009 16:33:35 +0000 (16:33 +0000)
committermmaroti <mmaroti>
Mon, 9 Mar 2009 16:33:35 +0000 (16:33 +0000)
tos/chips/rf230/RF2xx.h
tos/platforms/iris/chips/rf230/HplRF2xx.h

index 8e152ae260aaf0dae95e98b6de9f2220cf5193c2..a694df88625c628e66ccfdefb2ef3ea6bad08675 100644 (file)
 #ifndef __RF2XX_H__
 #define __RF2XX_H__
 
-enum rf2xx_chipsets_enum
-{
-       RF230_CHIPSET = 0,
-       RF212_CHIPSET = 1,
-};
+/* Set RF2XX_CHIPSET to one of these to enable specific features */
+#define RF230_CHIPSET  0
+#define RF212_CHIPSET  1
 
 enum rf2xx_registers_enum
 {
index 6f9e21c8590b9952bb83d196a25120bf90ddcf8e..e312080f2b291f62cd5b9bfa0243cd8958d54238 100644 (file)
 
 enum
 {
-       /**
-        * This is an RF230 chip
-        */
-       RF2XX_CHIPSET = RF230_CHIPSET,
-
        /**
         * This is the value of the TRX_CTRL_0 register
         * which configures the output pin currents and the CLKM clock
@@ -67,6 +62,8 @@ enum
 
 #define RF2XX_DEF_CHANNEL      RF230_DEF_CHANNEL
 
+#define RF2XX_CHIPSET          RF230_CHIPSET
+
 /*
  * This is the command used to calculate the CRC for the RF230 chip. 
  * TODO: Check why the default crcByte implementation is in a different endianness