Download DRM068, RF Development Platform Designer
Transcript
Source Code
/* if required
*/
#endif
default:
break;
}
}
/* Initialise the timer channel and tango
/* Note Tango is not power on by this function
/* Use TangoEnable to power up Tango
*/
*/
*/
void TangoInitialise(void)
{
/* Setup Tango */
#ifdef TANGO_MODE
#if TANGO_MODE_VALUE == TANGO_OOK
TANGO_MODE = 0;
#else
TANGO_MODE = 1;
#endif
TANGO_MODE_DDR = 1;
#endif
#ifdef TANGO_BAND
TANGO_BAND = TANGO_BAND_VALUE;
TANGO_BAND_DDR = 1;
#endif
#ifdef TANGO_ENABLE
TANGO_ENABLE = 0;
TANGO_ENABLE_DDR = 1;
#endif
/* Tango is not enabled
*/
#ifdef TANGO_ENABLE_PA
TANGO_ENABLE_PA_DDR = 1;
TANGO_ENABLE_PA = 0;
#endif
status.Byte = 0;
/* Reset flags
*/
#ifdef TANGO_TIMER_CLK_IN_CHANNEL
/* If using external clock
TANGO_TPMxMODH = TANGO_2MS_EXT_H;/* Load modulus with 2ms timeout value
TANGO_TPMxMODL = TANGO_2MS_EXT_L;
#else
/* If using internal clock
TANGO_TPMxMODH = TANGO_MODH;
/* Load modulus with bit timing values
TANGO_TPMxMODL = TANGO_MODL;
#endif
}
*/
*/
*/
*/
/* Powers up Tango and schedules 2 ms startup delay */
void TangoEnable(void)
{
#ifdef TANGO_ENABLE
TANGO_ENABLE = 1;
#endif
#ifdef TANGO_ENABLE_PA
TANGO_ENABLE_PA = 1;
#endif
status.Bits.enabled = 1;
status.Bits.enableDelay = 1;
/* BUG !! missing semicolon */
RF Development Platform, Rev. 0
142
Freescale Semiconductor