#include "libmftypes.h"
#include "libmfradio.h"

#define RADIO 5042

#include "radiodefs.h"

__reentrantb void radio_commsleepexit(void) __reentrant
{
	DIRR = 0x15;
	PORTR = 0xEB;
	RADIOMUX |= 0x40;
	RADIOACC = RACC;
#if defined SDCC
	RADIOFDATAADDR = FDATA;
	RADIOFSTATADDR = FSTAT;
#else
	RADIOFDATAADDR0 = (FDATA) & 0xFF;
	RADIOFDATAADDR1 = (FDATA) >> 8;
	RADIOFSTATADDR0 = (FSTAT) & 0xFF;
	RADIOFSTATADDR1 = (FSTAT) >> 8;
#endif
	// restore IRQ setting and pullup
	radio_probeirq();
}
