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/source/ax5051rclkena.c

20 lines
389 B

#include "ax8052f151.h"
#include "libmftypes.h"
#include "libmfradio.h"
__reentrantb void ax5051_rclk_enable(uint8_t div) __reentrant
{
uint8_t p, irqe;
if (div >= 11)
div = 11;
div += 4;
irqe = IE & 0x80;
EA = 0;
AX5051_PINCFG1 = (AX5051_PINCFG1 & 0xF0) | div;
PORTR &= (uint8_t)~0x02;
p = AX5051_PWRMODE;
if (!(p & 0x0F))
AX5051_PWRMODE = (p & 0xF0) | 0x05;
IE |= irqe;
}

Powered by TurnKey Linux.