* Author: Miklos Maroti
*/
-#include <HplRF230.h>
+#include <RadioConfig.h>
configuration HplRF230C
{
{
interface GeneralIO as SELN;
interface Resource as SpiResource;
- interface SpiByte;
+ interface FastSpiByte;
interface GeneralIO as SLP_TR;
interface GeneralIO as RSTN;
interface GpioCapture as IRQ;
- interface Alarm<TRF230, uint16_t> as Alarm;
- interface LocalTime<TRF230>;
-
- interface HplRF230;
+ interface Alarm<TRadio, uint16_t> as Alarm;
+ interface LocalTime<TRadio> as LocalTimeRadio;
}
}
HplRF230P.PortCLKM -> IO.PortD6;
HplRF230P.PortIRQ -> IO.PortD4;
- // TODO: Ask why the HplAtm128SpiC does SlaveSelect via PortB0
- // TODO: Remove the unused started field from Atm128SpiP
components Atm128SpiC as SpiC;
SpiResource = SpiC.Resource[unique("Atm128SpiC.Resource")];
- SpiByte = SpiC;
-
- HplRF230 = HplRF230P;
+ FastSpiByte = SpiC;
components HplAtm128GeneralIOC as IO;
SLP_TR = IO.PortB7;
components RealMainP;
RealMainP.PlatformInit -> HplRF230P.PlatformInit;
- components CounterOne16C;
- components new TransformCounterC(TRF230, uint32_t, TRF230, uint16_t, 0, uint32_t);
- components new CounterToLocalTimeC(TRF230);
-
- LocalTime = CounterToLocalTimeC;
- CounterToLocalTimeC.Counter -> TransformCounterC;
- TransformCounterC.CounterFrom -> CounterOne16C;
+ components LocalTimeMicroC;
+ LocalTimeRadio = LocalTimeMicroC;
}