You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CubeSatSim/libs/libmf/builtsource/ax5043commslpexit.c

26 lines
489 B

#include "libmftypes.h"
#include "libmfradio.h"
#define RADIO 5043
#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();
}

Powered by TurnKey Linux.