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/ax5031comminit.c

25 lines
446 B

#include "libmftypes.h"
#include "libmfradio.h"
#define RADIO 5031
#include "radiodefs.h"
__reentrantb void radio_comminit(void) __reentrant
{
DIRR = 0x15;
PORTR = 0xEB;
RADIOMUX = 0x47;
RADIOACC = RACC;
#if defined SDCC
RADIOFDATAADDR = FDATA;
RADIOFSTATADDR = FSTAT;
#else
RADIOFDATAADDR0 = (FDATA) & 0xFF;
RADIOFDATAADDR1 = (FDATA) >> 8;
RADIOFSTATADDR0 = (FSTAT) & 0xFF;
RADIOFSTATADDR1 = (FSTAT) >> 8;
#endif
GPIOENABLE = 1;
}

Powered by TurnKey Linux.