@ -0,0 +1,154 @@
|
||||
/*
|
||||
* TelemEncoding.c
|
||||
*
|
||||
Fox-1 telemetry encoder
|
||||
January 2014 Phil Karn KA9Q
|
||||
This file has two external functions:
|
||||
void update_rs(unsigned char parity[32],unsigned char data);
|
||||
int encode_8b10b(int *state,int data).
|
||||
update_rs() is the Reed-Solomon encoder. Its first argument is the 32-byte
|
||||
encoder shift register, the second is the 8-bit data byte being encoded. It updates
|
||||
the shift register in place and returns void. At the end of each frame, it contains
|
||||
the parities ready for transmission, starting with parity[0].
|
||||
Be sure to zero this array before each new frame!
|
||||
encode_8b10b() is the 8b10b encoder. Its first argument is a pointer to a single integer
|
||||
with the 1-bit encoder state (the current run disparity, or RD). Initialize it to 0
|
||||
JUST ONCE at startup (not between frames).
|
||||
The second argument is the data byte being encoded. It updates the state and returns
|
||||
an integer containing the 10-bit encoded word, right justified.
|
||||
Transmit this word from left to right.
|
||||
The data argument is an int so it can hold the special value -1 to indicate end of frame;
|
||||
it generates the 8b10b control word K.28.5, which is used as an inter-frame flag.
|
||||
Some assert() calls are made to verify legality of arguments. These can be turned off in
|
||||
production code.
|
||||
sample frame transmission code:
|
||||
unsigned char data[64]; // Data block to be sent
|
||||
unsigned char parity[32]; // RS parities
|
||||
void transmit_word(int); // User provided transmit function: 10 bits of data in bits 9....0
|
||||
int state,i;
|
||||
state = 0; // Only once at startup, not between frames
|
||||
memset(parity,0,sizeof(parity); // Do this before every frame
|
||||
// Transmit the data, updating the RS encoder
|
||||
for(i=0;i<64;i++){
|
||||
update_rs(parity,data[i]);
|
||||
transmit_word(encode_8b10b(&state,data[i]);
|
||||
}
|
||||
// get the RS parities
|
||||
for(i=0;i<32;i++)
|
||||
transmit_word(encode_8b10b(&state,parity[i]);
|
||||
transmit_word(encode_8b10b(&state,-1); // Transmit end-of-frame flag
|
||||
*/
|
||||
|
||||
|
||||
#include <string.h>
|
||||
//#include "Fox.h"
|
||||
#include "TelemEncoding.h"
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL ((void *)0)
|
||||
#endif
|
||||
|
||||
#define NN (0xff) // Frame size in symbols
|
||||
#define A0 (NN) // special value for log(0)
|
||||
|
||||
|
||||
// GF Antilog lookup table table
|
||||
static unsigned char CCSDS_alpha_to[NN+1] = {
|
||||
0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x87,0x89,0x95,0xad,0xdd,0x3d,0x7a,0xf4,
|
||||
0x6f,0xde,0x3b,0x76,0xec,0x5f,0xbe,0xfb,0x71,0xe2,0x43,0x86,0x8b,0x91,0xa5,0xcd,
|
||||
0x1d,0x3a,0x74,0xe8,0x57,0xae,0xdb,0x31,0x62,0xc4,0x0f,0x1e,0x3c,0x78,0xf0,0x67,
|
||||
0xce,0x1b,0x36,0x6c,0xd8,0x37,0x6e,0xdc,0x3f,0x7e,0xfc,0x7f,0xfe,0x7b,0xf6,0x6b,
|
||||
0xd6,0x2b,0x56,0xac,0xdf,0x39,0x72,0xe4,0x4f,0x9e,0xbb,0xf1,0x65,0xca,0x13,0x26,
|
||||
0x4c,0x98,0xb7,0xe9,0x55,0xaa,0xd3,0x21,0x42,0x84,0x8f,0x99,0xb5,0xed,0x5d,0xba,
|
||||
0xf3,0x61,0xc2,0x03,0x06,0x0c,0x18,0x30,0x60,0xc0,0x07,0x0e,0x1c,0x38,0x70,0xe0,
|
||||
0x47,0x8e,0x9b,0xb1,0xe5,0x4d,0x9a,0xb3,0xe1,0x45,0x8a,0x93,0xa1,0xc5,0x0d,0x1a,
|
||||
0x34,0x68,0xd0,0x27,0x4e,0x9c,0xbf,0xf9,0x75,0xea,0x53,0xa6,0xcb,0x11,0x22,0x44,
|
||||
0x88,0x97,0xa9,0xd5,0x2d,0x5a,0xb4,0xef,0x59,0xb2,0xe3,0x41,0x82,0x83,0x81,0x85,
|
||||
0x8d,0x9d,0xbd,0xfd,0x7d,0xfa,0x73,0xe6,0x4b,0x96,0xab,0xd1,0x25,0x4a,0x94,0xaf,
|
||||
0xd9,0x35,0x6a,0xd4,0x2f,0x5e,0xbc,0xff,0x79,0xf2,0x63,0xc6,0x0b,0x16,0x2c,0x58,
|
||||
0xb0,0xe7,0x49,0x92,0xa3,0xc1,0x05,0x0a,0x14,0x28,0x50,0xa0,0xc7,0x09,0x12,0x24,
|
||||
0x48,0x90,0xa7,0xc9,0x15,0x2a,0x54,0xa8,0xd7,0x29,0x52,0xa4,0xcf,0x19,0x32,0x64,
|
||||
0xc8,0x17,0x2e,0x5c,0xb8,0xf7,0x69,0xd2,0x23,0x46,0x8c,0x9f,0xb9,0xf5,0x6d,0xda,
|
||||
0x33,0x66,0xcc,0x1f,0x3e,0x7c,0xf8,0x77,0xee,0x5b,0xb6,0xeb,0x51,0xa2,0xc3,0x00,
|
||||
};
|
||||
|
||||
// GF log lookup table. Special value represents log(0)
|
||||
static unsigned char CCSDS_index_of[NN+1] = {
|
||||
A0, 0, 1, 99, 2,198,100,106, 3,205,199,188,101,126,107, 42,
|
||||
4,141,206, 78,200,212,189,225,102,221,127, 49,108, 32, 43,243,
|
||||
5, 87,142,232,207,172, 79,131,201,217,213, 65,190,148,226,180,
|
||||
103, 39,222,240,128,177, 50, 53,109, 69, 33, 18, 44, 13,244, 56,
|
||||
6,155, 88, 26,143,121,233,112,208,194,173,168, 80,117,132, 72,
|
||||
202,252,218,138,214, 84, 66, 36,191,152,149,249,227, 94,181, 21,
|
||||
104, 97, 40,186,223, 76,241, 47,129,230,178, 63, 51,238, 54, 16,
|
||||
110, 24, 70,166, 34,136, 19,247, 45,184, 14, 61,245,164, 57, 59,
|
||||
7,158,156,157, 89,159, 27, 8,144, 9,122, 28,234,160,113, 90,
|
||||
209, 29,195,123,174, 10,169,145, 81, 91,118,114,133,161, 73,235,
|
||||
203,124,253,196,219, 30,139,210,215,146, 85,170, 67, 11, 37,175,
|
||||
192,115,153,119,150, 92,250, 82,228,236, 95, 74,182,162, 22,134,
|
||||
105,197, 98,254, 41,125,187,204,224,211, 77,140,242, 31, 48,220,
|
||||
130,171,231, 86,179,147, 64,216, 52,176,239, 38, 55, 12, 17, 68,
|
||||
111,120, 25,154, 71,116,167,193, 35, 83,137,251, 20, 93,248,151,
|
||||
46, 75,185, 96, 15,237, 62,229,246,135,165, 23, 58,163, 60,183,
|
||||
};
|
||||
|
||||
// Only half the coefficients are given here because the
|
||||
// generator polynomial is palindromic; G0 = G32, G1 = G31, etc.
|
||||
// Only G16 is unique
|
||||
static unsigned char CCSDS_poly[] = {
|
||||
0,249, 59, 66, 4, 43,126,251, 97, 30, 3,213, 50, 66,170, 5,
|
||||
24,
|
||||
};
|
||||
|
||||
static inline int modnn(int x){
|
||||
while (x >= NN) {
|
||||
x -= NN;
|
||||
x = (x >> 8) + (x & NN);
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
||||
// Update Reed-Solomon encoder
|
||||
// parity -> 32-byte reed-solomon encoder state; clear this to zero before each frame
|
||||
void update_rs(
|
||||
unsigned char parity[32], // 32-byte encoder state; zero before each frame
|
||||
unsigned char c) // Current data byte to update
|
||||
{
|
||||
unsigned char feedback;
|
||||
int j,t;
|
||||
|
||||
assert(parity != NULL);
|
||||
feedback = CCSDS_index_of[c ^ parity[0]];
|
||||
if(feedback != A0){ // only if feedback is non-zero
|
||||
// Take advantage of palindromic polynomial to halve the multiplies
|
||||
// Do G1...G15, which is the same as G17...G31
|
||||
for(j=1;j<NP/2;j++){
|
||||
t = CCSDS_alpha_to[modnn(feedback + CCSDS_poly[j])];
|
||||
parity[j] ^= t;
|
||||
parity[NP-j] ^= t;
|
||||
}
|
||||
// Do G16, which is used in only parity[16]
|
||||
t = CCSDS_alpha_to[modnn(feedback + CCSDS_poly[j])];
|
||||
parity[j] ^= t;
|
||||
}
|
||||
// shift left
|
||||
memmove(&parity[0],&parity[1],NP-1);
|
||||
// G0 is 1 in alpha form, 0 in index form; don't need to multiply by it
|
||||
parity[NP-1] = CCSDS_alpha_to[feedback];
|
||||
//taskYIELD();
|
||||
}
|
||||
|
||||
#define SYNC (0x0fa) // K.28.5, RD=-1
|
||||
|
||||
void write_little_endian(unsigned int word, int num_bytes, FILE *wav_file)
|
||||
{
|
||||
unsigned buf;
|
||||
while(num_bytes>0)
|
||||
{ buf = word & 0xff;
|
||||
fwrite(&buf, 1,1, wav_file);
|
||||
num_bytes--;
|
||||
word >>= 8;
|
||||
}
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
/Debug/
|
||||
@ -1,502 +0,0 @@
|
||||
// Copyright (c) 2018 Brandenburg Tech, LLC
|
||||
// All rights reserved.
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <pthread.h>
|
||||
#include <semaphore.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "../spi/ax5043spi_p.h"
|
||||
#include "../ax5043/ax5043mode_p.h"
|
||||
#include "../ax5043/ax5043rx_p.h"
|
||||
#include "../ax5043/ax5043tx_p.h"
|
||||
#include "../generated/configtx.h"
|
||||
|
||||
#define MAX_MESSAGE_LENGTH (197)
|
||||
|
||||
extern uint8_t axradio_rxbuffer[];
|
||||
void *transmit(void *arg);
|
||||
int get_message(uint8_t *buffer, int avail);
|
||||
int get_cw(uint8_t *buffer, int avail);
|
||||
int add_dot(uint8_t *msg, int number);
|
||||
int add_dash(uint8_t *msg, int number);
|
||||
int add_space(uint8_t *msg, int number);
|
||||
int lower_digit(int number);
|
||||
int upper_digit(int number);
|
||||
int encode_digit(uint8_t *msg, int number);
|
||||
void config_cw();
|
||||
|
||||
enum RadioState {UnknownState, RxState, TxState};
|
||||
enum RadioState currentState = UnknownState;
|
||||
|
||||
enum ReceiveState {WaitingForNewPacket, WaitingForPacketCounter1,
|
||||
WaitingForPacketCounter2, WaitingForMessageLength1,
|
||||
WaitingForMessageLength2, WaitingForMessage,
|
||||
WaitingForChecksum1, WaitingForChecksum2};
|
||||
|
||||
static uint8_t on_value = 0xff;
|
||||
static uint8_t off_value = 0x00;
|
||||
int spacing = 1; // integer number of octets for a dot
|
||||
|
||||
|
||||
int main(void)
|
||||
{
|
||||
uint8_t retVal;
|
||||
|
||||
// Configure SPI bus to AX5043
|
||||
setSpiChannel(SPI_CHANNEL);
|
||||
setSpiSpeed(SPI_SPEED);
|
||||
initializeSpi();
|
||||
|
||||
// Initialize the AX5043
|
||||
retVal = axradio_init();
|
||||
if (retVal == AXRADIO_ERR_NOCHIP) {
|
||||
fprintf(stderr, "ERROR: No AX5043 RF chip found\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to initialize AX5043\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
printf("INFO: Found and initialized AX5043\n");
|
||||
|
||||
int result;
|
||||
|
||||
sem_t ax5043_sem;
|
||||
result = sem_init(&ax5043_sem, 0, 1);
|
||||
if (result != 0) {
|
||||
fprintf(stderr, "ERROR: Unable to create semaphore with error %s\n", strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
pthread_t transmit_thread;
|
||||
result = pthread_create(&transmit_thread, NULL, transmit, (void *)&ax5043_sem);
|
||||
if (result != 0) {
|
||||
fprintf(stderr, "ERROR: Unable to spawn transmit thread with error %s\n", strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
void *transmit_result;
|
||||
result = pthread_join(transmit_thread, &transmit_result);
|
||||
if (result != 0) {
|
||||
fprintf(stderr, "ERROR: Unable to wait for transmit thread to finish with error %s\n", strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
sem_destroy(&ax5043_sem);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void *transmit(void *arg) {
|
||||
sem_t *sem;
|
||||
sem = (sem_t *)arg;
|
||||
|
||||
uint8_t retVal;
|
||||
/*
|
||||
int x;
|
||||
for (x = 0; x < 0x20; x++)
|
||||
{
|
||||
printf("Register %x contents: %x\n",x,(int)ax5043ReadReg(x));
|
||||
}
|
||||
|
||||
printf("Register Dump complete");
|
||||
*/
|
||||
for (;;) {
|
||||
int result;
|
||||
|
||||
// allocate space for the buffer
|
||||
static uint8_t packet[MAX_MESSAGE_LENGTH + 1];
|
||||
//uint16_t pkt_counter;
|
||||
|
||||
// ++pkt_counter;
|
||||
|
||||
|
||||
int reserved_space = 0;
|
||||
|
||||
int msg_length = get_cw(&packet[reserved_space], (MAX_MESSAGE_LENGTH + 1) - reserved_space);
|
||||
|
||||
result = sem_wait(sem);
|
||||
if (result != 0) {
|
||||
fprintf(stderr, "Failed to wait on semaphore with error %s\n", strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
// Enter transmit mode only if not already in receive mode
|
||||
if (currentState != TxState) {
|
||||
retVal = mode_tx();
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to enter TX mode\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
currentState = TxState;
|
||||
}
|
||||
|
||||
printf("INFO: Sending another packet...\n");
|
||||
printf("DEBUG: msg_length = %d\n", msg_length);
|
||||
printf("DEBUG: reserved_space = %d\n", reserved_space);
|
||||
|
||||
while(1) {
|
||||
|
||||
/*
|
||||
int x;
|
||||
for (x = 0; x < 0x20; x++)
|
||||
{
|
||||
printf("Register %x contents: %x\n",x,(int)ax5043ReadReg(x));
|
||||
}
|
||||
|
||||
printf("Register Dump complete");
|
||||
*/
|
||||
|
||||
/*
|
||||
printf("Register write to clear framing and crc\n");
|
||||
ax5043WriteReg(0x12,0);
|
||||
|
||||
printf("Register write to disable fec\n");
|
||||
ax5043WriteReg(0x18,0);
|
||||
|
||||
printf("Register write \n");
|
||||
ax5043WriteReg(0x165,0);
|
||||
|
||||
ax5043WriteReg(0x166,0);
|
||||
ax5043WriteReg(0x167,0x50); // 0x08); // 0x20);
|
||||
|
||||
ax5043WriteReg(0x161,0);
|
||||
ax5043WriteReg(0x162,0x20);
|
||||
|
||||
long txRate;
|
||||
txRate = ax5043ReadReg(0x167) + 256 * ax5043ReadReg(0x166) + 65536 * ax5043ReadReg(0x165);
|
||||
printf("Tx Rate %x %x %x \n", ax5043ReadReg(0x165), ax5043ReadReg(0x166), ax5043ReadReg(0x167));
|
||||
long fskDev;
|
||||
fskDev = ax5043ReadReg(0x163) + 256 * ax5043ReadReg(0x162) + 65536 * ax5043ReadReg(0x161);
|
||||
|
||||
ax5043WriteReg(0x37,(ax5043ReadReg(0x37) + 4)); // Increase FREQA
|
||||
|
||||
printf("Tx Rate: %ld FSK Dev: %ld \n", txRate, fskDev);
|
||||
|
||||
ax5043WriteReg(0x10,0); // ASK
|
||||
|
||||
printf("Modulation: %x \n", (int)ax5043ReadReg(0x10));
|
||||
printf("Frequency A: 0x%x %x %x %x \n",(int)ax5043ReadReg(0x34),(int)ax5043ReadReg(0x35),(int)ax5043ReadReg(0x36),(int)ax5043ReadReg(0x37));
|
||||
*/
|
||||
|
||||
/* HERE */
|
||||
|
||||
/*
|
||||
int x;
|
||||
for (x = 0; x < 0x20; x++)
|
||||
{
|
||||
printf("Register %x contents: %x\n",x,(int)ax5043ReadReg(x));
|
||||
}
|
||||
|
||||
printf("Register Dump complete");
|
||||
*/
|
||||
|
||||
config_cw();
|
||||
|
||||
retVal = transmit_packet(&remoteaddr_tx, packet, msg_length + reserved_space);
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to transmit a packet\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
sleep(10);
|
||||
|
||||
}
|
||||
|
||||
result = sem_post(sem);
|
||||
if (result != 0) {
|
||||
fprintf(stderr, "Failed to post on semaphore with error %s\n", strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
usleep(200000);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int get_cw(uint8_t *buffer, int avail) {
|
||||
|
||||
int count = 0;
|
||||
/*
|
||||
count += add_space(&buffer[count], 10);
|
||||
|
||||
count += add_dash(&buffer[count], 1); // c
|
||||
count += add_dot(&buffer[count], 1);
|
||||
count += add_dash(&buffer[count], 1);
|
||||
count += add_dot(&buffer[count], 1);
|
||||
count += add_space(&buffer[count], 3);
|
||||
|
||||
count += add_dash(&buffer[count], 2); // q
|
||||
count += add_dot(&buffer[count], 1);
|
||||
count += add_dash(&buffer[count], 1);
|
||||
count += add_space(&buffer[count], 7);
|
||||
|
||||
count += add_dot(&buffer[count], 4); // h
|
||||
count += add_space(&buffer[count], 3);
|
||||
|
||||
count += add_dot(&buffer[count], 2); // i
|
||||
count += add_space(&buffer[count], 7);
|
||||
|
||||
count += add_dot(&buffer[count], 4); // h
|
||||
count += add_space(&buffer[count], 3);
|
||||
|
||||
count += add_dot(&buffer[count], 2); // i
|
||||
count += add_space(&buffer[count], 7);
|
||||
*/
|
||||
|
||||
int tlm_1a = 42;
|
||||
int tlm_1b = 35;
|
||||
|
||||
count += encode_digit(&buffer[count], 1);
|
||||
count += encode_digit(&buffer[count], upper_digit(tlm_1a));
|
||||
count += encode_digit(&buffer[count], lower_digit(tlm_1a));
|
||||
|
||||
count += add_space(&buffer[count], 7);
|
||||
|
||||
count += encode_digit(&buffer[count], 1);
|
||||
count += encode_digit(&buffer[count], upper_digit(tlm_1b));
|
||||
count += encode_digit(&buffer[count], lower_digit(tlm_1b));
|
||||
|
||||
count += add_space(&buffer[count], 14);
|
||||
|
||||
count += encode_digit(&buffer[count], 1);
|
||||
count += encode_digit(&buffer[count], upper_digit(tlm_1a++));
|
||||
count += encode_digit(&buffer[count], lower_digit(tlm_1a));
|
||||
|
||||
count += add_space(&buffer[count], 7);
|
||||
/*
|
||||
count += encode_digit(&buffer[count], 1);
|
||||
count += encode_digit(&buffer[count], upper_digit(tlm_1b++));
|
||||
count += encode_digit(&buffer[count], lower_digit(tlm_1b));
|
||||
|
||||
count += add_space(&buffer[count], 14);
|
||||
|
||||
count += encode_digit(&buffer[count], 2);
|
||||
count += encode_digit(&buffer[count], upper_digit(tlm_1a++));
|
||||
count += encode_digit(&buffer[count], lower_digit(tlm_1a));
|
||||
|
||||
count += add_space(&buffer[count], 7);
|
||||
|
||||
count += encode_digit(&buffer[count], 2);
|
||||
count += encode_digit(&buffer[count], upper_digit(tlm_1b++));
|
||||
count += encode_digit(&buffer[count], lower_digit(tlm_1b));
|
||||
|
||||
count += add_space(&buffer[count], 14);
|
||||
|
||||
count += encode_digit(&buffer[count], 2);
|
||||
count += encode_digit(&buffer[count], upper_digit(tlm_1a++));
|
||||
count += encode_digit(&buffer[count], lower_digit(tlm_1a));
|
||||
|
||||
count += add_space(&buffer[count], 7);
|
||||
|
||||
count += encode_digit(&buffer[count], 2);
|
||||
count += encode_digit(&buffer[count], upper_digit(tlm_1b++));
|
||||
count += encode_digit(&buffer[count], lower_digit(tlm_1b));
|
||||
|
||||
count += add_space(&buffer[count], 14);
|
||||
|
||||
*/
|
||||
printf("DEBUG count: %d avail: %d \n", count, avail);
|
||||
if (count > avail) {
|
||||
buffer[avail-1] = 0;
|
||||
count = avail-1;
|
||||
printf("DEBUG count > avail!\n");
|
||||
}
|
||||
// printf("DEBUG get_cw: ***%s***\n", buffer);
|
||||
|
||||
//return strlen((char *)buffer);
|
||||
return count;
|
||||
}
|
||||
|
||||
int add_dash(uint8_t *msg, int number) {
|
||||
int counter = 0;
|
||||
int i,j;
|
||||
for (j=0; j < number; j++) {
|
||||
for (i=0; i < spacing * 3; i++) {
|
||||
msg[counter++] = on_value;
|
||||
}
|
||||
counter += add_space(&msg[counter], 1);
|
||||
}
|
||||
return counter;
|
||||
}
|
||||
|
||||
int add_dot(uint8_t *msg, int number) {
|
||||
int counter = 0;
|
||||
int i,j;
|
||||
for (j=0; j < number; j++) {
|
||||
for (i=0; i < spacing; i++) {
|
||||
msg[counter++] = on_value;
|
||||
}
|
||||
|
||||
counter += add_space(&msg[counter], 1);
|
||||
}
|
||||
return counter;
|
||||
}
|
||||
|
||||
int add_space(uint8_t *msg, int number) {
|
||||
int j;
|
||||
int counter = 0;
|
||||
for (j=0; j < number * spacing; j++) {
|
||||
msg[counter++] = off_value;
|
||||
}
|
||||
return counter;
|
||||
}
|
||||
|
||||
int encode_digit(uint8_t *buffer, int digit) {
|
||||
int count = 0;
|
||||
switch(digit)
|
||||
|
||||
{
|
||||
case 0:
|
||||
count += add_dash(&buffer[count], 5); // 0
|
||||
count += add_space(&buffer[count], 3);
|
||||
|
||||
break;
|
||||
|
||||
case 1:
|
||||
count += add_dot(&buffer[count], 1); // 1
|
||||
count += add_dash(&buffer[count], 4);
|
||||
count += add_space(&buffer[count], 3);
|
||||
|
||||
break;
|
||||
|
||||
case 2:
|
||||
count += add_dot(&buffer[count], 2); // 2
|
||||
count += add_dash(&buffer[count], 3);
|
||||
count += add_space(&buffer[count], 3);
|
||||
|
||||
break;
|
||||
|
||||
case 3:
|
||||
count += add_dot(&buffer[count], 3); // 3
|
||||
count += add_dash(&buffer[count], 2);
|
||||
count += add_space(&buffer[count], 3);
|
||||
|
||||
break;
|
||||
|
||||
case 4:
|
||||
count += add_dot(&buffer[count], 4); // 4
|
||||
count += add_dash(&buffer[count], 1);
|
||||
count += add_space(&buffer[count], 3);
|
||||
|
||||
break;
|
||||
|
||||
case 5:
|
||||
count += add_dot(&buffer[count], 5); // 5
|
||||
count += add_space(&buffer[count], 3);
|
||||
|
||||
break;
|
||||
|
||||
case 6:
|
||||
count += add_dash(&buffer[count], 1); // 6
|
||||
count += add_dot(&buffer[count], 4);
|
||||
count += add_space(&buffer[count], 3);
|
||||
|
||||
break;
|
||||
|
||||
case 7:
|
||||
|
||||
count += add_dash(&buffer[count], 2); // 7
|
||||
count += add_dot(&buffer[count], 3);
|
||||
count += add_space(&buffer[count], 3);
|
||||
|
||||
break;
|
||||
|
||||
case 8:
|
||||
count += add_dash(&buffer[count], 3); // 8
|
||||
count += add_dot(&buffer[count], 2);
|
||||
count += add_space(&buffer[count], 3);
|
||||
|
||||
break;
|
||||
|
||||
case 9:
|
||||
count += add_dash(&buffer[count], 4); // 9
|
||||
count += add_dot(&buffer[count], 1);
|
||||
count += add_space(&buffer[count], 3);
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
printf("ERROR: Not a digit!\n");
|
||||
return 0;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
int lower_digit(int number) {
|
||||
|
||||
int digit = 0;
|
||||
|
||||
if (number < 100)
|
||||
digit = number - ((int)(number/10) * 10);
|
||||
else
|
||||
printf("ERROR: Not a digit in lower_digit!\n");
|
||||
|
||||
return digit;
|
||||
}
|
||||
|
||||
int upper_digit(int number) {
|
||||
|
||||
int digit = 0;
|
||||
|
||||
if (number < 100)
|
||||
digit = (int)(number/10);
|
||||
else
|
||||
printf("ERROR: Not a digit in upper_digit!\n");
|
||||
|
||||
return digit;
|
||||
}
|
||||
|
||||
void config_cw() {
|
||||
|
||||
printf("Register write to clear framing and crc\n");
|
||||
ax5043WriteReg(0x12,0);
|
||||
|
||||
printf("Register write to disable fec\n");
|
||||
ax5043WriteReg(0x18,0);
|
||||
|
||||
printf("Register write \n");
|
||||
ax5043WriteReg(0x165,0);
|
||||
|
||||
ax5043WriteReg(0x166,0);
|
||||
ax5043WriteReg(0x167,0x50); // 0x08); // 0x20);
|
||||
|
||||
ax5043WriteReg(0x161,0);
|
||||
ax5043WriteReg(0x162,0x20);
|
||||
|
||||
long txRate;
|
||||
txRate = ax5043ReadReg(0x167) + 256 * ax5043ReadReg(0x166) + 65536 * ax5043ReadReg(0x165);
|
||||
printf("Tx Rate %x %x %x \n", ax5043ReadReg(0x165), ax5043ReadReg(0x166), ax5043ReadReg(0x167));
|
||||
long fskDev;
|
||||
fskDev = ax5043ReadReg(0x163) + 256 * ax5043ReadReg(0x162) + 65536 * ax5043ReadReg(0x161);
|
||||
|
||||
ax5043WriteReg(0x37,(ax5043ReadReg(0x37) + 4)); // Increase FREQA
|
||||
|
||||
printf("Tx Rate: %ld FSK Dev: %ld \n", txRate, fskDev);
|
||||
|
||||
ax5043WriteReg(0x10,0); // ASK
|
||||
|
||||
printf("Modulation: %x \n", (int)ax5043ReadReg(0x10));
|
||||
printf("Frequency A: 0x%x %x %x %x \n",(int)ax5043ReadReg(0x34),(int)ax5043ReadReg(0x35),(int)ax5043ReadReg(0x36),(int)ax5043ReadReg(0x37));
|
||||
|
||||
/* HERE */
|
||||
|
||||
/*
|
||||
int x;
|
||||
for (x = 0; x < 0x20; x++)
|
||||
{
|
||||
printf("Register %x contents: %x\n",x,(int)ax5043ReadReg(x));
|
||||
}
|
||||
|
||||
printf("Register Dump complete");
|
||||
*/
|
||||
return;
|
||||
|
||||
}
|
||||
@ -1,495 +0,0 @@
|
||||
// Sends CubeSatSim telemetry encoded as CW (Morse Code) using AO-7 format
|
||||
//
|
||||
// Copyright (c) 2018 Alan Johnston
|
||||
//
|
||||
// Portions Copyright (c) 2018 Brandenburg Tech, LLC
|
||||
// All right reserved.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY BRANDENBURG TECH, LLC AND CONTRIBUTORS
|
||||
// ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
||||
// PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BRANDENBURT TECH, LLC
|
||||
// AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include <axradio/axradioinit_p.h>
|
||||
#include <axradio/axradiomode_p.h>
|
||||
#include <axradio/axradiorx_p.h>
|
||||
#include <axradio/axradiotx_p.h>
|
||||
#include <generated/configtx.h>
|
||||
//#include <pthread.h>
|
||||
//#include <semaphore.h>
|
||||
#include <spi/ax5043spi_p.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <wiringPiI2C.h>
|
||||
#include <time.h>
|
||||
|
||||
#define MAX_MESSAGE_LENGTH (197)
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
#define VBATT 15
|
||||
#define ADC5 17
|
||||
#define ADC6 18
|
||||
#define ADC7 19
|
||||
#define ADC8 20
|
||||
#define TIME 8
|
||||
#define UCTEMP 30
|
||||
#define UPTIME_SEC 8
|
||||
#define A 1
|
||||
#define B 2
|
||||
#define C 3
|
||||
#define D 4
|
||||
|
||||
#define SENSOR_40 0
|
||||
#define SENSOR_41 3
|
||||
#define SENSOR_44 6
|
||||
#define SENSOR_45 9
|
||||
#define SENSOR_4A 12
|
||||
#define VOLTAGE 0
|
||||
#define CURRENT 1
|
||||
#define POWER 2
|
||||
|
||||
long int timestamp = 0;
|
||||
extern uint8_t axradio_rxbuffer[];
|
||||
void *transmit(void *arg);
|
||||
int get_message(uint8_t *buffer, int avail);
|
||||
int lower_digit(int number);
|
||||
int upper_digit(int number);
|
||||
int encode_digit(uint8_t *msg, int number);
|
||||
void config_cw();
|
||||
int encode_tlm(uint8_t *buffer, int channel, int val1, int val2, int val3, int val4, int avail);
|
||||
int encode_header(uint8_t *buffer, int avail);
|
||||
int add_dash(uint8_t *msg, int number);
|
||||
int add_dot(uint8_t *msg, int number);
|
||||
int add_space(uint8_t *msg);
|
||||
int get_tlm(int tlm[7][5]);
|
||||
int tempSensor, xPlusSensor, yPlusSensor, zPlusSensor, battCurrentSensor;
|
||||
extern int config_afsk();
|
||||
|
||||
int main(void)
|
||||
{
|
||||
uint8_t retVal;
|
||||
int tlm[7][5];
|
||||
int i, j;
|
||||
for (i = 1; i < 7; i++) {
|
||||
for (j = 1; j < 5; j++) {
|
||||
tlm[i][j] = 0;
|
||||
}
|
||||
}
|
||||
tempSensor = wiringPiI2CSetupInterface("/dev/i2c-3", 0x48);
|
||||
|
||||
// Configure SPI bus to AX5043
|
||||
setSpiChannel(SPI_CHANNEL);
|
||||
setSpiSpeed(SPI_SPEED);
|
||||
initializeSpi();
|
||||
// printf("1\n");
|
||||
|
||||
// if (send_cw_tlm) {
|
||||
// Send one frame of CW Telem
|
||||
// Initialize the AX5043
|
||||
retVal = axradio_init();
|
||||
if (retVal == AXRADIO_ERR_NOCHIP) {
|
||||
fprintf(stderr, "ERROR: No AX5043 RF chip found\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to initialize AX5043\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
printf("INFO: Found and initialized AX5043\n");
|
||||
|
||||
retVal = mode_tx();
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to enter TX mode\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
config_cw();
|
||||
|
||||
// allocate space for the buffer
|
||||
static uint8_t packet[MAX_MESSAGE_LENGTH + 1];
|
||||
|
||||
int channel; // AO-7 telemetry format has 6 channels, 4 sub channels in each
|
||||
int msg_length;
|
||||
|
||||
while(1) { // loop infinitely
|
||||
for (channel = 0; channel < 7; channel++) {
|
||||
|
||||
get_tlm(tlm);
|
||||
if (channel == 0) {
|
||||
|
||||
// start with telemetry header "hi hi" plus a few chars to help CW decoding software sync
|
||||
msg_length = encode_header(&packet[0], MAX_MESSAGE_LENGTH + 1);
|
||||
|
||||
printf("\nINFO: Sending TLM header\n");
|
||||
|
||||
} else {
|
||||
|
||||
msg_length = encode_tlm(&packet[0], channel,
|
||||
tlm[channel][1], tlm[channel][2], tlm[channel][3], tlm[channel][4],
|
||||
(MAX_MESSAGE_LENGTH + 1));
|
||||
|
||||
printf("\nINFO: Sending TLM channel %d \n", channel);
|
||||
}
|
||||
retVal = transmit_packet(&remoteaddr_tx, packet, (uint16_t)(msg_length)); // send telemetry
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to transmit a packet\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
usleep(200000);
|
||||
}
|
||||
}
|
||||
// Encodes telemetry header (channel 0) into buffer
|
||||
//
|
||||
int encode_header(uint8_t *buffer, int avail) {
|
||||
|
||||
int count = 0;
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dash(&buffer[count], 1); // c
|
||||
count += add_dot(&buffer[count], 1);
|
||||
count += add_dash(&buffer[count], 1);
|
||||
count += add_dot(&buffer[count], 1);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dash(&buffer[count], 2); // q
|
||||
count += add_dot(&buffer[count], 1);
|
||||
count += add_dash(&buffer[count], 1);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dot(&buffer[count], 4); // h
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dot(&buffer[count], 2); // i
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dot(&buffer[count], 4); // h
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dot(&buffer[count], 2); // i
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
if (count > avail)
|
||||
printf("ERROR: encode_header count > avail \n");
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
// Encodes one channel of telemetry into buffer
|
||||
//
|
||||
int encode_tlm(uint8_t *buffer, int channel, int val1, int val2, int val3, int val4, int avail) {
|
||||
|
||||
int count = 0;
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += encode_digit(&buffer[count], channel); // for channel 1, encodes 1aa
|
||||
count += encode_digit(&buffer[count], upper_digit(val1));
|
||||
count += encode_digit(&buffer[count], lower_digit(val1));
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += encode_digit(&buffer[count], channel); // for channel 1, encodes 1bb
|
||||
count += encode_digit(&buffer[count], upper_digit(val2));
|
||||
count += encode_digit(&buffer[count], lower_digit(val2));
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += encode_digit(&buffer[count], channel); // for channel 1, encodes 1cc
|
||||
count += encode_digit(&buffer[count], upper_digit(val3));
|
||||
count += encode_digit(&buffer[count], lower_digit(val3));
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += encode_digit(&buffer[count], channel); // for channel 1, encodes 1dd
|
||||
count += encode_digit(&buffer[count], upper_digit(val4));
|
||||
count += encode_digit(&buffer[count], lower_digit(val4));
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
//printf("DEBUG count: %d avail: %d \n", count, avail);
|
||||
if (count > avail) { // make sure not too long
|
||||
buffer[avail-1] = 0;
|
||||
count = avail-1;
|
||||
printf("DEBUG count > avail!\n");
|
||||
}
|
||||
return count;
|
||||
}
|
||||
// Encodes a single digit of telemetry into buffer
|
||||
//
|
||||
int encode_digit(uint8_t *buffer, int digit) {
|
||||
int count = 0;
|
||||
switch(digit)
|
||||
{
|
||||
case 0:
|
||||
count += add_dash(&buffer[count], 5); // 0
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 1:
|
||||
count += add_dot(&buffer[count], 1); // 1
|
||||
count += add_dash(&buffer[count], 4);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 2:
|
||||
count += add_dot(&buffer[count], 2); // 2
|
||||
count += add_dash(&buffer[count], 3);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 3:
|
||||
count += add_dot(&buffer[count], 3); // 3
|
||||
count += add_dash(&buffer[count], 2);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 4:
|
||||
count += add_dot(&buffer[count], 4); // 4
|
||||
count += add_dash(&buffer[count], 1);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 5:
|
||||
count += add_dot(&buffer[count], 5); // 5
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 6:
|
||||
count += add_dash(&buffer[count], 1); // 6
|
||||
count += add_dot(&buffer[count], 4);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 7:
|
||||
|
||||
count += add_dash(&buffer[count], 2); // 7
|
||||
count += add_dot(&buffer[count], 3);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 8:
|
||||
count += add_dash(&buffer[count], 3); // 8
|
||||
count += add_dot(&buffer[count], 2);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 9:
|
||||
count += add_dash(&buffer[count], 4); // 9
|
||||
count += add_dot(&buffer[count], 1);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
default:
|
||||
printf("ERROR: Not a digit!\n");
|
||||
return 0;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
// Returns lower digit of a number which must be less than 99
|
||||
//
|
||||
int lower_digit(int number) {
|
||||
|
||||
int digit = 0;
|
||||
if (number < 100)
|
||||
digit = number - ((int)(number/10) * 10);
|
||||
else
|
||||
printf("ERROR: Not a digit in lower_digit!\n");
|
||||
return digit;
|
||||
}
|
||||
// Returns upper digit of a number which must be less than 99
|
||||
//
|
||||
int upper_digit(int number) {
|
||||
|
||||
int digit = 0;
|
||||
if (number < 100)
|
||||
digit = (int)(number/10);
|
||||
else
|
||||
printf("ERROR: Not a digit in upper_digit!\n");
|
||||
return digit;
|
||||
}
|
||||
// Configure radio to send CW which is ASK
|
||||
//
|
||||
void config_cw() {
|
||||
|
||||
uint8_t retVal;
|
||||
|
||||
// Configure SPI bus to AX5043
|
||||
// setSpiChannel(SPI_CHANNEL);
|
||||
// setSpiSpeed(SPI_SPEED);
|
||||
// initializeSpi();
|
||||
// printf("1\n");
|
||||
|
||||
// Initialize the AX5043
|
||||
retVal = axradio_init();
|
||||
// printf("2\n");
|
||||
if (retVal == AXRADIO_ERR_NOCHIP) {
|
||||
fprintf(stderr, "ERROR: No AX5043 RF chip found\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to initialize AX5043\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
// printf("INFO: Found and initialized AX5043\n");
|
||||
|
||||
retVal = mode_tx();
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to enter TX mode\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
// printf("Register write to clear framing and crc\n");
|
||||
ax5043WriteReg(0x12,0);
|
||||
|
||||
// printf("Register write to disable fec\n");
|
||||
ax5043WriteReg(0x18,0);
|
||||
|
||||
// printf("Register write \n");
|
||||
ax5043WriteReg(0x165,0);
|
||||
|
||||
ax5043WriteReg(0x166,0);
|
||||
ax5043WriteReg(0x167,0x50); // 0x25); // 0x50); // 0x08); // 0x20);
|
||||
|
||||
ax5043WriteReg(0x161,0);
|
||||
ax5043WriteReg(0x162,0x20);
|
||||
|
||||
// long txRate;
|
||||
// txRate = ax5043ReadReg(0x167) + 256 * ax5043ReadReg(0x166) + 65536 * ax5043ReadReg(0x165);
|
||||
// printf("Tx Rate %x %x %x \n", ax5043ReadReg(0x165), ax5043ReadReg(0x166), ax5043ReadReg(0x167));
|
||||
// long fskDev;
|
||||
// fskDev = ax5043ReadReg(0x163) + 256 * ax5043ReadReg(0x162) + 65536 * ax5043ReadReg(0x161);
|
||||
|
||||
ax5043WriteReg(0x37,(uint8_t)((ax5043ReadReg(0x37) + 4))); // Increase FREQA
|
||||
|
||||
// printf("Tx Rate: %ld FSK Dev: %ld \n", txRate, fskDev);
|
||||
|
||||
ax5043WriteReg(0x10,0); // ASK
|
||||
|
||||
// printf("Modulation: %x \n", (int)ax5043ReadReg(0x10));
|
||||
// printf("Frequency A: 0x%x %x %x %x \n",(int)ax5043ReadReg(0x34),(int)ax5043ReadReg(0x35),(int)ax5043ReadReg(0x36),(int)ax5043ReadReg(0x37));
|
||||
|
||||
/*
|
||||
int x;
|
||||
for (x = 0; x < 0x20; x++)
|
||||
{
|
||||
printf("Register %x contents: %x\n",x,(int)ax5043ReadReg(x));
|
||||
}
|
||||
|
||||
printf("Register Dump complete");
|
||||
*/
|
||||
return;
|
||||
}
|
||||
// Adds a Morse space to the buffer
|
||||
//
|
||||
int add_space(uint8_t *msg) {
|
||||
msg[0] = 0x00; // a space is 8 bits
|
||||
return 1;
|
||||
}
|
||||
// Adds a Morse dash to the buffer
|
||||
//
|
||||
int add_dash(uint8_t *msg, int number) {
|
||||
int j;
|
||||
int counter = 0;
|
||||
|
||||
for (j=0; j < number; j++) { // a dot is 4 bits, so a dash is 12 bits
|
||||
msg[counter++] = 0xff;
|
||||
msg[counter++] = 0x0f;
|
||||
}
|
||||
return counter;
|
||||
}
|
||||
// Adds a Morse dot to the buffer
|
||||
//
|
||||
int add_dot(uint8_t *msg, int number) {
|
||||
int counter = 0;
|
||||
int j;
|
||||
for (j=0; j < number; j++) { // a dot is 4 bits
|
||||
msg[counter++] = 0x0f;
|
||||
}
|
||||
return counter;
|
||||
}
|
||||
int get_tlm(int tlm[][5]) {
|
||||
|
||||
// Reading I2C voltage and current sensors
|
||||
|
||||
char cmdbuffer[1000];
|
||||
FILE* file = popen("sudo python /home/pi/CubeSatSim/python/readcurrent.py 2>&1", "r");
|
||||
fgets(cmdbuffer, 1000, file);
|
||||
pclose(file);
|
||||
printf("I2C Sensor data: %s\n", cmdbuffer);
|
||||
|
||||
char ina219[16][20]; // voltage, currents, and power from the INA219 current sensors x4a, x40, x41, x44, and x45.
|
||||
int i = 0;
|
||||
char * data2 = strtok (cmdbuffer," ");
|
||||
|
||||
while (data2 != NULL) {
|
||||
strcpy(ina219[i], data2);
|
||||
// printf ("ina219[%d]=%s\n",i,ina219[i]);
|
||||
data2 = strtok (NULL, " ");
|
||||
i++;
|
||||
}
|
||||
// printf("1B: ina219[%d]: %s val: %f \n", SENSOR_40 + CURRENT, ina219[SENSOR_40 + CURRENT], strtof(ina219[SENSOR_40 + CURRENT], NULL));
|
||||
|
||||
tlm[1][A] = (int)(strtof(ina219[SENSOR_4A + CURRENT], NULL) / 15 + 0.5); // Current of 5V supply to Pi
|
||||
tlm[1][B] = (int) (99.5 - strtof(ina219[SENSOR_40 + CURRENT], NULL)/10); // +X current [4]
|
||||
tlm[1][D] = (int) (99.5 - strtof(ina219[SENSOR_41 + CURRENT], NULL)/10); // +Y current [7]
|
||||
tlm[1][C] = (int) (99.5 - strtof(ina219[SENSOR_44 + CURRENT], NULL)/10); // +Z current [10] (actually -X current, AO-7 didn't have a Z solar panel?)
|
||||
|
||||
tlm[2][B] = 99;
|
||||
tlm[2][C] = (int)((time(NULL) - timestamp) / 15) % 100;
|
||||
tlm[2][D] = (int)(50.5 + strtof(ina219[SENSOR_45 + CURRENT], NULL)/10.0); // NiMH Battery current
|
||||
|
||||
tlm[3][A] = (int)((strtof(ina219[SENSOR_45 + VOLTAGE], NULL) * 10) - 65.5);
|
||||
tlm[3][B] = (int)(strtof(ina219[SENSOR_4A + VOLTAGE], NULL) * 10.0); // 5V supply to Pi
|
||||
|
||||
int tempValue = wiringPiI2CReadReg16(tempSensor, 0);
|
||||
// printf("Read: %x\n", tempValue);
|
||||
uint8_t upper = (uint8_t) (tempValue >> 8);
|
||||
uint8_t lower = (uint8_t) (tempValue & 0xff);
|
||||
float temp = (float)lower + ((float)upper / 0x100);
|
||||
|
||||
tlm[4][A] = (int)((95.8 - temp)/1.48 + 0.5);
|
||||
|
||||
tlm[6][B] = 0 ;
|
||||
tlm[6][D] = 49 + rand() % 3;
|
||||
|
||||
// Display tlm
|
||||
int k, j;
|
||||
for (k = 1; k < 7; k++) {
|
||||
for (j = 1; j < 5; j++) {
|
||||
printf(" %2d ", tlm[k][j]);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@ -1,515 +0,0 @@
|
||||
// Sends CubeSatSim telemetry encoded as CW (Morse Code) using AO-7 format
|
||||
//
|
||||
// Copyright (c) 2018 Alan Johnston
|
||||
//
|
||||
// Portions Copyright (c) 2018 Brandenburg Tech, LLC
|
||||
// All right reserved.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY BRANDENBURG TECH, LLC AND CONTRIBUTORS
|
||||
// ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
||||
// PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BRANDENBURT TECH, LLC
|
||||
// AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include <unistd.h> //Needed for I2C port
|
||||
#include <fcntl.h> //Needed for I2C port
|
||||
#include <sys/ioctl.h> //Needed for I2C port
|
||||
|
||||
#include <axradio/axradioinit_p.h>
|
||||
#include <axradio/axradiomode_p.h>
|
||||
#include <axradio/axradiorx_p.h>
|
||||
#include <axradio/axradiotx_p.h>
|
||||
#include <generated/configtx.h>
|
||||
//#include <pthread.h>
|
||||
//#include <semaphore.h>
|
||||
#include <spi/ax5043spi_p.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <wiringPiI2C.h>
|
||||
#include <time.h>
|
||||
|
||||
#define MAX_MESSAGE_LENGTH (197)
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
#define VBATT 15
|
||||
#define ADC5 17
|
||||
#define ADC6 18
|
||||
#define ADC7 19
|
||||
#define ADC8 20
|
||||
#define TIME 8
|
||||
#define UCTEMP 30
|
||||
#define UPTIME_SEC 8
|
||||
#define A 1
|
||||
#define B 2
|
||||
#define C 3
|
||||
#define D 4
|
||||
|
||||
#define SENSOR_40 0
|
||||
#define SENSOR_41 3
|
||||
#define SENSOR_44 6
|
||||
#define SENSOR_45 9
|
||||
#define SENSOR_4A 12
|
||||
#define VOLTAGE 0
|
||||
#define CURRENT 1
|
||||
#define POWER 2
|
||||
|
||||
uint32_t tx_freq_hz = 440390000;
|
||||
|
||||
long int timestamp = 0;
|
||||
extern uint8_t axradio_rxbuffer[];
|
||||
void *transmit(void *arg);
|
||||
int get_message(uint8_t *buffer, int avail);
|
||||
int lower_digit(int number);
|
||||
int upper_digit(int number);
|
||||
int encode_digit(uint8_t *msg, int number);
|
||||
void config_cw();
|
||||
int encode_tlm(uint8_t *buffer, int channel, int val1, int val2, int val3, int val4, int avail);
|
||||
int encode_header(uint8_t *buffer, int avail);
|
||||
int add_dash(uint8_t *msg, int number);
|
||||
int add_dot(uint8_t *msg, int number);
|
||||
int add_space(uint8_t *msg);
|
||||
int get_tlm(int tlm[7][5]);
|
||||
int tempSensor, xPlusSensor, yPlusSensor, zPlusSensor, battCurrentSensor;
|
||||
extern int config_afsk();
|
||||
|
||||
int main(void)
|
||||
{
|
||||
uint8_t retVal;
|
||||
int tlm[7][5];
|
||||
int i, j;
|
||||
for (i = 1; i < 7; i++) {
|
||||
for (j = 1; j < 5; j++) {
|
||||
tlm[i][j] = 0;
|
||||
}
|
||||
}
|
||||
int file_i2c;
|
||||
char *filenam1e = (char*)"/dev/i2c-3";
|
||||
if ((file_i2c = open(filenam1e, O_RDWR)) < 0)
|
||||
{
|
||||
printf("ERROR: /dev/ic2-3 bus not present\n");
|
||||
tempSensor = -1;
|
||||
} else
|
||||
{
|
||||
tempSensor = wiringPiI2CSetupInterface("/dev/i2c-3", 0x48);
|
||||
}
|
||||
|
||||
printf("tempSensor: %d \n",tempSensor);
|
||||
|
||||
// Configure SPI bus to AX5043
|
||||
setSpiChannel(SPI_CHANNEL);
|
||||
setSpiSpeed(SPI_SPEED);
|
||||
initializeSpi();
|
||||
// printf("1\n");
|
||||
|
||||
// if (send_cw_tlm) {
|
||||
// Send one frame of CW Telem
|
||||
// Initialize the AX5043
|
||||
retVal = axradio_init();
|
||||
if (retVal == AXRADIO_ERR_NOCHIP) {
|
||||
fprintf(stderr, "ERROR: No AX5043 RF chip found\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to initialize AX5043\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
printf("INFO: Found and initialized AX5043\n");
|
||||
|
||||
retVal = mode_tx();
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to enter TX mode\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
config_cw();
|
||||
|
||||
// allocate space for the buffer
|
||||
static uint8_t packet[MAX_MESSAGE_LENGTH + 1];
|
||||
|
||||
int channel; // AO-7 telemetry format has 6 channels, 4 sub channels in each
|
||||
int msg_length;
|
||||
|
||||
//while(1) { // loop infinitely
|
||||
for (channel = 0; channel < 7; channel++) {
|
||||
|
||||
get_tlm(tlm);
|
||||
if (channel == 0) {
|
||||
|
||||
// start with telemetry header "hi hi" plus a few chars to help CW decoding software sync
|
||||
msg_length = encode_header(&packet[0], MAX_MESSAGE_LENGTH + 1);
|
||||
|
||||
printf("\nINFO: Sending TLM header\n");
|
||||
|
||||
} else {
|
||||
|
||||
msg_length = encode_tlm(&packet[0], channel,
|
||||
tlm[channel][1], tlm[channel][2], tlm[channel][3], tlm[channel][4],
|
||||
(MAX_MESSAGE_LENGTH + 1));
|
||||
|
||||
printf("\nINFO: Sending TLM channel %d \n", channel);
|
||||
}
|
||||
retVal = transmit_packet(&remoteaddr_tx, packet, (uint16_t)(msg_length)); // send telemetry
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to transmit a packet\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
usleep(200000);
|
||||
//}
|
||||
}
|
||||
// Encodes telemetry header (channel 0) into buffer
|
||||
//
|
||||
int encode_header(uint8_t *buffer, int avail) {
|
||||
|
||||
int count = 0;
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dash(&buffer[count], 1); // c
|
||||
count += add_dot(&buffer[count], 1);
|
||||
count += add_dash(&buffer[count], 1);
|
||||
count += add_dot(&buffer[count], 1);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dash(&buffer[count], 2); // q
|
||||
count += add_dot(&buffer[count], 1);
|
||||
count += add_dash(&buffer[count], 1);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dot(&buffer[count], 4); // h
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dot(&buffer[count], 2); // i
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dot(&buffer[count], 4); // h
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dot(&buffer[count], 2); // i
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
if (count > avail)
|
||||
printf("ERROR: encode_header count > avail \n");
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
// Encodes one channel of telemetry into buffer
|
||||
//
|
||||
int encode_tlm(uint8_t *buffer, int channel, int val1, int val2, int val3, int val4, int avail) {
|
||||
|
||||
int count = 0;
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += encode_digit(&buffer[count], channel); // for channel 1, encodes 1aa
|
||||
count += encode_digit(&buffer[count], upper_digit(val1));
|
||||
count += encode_digit(&buffer[count], lower_digit(val1));
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += encode_digit(&buffer[count], channel); // for channel 1, encodes 1bb
|
||||
count += encode_digit(&buffer[count], upper_digit(val2));
|
||||
count += encode_digit(&buffer[count], lower_digit(val2));
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += encode_digit(&buffer[count], channel); // for channel 1, encodes 1cc
|
||||
count += encode_digit(&buffer[count], upper_digit(val3));
|
||||
count += encode_digit(&buffer[count], lower_digit(val3));
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += encode_digit(&buffer[count], channel); // for channel 1, encodes 1dd
|
||||
count += encode_digit(&buffer[count], upper_digit(val4));
|
||||
count += encode_digit(&buffer[count], lower_digit(val4));
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
//printf("DEBUG count: %d avail: %d \n", count, avail);
|
||||
if (count > avail) { // make sure not too long
|
||||
buffer[avail-1] = 0;
|
||||
count = avail-1;
|
||||
printf("DEBUG count > avail!\n");
|
||||
}
|
||||
return count;
|
||||
}
|
||||
// Encodes a single digit of telemetry into buffer
|
||||
//
|
||||
int encode_digit(uint8_t *buffer, int digit) {
|
||||
int count = 0;
|
||||
switch(digit)
|
||||
{
|
||||
case 0:
|
||||
count += add_dash(&buffer[count], 5); // 0
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 1:
|
||||
count += add_dot(&buffer[count], 1); // 1
|
||||
count += add_dash(&buffer[count], 4);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 2:
|
||||
count += add_dot(&buffer[count], 2); // 2
|
||||
count += add_dash(&buffer[count], 3);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 3:
|
||||
count += add_dot(&buffer[count], 3); // 3
|
||||
count += add_dash(&buffer[count], 2);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 4:
|
||||
count += add_dot(&buffer[count], 4); // 4
|
||||
count += add_dash(&buffer[count], 1);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 5:
|
||||
count += add_dot(&buffer[count], 5); // 5
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 6:
|
||||
count += add_dash(&buffer[count], 1); // 6
|
||||
count += add_dot(&buffer[count], 4);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 7:
|
||||
|
||||
count += add_dash(&buffer[count], 2); // 7
|
||||
count += add_dot(&buffer[count], 3);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 8:
|
||||
count += add_dash(&buffer[count], 3); // 8
|
||||
count += add_dot(&buffer[count], 2);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 9:
|
||||
count += add_dash(&buffer[count], 4); // 9
|
||||
count += add_dot(&buffer[count], 1);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
default:
|
||||
printf("ERROR: Not a digit!\n");
|
||||
return 0;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
// Returns lower digit of a number which must be less than 99
|
||||
//
|
||||
int lower_digit(int number) {
|
||||
|
||||
int digit = 0;
|
||||
if (number < 100)
|
||||
digit = number - ((int)(number/10) * 10);
|
||||
else
|
||||
printf("ERROR: Not a digit in lower_digit!\n");
|
||||
return digit;
|
||||
}
|
||||
// Returns upper digit of a number which must be less than 99
|
||||
//
|
||||
int upper_digit(int number) {
|
||||
|
||||
int digit = 0;
|
||||
if (number < 100)
|
||||
digit = (int)(number/10);
|
||||
else
|
||||
printf("ERROR: Not a digit in upper_digit!\n");
|
||||
return digit;
|
||||
}
|
||||
// Configure radio to send CW which is ASK
|
||||
//
|
||||
void config_cw() {
|
||||
|
||||
uint8_t retVal;
|
||||
|
||||
// Configure SPI bus to AX5043
|
||||
// setSpiChannel(SPI_CHANNEL);
|
||||
// setSpiSpeed(SPI_SPEED);
|
||||
// initializeSpi();
|
||||
// printf("1\n");
|
||||
|
||||
// Initialize the AX5043
|
||||
retVal = axradio_init();
|
||||
// printf("2\n");
|
||||
if (retVal == AXRADIO_ERR_NOCHIP) {
|
||||
fprintf(stderr, "ERROR: No AX5043 RF chip found\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to initialize AX5043\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
// printf("INFO: Found and initialized AX5043\n");
|
||||
|
||||
retVal = mode_tx();
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to enter TX mode\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
// printf("Register write to clear framing and crc\n");
|
||||
ax5043WriteReg(0x12,0);
|
||||
|
||||
// printf("Register write to disable fec\n");
|
||||
ax5043WriteReg(0x18,0);
|
||||
|
||||
// printf("Register write \n");
|
||||
ax5043WriteReg(0x165,0);
|
||||
|
||||
ax5043WriteReg(0x166,0);
|
||||
ax5043WriteReg(0x167,0x50); // 0x25); // 0x50); // 0x08); // 0x20);
|
||||
|
||||
ax5043WriteReg(0x161,0);
|
||||
ax5043WriteReg(0x162,0x20);
|
||||
|
||||
// long txRate;
|
||||
// txRate = ax5043ReadReg(0x167) + 256 * ax5043ReadReg(0x166) + 65536 * ax5043ReadReg(0x165);
|
||||
// printf("Tx Rate %x %x %x \n", ax5043ReadReg(0x165), ax5043ReadReg(0x166), ax5043ReadReg(0x167));
|
||||
// long fskDev;
|
||||
// fskDev = ax5043ReadReg(0x163) + 256 * ax5043ReadReg(0x162) + 65536 * ax5043ReadReg(0x161);
|
||||
|
||||
ax5043WriteReg(0x37,(uint8_t)((ax5043ReadReg(0x37) + 4))); // Increase FREQA
|
||||
|
||||
// printf("Tx Rate: %ld FSK Dev: %ld \n", txRate, fskDev);
|
||||
|
||||
ax5043WriteReg(0x10,0); // ASK
|
||||
|
||||
// printf("Modulation: %x \n", (int)ax5043ReadReg(0x10));
|
||||
// printf("Frequency A: 0x%x %x %x %x \n",(int)ax5043ReadReg(0x34),(int)ax5043ReadReg(0x35),(int)ax5043ReadReg(0x36),(int)ax5043ReadReg(0x37));
|
||||
|
||||
/*
|
||||
int x;
|
||||
for (x = 0; x < 0x20; x++)
|
||||
{
|
||||
printf("Register %x contents: %x\n",x,(int)ax5043ReadReg(x));
|
||||
}
|
||||
|
||||
printf("Register Dump complete");
|
||||
*/
|
||||
return;
|
||||
}
|
||||
// Adds a Morse space to the buffer
|
||||
//
|
||||
int add_space(uint8_t *msg) {
|
||||
msg[0] = 0x00; // a space is 8 bits
|
||||
return 1;
|
||||
}
|
||||
// Adds a Morse dash to the buffer
|
||||
//
|
||||
int add_dash(uint8_t *msg, int number) {
|
||||
int j;
|
||||
int counter = 0;
|
||||
|
||||
for (j=0; j < number; j++) { // a dot is 4 bits, so a dash is 12 bits
|
||||
msg[counter++] = 0xff;
|
||||
msg[counter++] = 0x0f;
|
||||
}
|
||||
return counter;
|
||||
}
|
||||
// Adds a Morse dot to the buffer
|
||||
//
|
||||
int add_dot(uint8_t *msg, int number) {
|
||||
int counter = 0;
|
||||
int j;
|
||||
for (j=0; j < number; j++) { // a dot is 4 bits
|
||||
msg[counter++] = 0x0f;
|
||||
}
|
||||
return counter;
|
||||
}
|
||||
int get_tlm(int tlm[][5]) {
|
||||
|
||||
// Reading I2C voltage and current sensors
|
||||
|
||||
char cmdbuffer[1000];
|
||||
FILE* file = popen("sudo python /home/pi/CubeSatSim/python/readcurrent.py 2>&1", "r");
|
||||
fgets(cmdbuffer, 1000, file);
|
||||
pclose(file);
|
||||
printf("I2C Sensor data: %s\n", cmdbuffer);
|
||||
|
||||
char ina219[16][20]; // voltage, currents, and power from the INA219 current sensors x4a, x40, x41, x44, and x45.
|
||||
int i = 0;
|
||||
char * data2 = strtok (cmdbuffer," ");
|
||||
|
||||
while (data2 != NULL) {
|
||||
strcpy(ina219[i], data2);
|
||||
// printf ("ina219[%d]=%s\n",i,ina219[i]);
|
||||
data2 = strtok (NULL, " ");
|
||||
i++;
|
||||
}
|
||||
// printf("1B: ina219[%d]: %s val: %f \n", SENSOR_40 + CURRENT, ina219[SENSOR_40 + CURRENT], strtof(ina219[SENSOR_40 + CURRENT], NULL));
|
||||
|
||||
tlm[1][A] = (int)(strtof(ina219[SENSOR_4A + CURRENT], NULL) / 15 + 0.5) % 100; // Current of 5V supply to Pi
|
||||
tlm[1][B] = (int) (99.5 - strtof(ina219[SENSOR_40 + CURRENT], NULL)/10) % 100; // +X current [4]
|
||||
tlm[1][D] = (int) (99.5 - strtof(ina219[SENSOR_41 + CURRENT], NULL)/10) % 100; // +Y current [7]
|
||||
tlm[1][C] = (int) (99.5 - strtof(ina219[SENSOR_44 + CURRENT], NULL)/10) % 100; // +Z current [10] (actually -X current, AO-7 didn't have a Z solar panel?)
|
||||
|
||||
tlm[2][A] = 99;
|
||||
tlm[2][C] = (int)((time(NULL) - timestamp) / 15) % 100;
|
||||
tlm[2][D] = (int)(50.5 + strtof(ina219[SENSOR_45 + CURRENT], NULL)/10.0) % 100; // NiMH Battery current
|
||||
|
||||
tlm[3][A] = abs((int)((strtof(ina219[SENSOR_45 + VOLTAGE], NULL) * 10) - 65.5) % 100);
|
||||
tlm[3][B] = (int)(strtof(ina219[SENSOR_4A + VOLTAGE], NULL) * 10.0) % 100; // 5V supply to Pi
|
||||
if (tempSensor != -1) {
|
||||
int tempValue = wiringPiI2CReadReg16(tempSensor, 0);
|
||||
// printf("Read: %x\n", tempValue);
|
||||
uint8_t upper = (uint8_t) (tempValue >> 8);
|
||||
uint8_t lower = (uint8_t) (tempValue & 0xff);
|
||||
float temp = (float)lower + ((float)upper / 0x100);
|
||||
|
||||
tlm[4][A] = (int)((95.8 - temp)/1.48 + 0.5) % 100;
|
||||
}
|
||||
tlm[6][B] = 0 ;
|
||||
tlm[6][D] = 49 + rand() % 3;
|
||||
|
||||
// Display tlm
|
||||
int k, j;
|
||||
for (k = 1; k < 7; k++) {
|
||||
for (j = 1; j < 5; j++) {
|
||||
printf(" %2d ", tlm[k][j]);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@ -1,498 +0,0 @@
|
||||
// Sends CubeSatSim telemetry encoded as CW (Morse Code) using AO-7 format
|
||||
//
|
||||
// Copyright (c) 2018 Alan Johnston
|
||||
//
|
||||
// Portions Copyright (c) 2018 Brandenburg Tech, LLC
|
||||
// All right reserved.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY BRANDENBURG TECH, LLC AND CONTRIBUTORS
|
||||
// ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
||||
// PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BRANDENBURT TECH, LLC
|
||||
// AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include <axradio/axradioinit_p.h>
|
||||
#include <axradio/axradiomode_p.h>
|
||||
#include <axradio/axradiorx_p.h>
|
||||
#include <axradio/axradiotx_p.h>
|
||||
#include <generated/configtx.h>
|
||||
//#include <pthread.h>
|
||||
//#include <semaphore.h>
|
||||
#include <spi/ax5043spi_p.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <wiringPiI2C.h>
|
||||
#include <time.h>
|
||||
|
||||
#define MAX_MESSAGE_LENGTH (197)
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
#define VBATT 15
|
||||
#define ADC5 17
|
||||
#define ADC6 18
|
||||
#define ADC7 19
|
||||
#define ADC8 20
|
||||
#define TIME 8
|
||||
#define UCTEMP 30
|
||||
#define UPTIME_SEC 8
|
||||
#define A 1
|
||||
#define B 2
|
||||
#define C 3
|
||||
#define D 4
|
||||
|
||||
#define SENSOR_40 0
|
||||
#define SENSOR_41 3
|
||||
#define SENSOR_44 6
|
||||
#define SENSOR_45 9
|
||||
#define SENSOR_4A 12
|
||||
#define VOLTAGE 0
|
||||
#define CURRENT 1
|
||||
#define POWER 2
|
||||
|
||||
long int timestamp = 0;
|
||||
extern uint8_t axradio_rxbuffer[];
|
||||
void *transmit(void *arg);
|
||||
int get_message(uint8_t *buffer, int avail);
|
||||
int lower_digit(int number);
|
||||
int upper_digit(int number);
|
||||
int encode_digit(uint8_t *msg, int number);
|
||||
void config_cw();
|
||||
int encode_tlm(uint8_t *buffer, int channel, int val1, int val2, int val3, int val4, int avail);
|
||||
int encode_header(uint8_t *buffer, int avail);
|
||||
int add_dash(uint8_t *msg, int number);
|
||||
int add_dot(uint8_t *msg, int number);
|
||||
int add_space(uint8_t *msg);
|
||||
int get_tlm(int tlm[7][5]);
|
||||
int tempSensor, xPlusSensor, yPlusSensor, zPlusSensor, battCurrentSensor;
|
||||
extern int config_afsk();
|
||||
|
||||
int main(void)
|
||||
{
|
||||
uint8_t retVal;
|
||||
int tlm[7][5];
|
||||
int i, j;
|
||||
for (i = 1; i < 7; i++) {
|
||||
for (j = 1; j < 5; j++) {
|
||||
tlm[i][j] = 0;
|
||||
}
|
||||
}
|
||||
tempSensor = wiringPiI2CSetupInterface("/dev/i2c-3", 0x48);
|
||||
|
||||
// Configure SPI bus to AX5043
|
||||
setSpiChannel(SPI_CHANNEL);
|
||||
setSpiSpeed(SPI_SPEED);
|
||||
initializeSpi();
|
||||
// printf("1\n");
|
||||
|
||||
// if (send_cw_tlm) {
|
||||
// Send one frame of CW Telem
|
||||
// Initialize the AX5043
|
||||
retVal = axradio_init();
|
||||
if (retVal == AXRADIO_ERR_NOCHIP) {
|
||||
fprintf(stderr, "ERROR: No AX5043 RF chip found\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to initialize AX5043\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
printf("INFO: Found and initialized AX5043\n");
|
||||
|
||||
retVal = mode_tx();
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to enter TX mode\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
config_cw();
|
||||
|
||||
// allocate space for the buffer
|
||||
static uint8_t packet[MAX_MESSAGE_LENGTH + 1];
|
||||
|
||||
int channel; // AO-7 telemetry format has 6 channels, 4 sub channels in each
|
||||
int msg_length;
|
||||
|
||||
while(1) { // loop infinitely
|
||||
for (channel = 0; channel < 7; channel++) {
|
||||
|
||||
get_tlm(tlm);
|
||||
if (channel == 0) {
|
||||
|
||||
// start with telemetry header "hi hi" plus a few chars to help CW decoding software sync
|
||||
msg_length = encode_header(&packet[0], MAX_MESSAGE_LENGTH + 1);
|
||||
|
||||
printf("\nINFO: Sending TLM header\n");
|
||||
|
||||
} else {
|
||||
|
||||
msg_length = encode_tlm(&packet[0], channel,
|
||||
tlm[channel][1], tlm[channel][2], tlm[channel][3], tlm[channel][4],
|
||||
(MAX_MESSAGE_LENGTH + 1));
|
||||
|
||||
printf("\nINFO: Sending TLM channel %d \n", channel);
|
||||
}
|
||||
retVal = transmit_packet(&remoteaddr_tx, packet, (uint16_t)(msg_length)); // send telemetry
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to transmit a packet\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
usleep(200000);
|
||||
}
|
||||
}
|
||||
// Encodes telemetry header (channel 0) into buffer
|
||||
//
|
||||
int encode_header(uint8_t *buffer, int avail) {
|
||||
|
||||
int count = 0;
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dash(&buffer[count], 1); // c
|
||||
count += add_dot(&buffer[count], 1);
|
||||
count += add_dash(&buffer[count], 1);
|
||||
count += add_dot(&buffer[count], 1);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dash(&buffer[count], 2); // q
|
||||
count += add_dot(&buffer[count], 1);
|
||||
count += add_dash(&buffer[count], 1);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dot(&buffer[count], 4); // h
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dot(&buffer[count], 2); // i
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dot(&buffer[count], 4); // h
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_dot(&buffer[count], 2); // i
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
if (count > avail)
|
||||
printf("ERROR: encode_header count > avail \n");
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
// Encodes one channel of telemetry into buffer
|
||||
//
|
||||
int encode_tlm(uint8_t *buffer, int channel, int val1, int val2, int val3, int val4, int avail) {
|
||||
|
||||
int count = 0;
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += encode_digit(&buffer[count], channel); // for channel 1, encodes 1aa
|
||||
count += encode_digit(&buffer[count], upper_digit(val1));
|
||||
count += encode_digit(&buffer[count], lower_digit(val1));
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += encode_digit(&buffer[count], channel); // for channel 1, encodes 1bb
|
||||
count += encode_digit(&buffer[count], upper_digit(val2));
|
||||
count += encode_digit(&buffer[count], lower_digit(val2));
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += encode_digit(&buffer[count], channel); // for channel 1, encodes 1cc
|
||||
count += encode_digit(&buffer[count], upper_digit(val3));
|
||||
count += encode_digit(&buffer[count], lower_digit(val3));
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
count += encode_digit(&buffer[count], channel); // for channel 1, encodes 1dd
|
||||
count += encode_digit(&buffer[count], upper_digit(val4));
|
||||
count += encode_digit(&buffer[count], lower_digit(val4));
|
||||
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
//printf("DEBUG count: %d avail: %d \n", count, avail);
|
||||
if (count > avail) { // make sure not too long
|
||||
buffer[avail-1] = 0;
|
||||
count = avail-1;
|
||||
printf("DEBUG count > avail!\n");
|
||||
}
|
||||
return count;
|
||||
}
|
||||
// Encodes a single digit of telemetry into buffer
|
||||
//
|
||||
int encode_digit(uint8_t *buffer, int digit) {
|
||||
int count = 0;
|
||||
switch(digit)
|
||||
{
|
||||
case 0:
|
||||
count += add_dash(&buffer[count], 5); // 0
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 1:
|
||||
count += add_dot(&buffer[count], 1); // 1
|
||||
count += add_dash(&buffer[count], 4);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 2:
|
||||
count += add_dot(&buffer[count], 2); // 2
|
||||
count += add_dash(&buffer[count], 3);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 3:
|
||||
count += add_dot(&buffer[count], 3); // 3
|
||||
count += add_dash(&buffer[count], 2);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 4:
|
||||
count += add_dot(&buffer[count], 4); // 4
|
||||
count += add_dash(&buffer[count], 1);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 5:
|
||||
count += add_dot(&buffer[count], 5); // 5
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 6:
|
||||
count += add_dash(&buffer[count], 1); // 6
|
||||
count += add_dot(&buffer[count], 4);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 7:
|
||||
|
||||
count += add_dash(&buffer[count], 2); // 7
|
||||
count += add_dot(&buffer[count], 3);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 8:
|
||||
count += add_dash(&buffer[count], 3); // 8
|
||||
count += add_dot(&buffer[count], 2);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
case 9:
|
||||
count += add_dash(&buffer[count], 4); // 9
|
||||
count += add_dot(&buffer[count], 1);
|
||||
count += add_space(&buffer[count]);
|
||||
|
||||
break;
|
||||
default:
|
||||
printf("ERROR: Not a digit!\n");
|
||||
return 0;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
// Returns lower digit of a number which must be less than 99
|
||||
//
|
||||
int lower_digit(int number) {
|
||||
|
||||
int digit = 0;
|
||||
if (number < 100)
|
||||
digit = number - ((int)(number/10) * 10);
|
||||
else
|
||||
printf("ERROR: Not a digit in lower_digit!\n");
|
||||
return digit;
|
||||
}
|
||||
// Returns upper digit of a number which must be less than 99
|
||||
//
|
||||
int upper_digit(int number) {
|
||||
|
||||
int digit = 0;
|
||||
if (number < 100)
|
||||
digit = (int)(number/10);
|
||||
else
|
||||
printf("ERROR: Not a digit in upper_digit!\n");
|
||||
return digit;
|
||||
}
|
||||
// Configure radio to send CW which is ASK
|
||||
//
|
||||
void config_cw() {
|
||||
|
||||
uint8_t retVal;
|
||||
|
||||
// Configure SPI bus to AX5043
|
||||
// setSpiChannel(SPI_CHANNEL);
|
||||
// setSpiSpeed(SPI_SPEED);
|
||||
// initializeSpi();
|
||||
// printf("1\n");
|
||||
|
||||
// Initialize the AX5043
|
||||
retVal = axradio_init();
|
||||
// printf("2\n");
|
||||
if (retVal == AXRADIO_ERR_NOCHIP) {
|
||||
fprintf(stderr, "ERROR: No AX5043 RF chip found\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to initialize AX5043\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
// printf("INFO: Found and initialized AX5043\n");
|
||||
|
||||
retVal = mode_tx();
|
||||
if (retVal != AXRADIO_ERR_NOERROR) {
|
||||
fprintf(stderr, "ERROR: Unable to enter TX mode\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
// printf("Register write to clear framing and crc\n");
|
||||
ax5043WriteReg(0x12,0);
|
||||
|
||||
// printf("Register write to disable fec\n");
|
||||
ax5043WriteReg(0x18,0);
|
||||
|
||||
// printf("Register write \n");
|
||||
ax5043WriteReg(0x165,0);
|
||||
|
||||
ax5043WriteReg(0x166,0);
|
||||
ax5043WriteReg(0x167,0x50); // 0x25); // 0x50); // 0x08); // 0x20);
|
||||
|
||||
ax5043WriteReg(0x161,0);
|
||||
ax5043WriteReg(0x162,0x20);
|
||||
|
||||
// long txRate;
|
||||
// txRate = ax5043ReadReg(0x167) + 256 * ax5043ReadReg(0x166) + 65536 * ax5043ReadReg(0x165);
|
||||
// printf("Tx Rate %x %x %x \n", ax5043ReadReg(0x165), ax5043ReadReg(0x166), ax5043ReadReg(0x167));
|
||||
// long fskDev;
|
||||
// fskDev = ax5043ReadReg(0x163) + 256 * ax5043ReadReg(0x162) + 65536 * ax5043ReadReg(0x161);
|
||||
|
||||
ax5043WriteReg(0x37,(uint8_t)((ax5043ReadReg(0x37) + 4))); // Increase FREQA
|
||||
|
||||
// printf("Tx Rate: %ld FSK Dev: %ld \n", txRate, fskDev);
|
||||
|
||||
ax5043WriteReg(0x10,0); // ASK
|
||||
|
||||
// printf("Modulation: %x \n", (int)ax5043ReadReg(0x10));
|
||||
// printf("Frequency A: 0x%x %x %x %x \n",(int)ax5043ReadReg(0x34),(int)ax5043ReadReg(0x35),(int)ax5043ReadReg(0x36),(int)ax5043ReadReg(0x37));
|
||||
|
||||
/*
|
||||
int x;
|
||||
for (x = 0; x < 0x20; x++)
|
||||
{
|
||||
printf("Register %x contents: %x\n",x,(int)ax5043ReadReg(x));
|
||||
}
|
||||
|
||||
printf("Register Dump complete");
|
||||
*/
|
||||
return;
|
||||
}
|
||||
// Adds a Morse space to the buffer
|
||||
//
|
||||
int add_space(uint8_t *msg) {
|
||||
msg[0] = 0x00; // a space is 8 bits
|
||||
return 1;
|
||||
}
|
||||
// Adds a Morse dash to the buffer
|
||||
//
|
||||
int add_dash(uint8_t *msg, int number) {
|
||||
int j;
|
||||
int counter = 0;
|
||||
|
||||
for (j=0; j < number; j++) { // a dot is 4 bits, so a dash is 12 bits
|
||||
msg[counter++] = 0xff;
|
||||
msg[counter++] = 0x0f;
|
||||
}
|
||||
return counter;
|
||||
}
|
||||
// Adds a Morse dot to the buffer
|
||||
//
|
||||
int add_dot(uint8_t *msg, int number) {
|
||||
int counter = 0;
|
||||
int j;
|
||||
for (j=0; j < number; j++) { // a dot is 4 bits
|
||||
msg[counter++] = 0x0f;
|
||||
}
|
||||
return counter;
|
||||
}
|
||||
int get_tlm(int tlm[][5]) {
|
||||
|
||||
// Reading I2C voltage and current sensors
|
||||
|
||||
char cmdbuffer[1000];
|
||||
FILE* file = popen("sudo python /home/pi/CubeSatSim/python/readcurrent.py 2>&1", "r");
|
||||
fgets(cmdbuffer, 1000, file);
|
||||
pclose(file);
|
||||
printf("I2C Sensor data: %s\n", cmdbuffer);
|
||||
|
||||
char ina219[16][20]; // voltage, currents, and power from the INA219 current sensors x4a, x40, x41, x44, and x45.
|
||||
int i = 0;
|
||||
char * data2 = strtok (cmdbuffer," ");
|
||||
|
||||
while (data2 != NULL) {
|
||||
strcpy(ina219[i], data2);
|
||||
// printf ("ina219[%d]=%s\n",i,ina219[i]);
|
||||
data2 = strtok (NULL, " ");
|
||||
i++;
|
||||
}
|
||||
// printf("1B: ina219[%d]: %s val: %f \n", SENSOR_40 + CURRENT, ina219[SENSOR_40 + CURRENT], strtof(ina219[SENSOR_40 + CURRENT], NULL));
|
||||
|
||||
tlm[1][A] = (int)(strtof(ina219[SENSOR_4A + CURRENT], NULL) / 15 + 0.5); // Current of 5V supply to Pi
|
||||
tlm[1][B] = (int) (99.5 - strtof(ina219[SENSOR_40 + CURRENT], NULL)/10); // +X current [4]
|
||||
tlm[1][D] = (int) (99.5 - strtof(ina219[SENSOR_41 + CURRENT], NULL)/10); // +Y current [7]
|
||||
tlm[1][C] = (int) (99.5 - strtof(ina219[SENSOR_44 + CURRENT], NULL)/10); // +Z current [10] (actually -X current, AO-7 didn't have a Z solar panel?)
|
||||
|
||||
tlm[2][B] = 99;
|
||||
tlm[2][C] = (int)((time(NULL) - timestamp) / 15) % 100;
|
||||
tlm[2][D] = (int)(50.5 + strtof(ina219[SENSOR_45 + CURRENT], NULL)/10.0); // NiMH Battery current
|
||||
|
||||
tlm[3][A] = (int)((strtof(ina219[SENSOR_45 + VOLTAGE], NULL) * 10) - 65.5);
|
||||
tlm[3][B] = (int)(strtof(ina219[SENSOR_4A + VOLTAGE], NULL) * 10.0); // 5V supply to Pi
|
||||
|
||||
int tempValue = wiringPiI2CReadReg16(tempSensor, 0);
|
||||
// printf("Read: %x\n", tempValue);
|
||||
uint8_t upper = (uint8_t) (tempValue >> 8);
|
||||
uint8_t lower = (uint8_t) (tempValue & 0xff);
|
||||
float temp = (float)lower + ((float)upper / 0x100);
|
||||
|
||||
tlm[4][A] = (int)((95.8 - temp)/1.48 + 0.5);
|
||||
|
||||
tlm[6][B] = 0 ;
|
||||
tlm[6][D] = 49 + rand() % 3;
|
||||
|
||||
// Display tlm
|
||||
int k, j;
|
||||
for (k = 1; k < 7; k++) {
|
||||
for (j = 1; j < 5; j++) {
|
||||
printf(" %2d ", tlm[k][j]);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
# script to run FoxTelem
|
||||
|
||||
echo "Script to run FoxTelem for ARISS Radio Pi"
|
||||
|
||||
echo
|
||||
|
||||
|
||||
sudo killall -9 foxtelem &>/dev/null
|
||||
|
||||
/home/pi/Downloads/FoxTelem/FoxTelem &
|
||||
|
||||
|
||||
$SHELL
|
||||
@ -1,82 +1,14 @@
|
||||
#!/bin/bash
|
||||
# script to run FoxTelem
|
||||
|
||||
echo "Startup script to run FoxTelem for ARISS Radio Pi"
|
||||
echo "Script to run FoxTelem for ARISS Radio Pi"
|
||||
|
||||
echo
|
||||
|
||||
FILE=/home/pi/CubeSatSim/groundstation/.profile
|
||||
if [ ! -f "$FILE" ]; then
|
||||
echo "You need to choose your default FoxTelem profile."
|
||||
echo
|
||||
echo "The choices are:"
|
||||
echo
|
||||
echo "1. Fox-in-a-Box. Use this profile if you want to receive and decode telemetry from the AMSAT Fox satellites. If you enter a callsign and a grid square, you can upload to the AMSAT telemetry server."
|
||||
echo
|
||||
echo "2. CubeSatSim Ground Station. Use this profile if you want to receive and decode telemetry from an AMSAT CubeSatSim or CubeSatSim Lite."
|
||||
echo
|
||||
echo "Which profile do choose? Enter 1 or 2"
|
||||
|
||||
read -r ANS
|
||||
|
||||
if [ "$ANS" = "1" ]; then
|
||||
sudo killall -9 foxtelem &>/dev/null
|
||||
|
||||
echo "You have chosen the Fox-in-a-Box profile."
|
||||
echo "b" > /home/pi/CubeSatSim/groundstation/.profile
|
||||
echo
|
||||
|
||||
echo "Enter your CALLSIGN. If you don't have a callsign, enter a text string that will be displayed on the FoxTelem leader board at https://amsat.org/tlm"
|
||||
read callsign
|
||||
sudo sed -i "s/callsign=NONE/callsign=$callsign/g" /home/pi/Documents/FITB/FoxTelem.properties
|
||||
echo
|
||||
|
||||
sudo sed -i "s/uploadToServer=false/uploadToServer=true/g" /home/pi/Documents/FITB/FoxTelem.properties
|
||||
|
||||
sudo sed -i "s/foxTelemCalcsDoppler=false/foxTelemCalcsDoppler=true/g" /home/pi/Documents/FITB/FoxTelem.properties
|
||||
|
||||
sudo sed -i "s/foxTelemCalcsPosition=false/foxTelemCalcsPosition=true/g" /home/pi/Documents/FITB/FoxTelem.properties
|
||||
|
||||
sudo sed -i "s/uploadToServer=false/uploadToServer=true/g" /home/pi/Documents/FITB/FoxTelem.properties
|
||||
|
||||
sudo sed -i "s/whenAboveHorizon=false/whenAboveHorizon=true/g" /home/pi/Documents/FITB/FoxTelem.properties
|
||||
|
||||
sudo sed -i "s/soundCard=NONE/soundCard=RTL SDR/g" /home/pi/Documents/FITB/FoxTelem.properties # change to FunCube
|
||||
|
||||
|
||||
python3 /home/pi/CubeSatSim/groundstation/loc-foxtelem.py
|
||||
|
||||
# echo "Enter your Maidenhead grid square. It is two letters followed by two numbers followed by two letters with no spaces. If you don't know your gridsquare, you can look it up here https://dxcluster.ha8tks.hu/hamgeocoding/"
|
||||
# read grid
|
||||
# sudo sed -i "s/maidenhead=XX00xx/maidenhead=$grid/g" /home/pi/Documents/FITB/FoxTelem.properties
|
||||
# echo
|
||||
/home/pi/Downloads/FoxTelem/FoxTelem &
|
||||
|
||||
elif [ "$ANS" = "2" ]; then
|
||||
|
||||
echo "You have chosen the CubeSatSim Ground Station profile."
|
||||
echo "c" > /home/pi/CubeSatSim/groundstation/.profile
|
||||
|
||||
else
|
||||
|
||||
echo "Please enter only 1 or 2"
|
||||
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
value=`cat /home/pi/CubeSatSim/groundstation/.profile`
|
||||
echo "$value" > /dev/null
|
||||
set -- $value
|
||||
|
||||
sudo killall -9 java &>/dev/null
|
||||
|
||||
if [ "$1" = "c" ]; then
|
||||
echo "CubeSatSim Ground Station profile is set!"
|
||||
echo
|
||||
/home/pi/Downloads/FoxTelem/FoxTelem &
|
||||
else
|
||||
echo "Fox-in-a-box profile is set!"
|
||||
echo
|
||||
/home/pi/Downloads/FoxTelem-FITB/FoxTelem /home/pi/Documents/FITB
|
||||
fi
|
||||
|
||||
$SHELL
|
||||
|
||||
|
Before Width: | Height: | Size: 278 KiB After Width: | Height: | Size: 278 KiB |
|
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 120 KiB |
|
Before Width: | Height: | Size: 334 KiB After Width: | Height: | Size: 334 KiB |
|
Before Width: | Height: | Size: 696 KiB After Width: | Height: | Size: 696 KiB |
@ -1,539 +0,0 @@
|
||||
TARGET_MODEL := --calling_convention=data_overlay --data_model=small --place_constants=code
|
||||
TARGET_DEFINES := -D__DATA_MODEL__=1 -D__CALLING_CONVENTION__=0
|
||||
LIBSUFFIX :=
|
||||
#TARGET_INSTDIR := C:/EDA/IAR\ Systems/Embedded\ Workbench\ 6.0\ Kickstart/8051
|
||||
#TARGET_INSTDIR := C:/EDA/IAR\ Systems/Embedded\ Workbench\ 6.5/8051
|
||||
#TARGET_INSTDIR := C:/Program\ Files\ \(x86\)/IAR\ Systems/Embedded\ Workbench\ 6.5/8051
|
||||
TARGET_INSTDIR := C:/Program\ Files\ \(x86\)/IAR\ Systems/Embedded\ Workbench\ 7.3/8051
|
||||
TARGET_ASM := $(TARGET_INSTDIR)/bin/a8051.exe
|
||||
TARGET_LD := $(TARGET_INSTDIR)/bin/xlink.exe
|
||||
TARGET_CC := $(TARGET_INSTDIR)/bin/icc8051.exe
|
||||
TARGET_AR := $(TARGET_INSTDIR)/bin/xar.exe
|
||||
TARGET_ASMFLAGS := -v0 -D__CORE__=1 -D__CODE_MODEL__=1 -D__NUMBER_OF_DPTRS__=1 $(TARGET_DEFINES) -s+ -M"<>" -r -w+ -I$(TARGET_INSTDIR)/src/lib
|
||||
TARGET_LNKFLAGS := -D_NR_OF_BANKS=0 -D_CODEBANK_END=0 -D_CODEBANK_START=0 -I$(TARGET_INSTDIR)/config -e_small_write=_formatted_write -e_medium_read=_formatted_read -Faomf8051 -Y0 -I$(TARGET_INSTDIR)/lib -f $(TARGET_INSTDIR)/config/devices/_generic/lnk51ew_plain.xcl -D?DPMASK=0x01 -D_NR_OF_VIRTUAL_REGISTERS=8 -D?DPS=0x85 -D?PBANK=0xD9 -D?DPL1=0x84 -D?DPH1=0x85 -s __program_start $(TARGET_INSTDIR)/LIB/CLIB/cl-pli-nsdc-2e16inc.r51 -D_IDATA_STACK_SIZE=0x40 -D_EXTENDED_STACK_START=0x00 -D_EXTENDED_STACK_SIZE=0x00 -D_PDATA_STACK_SIZE=0x80 -D_XDATA_STACK_SIZE=0xEFF -D_XDATA_HEAP_SIZE=0xFF -D_FAR_HEAP_SIZE=0xFFF -D_HUGE_HEAP_SIZE=0xFFF -D_FAR22_HEAP_SIZE=0xFFF
|
||||
TARGET_CFLAGS := -e --no_unroll --no_inline --no_tbaa --debug --core=plain --dptr=16,1,separate,xor $(TARGET_MODEL) --code_model=near --nr_virtual_regs 8 -Om --library_module --diag_suppress=Pa050 -I../source
|
||||
|
||||
LIBMFOBJ := lcdinit.r51 lcdsetpos.r51 lcdwrstr.r51 lcdclear.r51 lcdclrdisp.r51 lcdwru16.r51 lcdwru32.r51 \
|
||||
lcdwrhexu16.r51 lcdwrhexu32.r51 lcduwrnum16.r51 lcduwrnum32.r51 lcduwrhex16.r51 lcduwrhex32.r51 \
|
||||
dbglink.r51 dbglnktxbuf.r51 dbglnkrxbuf.r51 dbglnktx.r51 dbglnkrx.r51 dbglnkwrhexu16.r51 dbglnkwrhexu32.r51 dbglnkwrstr.r51 \
|
||||
dbglnkwru16.r51 dbglnkwru32.r51 dbglnkwrnum16.r51 dbglnkwrnum32.r51 dbglnkwrhex16.r51 dbglnkwrhex32.r51 \
|
||||
crc8ccitt.r51 crc8onewire.r51 crc8tccitt.r51 crc8tccittmsb.r51 crc8tonewire.r51 crc8tonewiremsb.r51 \
|
||||
crc8ccittb.r51 crc8ccittmsbb.r51 crc8onewireb.r51 crc8onewiremsbb.r51 \
|
||||
crc8ccitttable.r51 crc8onewiretable.r51 crc8ccittmsbtable.r51 crc8onewiremsbtable.r51 \
|
||||
crcccitt.r51 crcccittmsb.r51 crc16ansi.r51 crc16ansimsb.r51 crc16dnp.r51 crc16dnpmsb.r51 crc32ansi.r51 crc32ansimsb.r51 \
|
||||
crcccittb.r51 crcccittmsbb.r51 crc16ansib.r51 crc16ansimsbb.r51 crc16dnpb.r51 crc16dnpmsbb.r51 crc32ansib.r51 crc32ansimsbb.r51 \
|
||||
crcccitttable.r51 crc16table.r51 crc16dnptable.r51 crcccittmsbtable.r51 crc16msbtable.r51 \
|
||||
crc16dnpmsbtable.r51 crc32table.r51 crc32msbtable.r51 pn9.r51 pn9table.r51 pn9bit.r51 pn9bits.r51 pn9byte.r51 pn9buf.r51 \
|
||||
pn15advtable.r51 pn15outtable.r51 pn15adv.r51 pn15out.r51 \
|
||||
rev8.r51 hweight8.r51 hweight16.r51 hweight32.r51 signext12.r51 signext16.r51 signext20.r51 signext24.r51 \
|
||||
chksgnlim16.r51 sgnlim16.r51 chksgnlim32.r51 sgnlim32.r51 grayenc8.r51 graydec8.r51 fmemsetiar.r51 fmemcpyiar.r51 \
|
||||
delay.r51 random.r51 sleep.r51 sleepcont.r51 deepsleep.r51 standby.r51 resetcpu.r51 \
|
||||
flashunlock.r51 flashlock.r51 flashwait.r51 flashpgerase.r51 flashwrite.r51 flashread.r51 flashcal.r51 flashcsec.r51 \
|
||||
uarttimer0.r51 uarttimer1.r51 uarttimer2.r51 uart0init.r51 uart1init.r51 uart0stop.r51 uart1stop.r51 \
|
||||
uart0txbuf.r51 uart1txbuf.r51 uart0rxbuf.r51 uart1rxbuf.r51 \
|
||||
uart0tx.r51 uart1tx.r51 uart0rx.r51 uart1rx.r51 uart0wrhexu16.r51 uart1wrhexu16.r51 uart0wrhexu32.r51 uart1wrhexu32.r51 \
|
||||
uart0wrstr.r51 uart1wrstr.r51 uart0wru16.r51 uart1wru16.r51 uart0wru32.r51 uart1wru32.r51 \
|
||||
uart0wrnum16.r51 uart0wrnum32.r51 uart0wrhex16.r51 uart0wrhex32.r51 \
|
||||
uart1wrnum16.r51 uart1wrnum32.r51 uart1wrhex16.r51 uart1wrhex32.r51 \
|
||||
adctemp.r51 adccal.r51 adccalg.r51 adccalt.r51 adcuncal.r51 adcseoffs00.r51 adcseoffs01.r51 adcseoffs10.r51 \
|
||||
bch3121dec.r51 bch3121decp.r51 bch3121enc.r51 bch3121encp.r51 bch3121stab.r51 bch3121syn.r51 \
|
||||
wrnum16.r51 wrnum32.r51 offxosc.r51 offlpxosc.r51 setuplpxosc.r51 setupxosc.r51 setupcal.r51 \
|
||||
wtimer.r51 wtrem.r51 wtcbadd.r51 wtcbrem.r51 wt0setcfg.r51 wt1setcfg.r51 wtstdby.r51 \
|
||||
wt0adda.r51 wt1adda.r51 wt0addr.r51 wt1addr.r51 wt0curt.r51 wt1curt.r51 wt0rem.r51 wt1rem.r51 wt01rem.r51 \
|
||||
radiord16.r51 radiord24.r51 radiord32.r51 radiowr16.r51 radiowr24.r51 radiowr32.r51 radiodswakecore.r51 \
|
||||
ax5031comminit.r51 ax5031commslpexit.r51 ax5031reset.r51 ax5031deepsleep.r51 ax5031rclkena.r51 ax5031rclkdis.r51 \
|
||||
ax5031rdfifo.r51 ax5031wrfifo.r51 \
|
||||
ax5042comminit.r51 ax5042commslpexit.r51 ax5042reset.r51 ax5042deepsleep.r51 ax5042rclkena.r51 ax5042rclkdis.r51 \
|
||||
ax5042rdfifo.r51 ax5042wrfifo.r51 \
|
||||
ax5043comminit.r51 ax5043commslpexit.r51 ax5043reset.r51 ax5043deepsleep.r51 ax5043rclkena.r51 ax5043rclkdis.r51 \
|
||||
ax5043rdfifo.r51 ax5043wrfifo.r51 \
|
||||
ax5051comminit.r51 ax5051commslpexit.r51 ax5051reset.r51 ax5051deepsleep.r51 ax5051rclkena.r51 ax5051rclkdis.r51 \
|
||||
ax5051rdfifo.r51 ax5051wrfifo.r51 \
|
||||
ax8052regs.r51 radioregs.r51 CStartup.r51 getpspiar.r51 getxspiar.r51
|
||||
|
||||
BINARIES :=
|
||||
LIBBINARIES := libmf.r51 libmflarge.r51 \
|
||||
libmf-pli-nlpc-1e16x01.r51 libmf-pli-nlpd-1e16x01.r51 libmf-pli-nlxc-1e16x01.r51 libmf-pli-nlxd-1e16x01.r51 \
|
||||
libmf-pli-nsdc-1e16x01.r51 libmf-pli-nsdd-1e16x01.r51 libmf-pli-nsic-1e16x01.r51 libmf-pli-nsid-1e16x01.r51 libmf-pli-nsoc-1e16x01.r51 libmf-pli-nsod-1e16x01.r51 \
|
||||
libmf-pli-ntdc-1e16x01.r51 libmf-pli-ntdd-1e16x01.r51 libmf-pli-ntic-1e16x01.r51 libmf-pli-ntid-1e16x01.r51 libmf-pli-ntoc-1e16x01.r51 libmf-pli-ntod-1e16x01.r51
|
||||
|
||||
ifeq ($(LIBSUFFIX),)
|
||||
all: $(LIBBINARIES) $(BINARIES) $(patsubst %.omf,%.cdb,$(BINARIES)) $(patsubst %.omf,%.ihx,$(BINARIES))
|
||||
else
|
||||
all: libmf$(LIBSUFFIX).r51
|
||||
endif
|
||||
|
||||
clean:
|
||||
rm -rf *.lnk radioregs.s51 $(LIBBINARIES) $(patsubst %.r51,%,$(LIBBINARIES)) mflibbiniar.tar.gz
|
||||
|
||||
tar: mflibbiniar.tar.gz
|
||||
|
||||
mflibbiniar.tar.gz: $(LIBBINARIES)
|
||||
tar -c -v -z -f $@ $(LIBBINARIES)
|
||||
|
||||
ifeq ($(LIBSUFFIX),)
|
||||
.PHONY: libmflarge.r51
|
||||
.PHONY: libmf-pli-nlpc-1e16x01.r51
|
||||
.PHONY: libmf-pli-nlpd-1e16x01.r51
|
||||
.PHONY: libmf-pli-nlxc-1e16x01.r51
|
||||
.PHONY: libmf-pli-nlxd-1e16x01.r51
|
||||
.PHONY: libmf-pli-nsdc-1e16x01.r51
|
||||
.PHONY: libmf-pli-nsdd-1e16x01.r51
|
||||
.PHONY: libmf-pli-nsic-1e16x01.r51
|
||||
.PHONY: libmf-pli-nsid-1e16x01.r51
|
||||
.PHONY: libmf-pli-nsoc-1e16x01.r51
|
||||
.PHONY: libmf-pli-nsod-1e16x01.r51
|
||||
.PHONY: libmf-pli-ntdc-1e16x01.r51
|
||||
.PHONY: libmf-pli-ntdd-1e16x01.r51
|
||||
.PHONY: libmf-pli-ntic-1e16x01.r51
|
||||
.PHONY: libmf-pli-ntid-1e16x01.r51
|
||||
.PHONY: libmf-pli-ntoc-1e16x01.r51
|
||||
.PHONY: libmf-pli-ntod-1e16x01.r51
|
||||
|
||||
libmflarge.r51:
|
||||
make TARGET_MODEL="--calling_convention=pdata_reentrant --data_model=large --place_constants=data" TARGET_DEFINES="-D__DATA_MODEL__=2 -D__CALLING_CONVENTION__=3" LIBSUFFIX=large
|
||||
|
||||
# name format: -pli-n(1)(2)(3)-1e16x01
|
||||
# page 152
|
||||
# (1): data model
|
||||
# t - --data_model=tiny -D__DATA_MODEL__=0
|
||||
# s - --data_model=small -D__DATA_MODEL__=1
|
||||
# l - --data_model=large -D__DATA_MODEL__=2
|
||||
# g - --data_model=generic -D__DATA_MODEL__=3
|
||||
# j - --data_model=far_generic -D__DATA_MODEL__=5
|
||||
# f - --data_model=far -D__DATA_MODEL__=4
|
||||
# (2): calling convention
|
||||
# d - --calling_convention=data_overlay -D__CALLING_CONVENTION__=0
|
||||
# o - --calling_convention=idata_overlay -D__CALLING_CONVENTION__=1
|
||||
# i - --calling_convention=idata_reentrant -D__CALLING_CONVENTION__=2
|
||||
# p - --calling_convention=pdata_reentrant -D__CALLING_CONVENTION__=3
|
||||
# x - --calling_convention=xdata_reentrant -D__CALLING_CONVENTION__=4
|
||||
# e - --calling_convention=ext_stack_reentrant -D__CALLING_CONVENTION__=5
|
||||
# (3): constant location
|
||||
# c - --place_constants=code
|
||||
# d - --place_constants=data
|
||||
|
||||
libmf-pli-nlpc-1e16x01.r51:
|
||||
make TARGET_MODEL="--data_model=large --calling_convention=pdata_reentrant --place_constants=code" TARGET_DEFINES="-D__DATA_MODEL__=2 -D__CALLING_CONVENTION__=3" LIBSUFFIX=-pli-nlpc-1e16x01
|
||||
|
||||
libmf-pli-nlpd-1e16x01.r51:
|
||||
make TARGET_MODEL="--data_model=large --calling_convention=pdata_reentrant --place_constants=data" TARGET_DEFINES="-D__DATA_MODEL__=2 -D__CALLING_CONVENTION__=3" LIBSUFFIX=-pli-nlpd-1e16x01
|
||||
|
||||
libmf-pli-nlxc-1e16x01.r51:
|
||||
make TARGET_MODEL="--data_model=large --calling_convention=xdata_reentrant --place_constants=code" TARGET_DEFINES="-D__DATA_MODEL__=2 -D__CALLING_CONVENTION__=4" LIBSUFFIX=-pli-nlxc-1e16x01
|
||||
|
||||
libmf-pli-nlxd-1e16x01.r51:
|
||||
make TARGET_MODEL="--data_model=large --calling_convention=xdata_reentrant --place_constants=data" TARGET_DEFINES="-D__DATA_MODEL__=2 -D__CALLING_CONVENTION__=4" LIBSUFFIX=-pli-nlxd-1e16x01
|
||||
|
||||
libmf-pli-nsdc-1e16x01.r51:
|
||||
make TARGET_MODEL="--data_model=small --calling_convention=data_overlay --place_constants=code" TARGET_DEFINES="-D__DATA_MODEL__=1 -D__CALLING_CONVENTION__=0" LIBSUFFIX=-pli-nsdc-1e16x01
|
||||
|
||||
libmf-pli-nsdd-1e16x01.r51:
|
||||
make TARGET_MODEL="--data_model=small --calling_convention=data_overlay --place_constants=data" TARGET_DEFINES="-D__DATA_MODEL__=1 -D__CALLING_CONVENTION__=0" LIBSUFFIX=-pli-nsdd-1e16x01
|
||||
|
||||
libmf-pli-nsic-1e16x01.r51:
|
||||
make TARGET_MODEL="--data_model=small --calling_convention=idata_reentrant --place_constants=code" TARGET_DEFINES="-D__DATA_MODEL__=1 -D__CALLING_CONVENTION__=2" LIBSUFFIX=-pli-nsic-1e16x01
|
||||
|
||||
libmf-pli-nsid-1e16x01.r51:
|
||||
make TARGET_MODEL="--data_model=small --calling_convention=idata_reentrant --place_constants=data" TARGET_DEFINES="-D__DATA_MODEL__=1 -D__CALLING_CONVENTION__=2" LIBSUFFIX=-pli-nsid-1e16x01
|
||||
|
||||
libmf-pli-nsoc-1e16x01.r51:
|
||||
make TARGET_MODEL="--data_model=small --calling_convention=idata_overlay --place_constants=code" TARGET_DEFINES="-D__DATA_MODEL__=1 -D__CALLING_CONVENTION__=1" LIBSUFFIX=-pli-nsoc-1e16x01
|
||||
|
||||
libmf-pli-nsod-1e16x01.r51:
|
||||
make TARGET_MODEL="--data_model=small --calling_convention=idata_overlay --place_constants=data" TARGET_DEFINES="-D__DATA_MODEL__=1 -D__CALLING_CONVENTION__=1" LIBSUFFIX=-pli-nsod-1e16x01
|
||||
|
||||
libmf-pli-ntdc-1e16x01.r51:
|
||||
make TARGET_MODEL="--data_model=tiny --calling_convention=data_overlay --place_constants=code" TARGET_DEFINES="-D__DATA_MODEL__=0 -D__CALLING_CONVENTION__=0" LIBSUFFIX=-pli-ntdc-1e16x01
|
||||
|
||||
libmf-pli-ntdd-1e16x01.r51:
|
||||
make TARGET_MODEL="--data_model=tiny --calling_convention=data_overlay --place_constants=data" TARGET_DEFINES="-D__DATA_MODEL__=0 -D__CALLING_CONVENTION__=0" LIBSUFFIX=-pli-ntdd-1e16x01
|
||||
|
||||
libmf-pli-ntic-1e16x01.r51:
|
||||
make TARGET_MODEL="--data_model=tiny --calling_convention=idata_reentrant --place_constants=code" TARGET_DEFINES="-D__DATA_MODEL__=0 -D__CALLING_CONVENTION__=2" LIBSUFFIX=-pli-ntic-1e16x01
|
||||
|
||||
libmf-pli-ntid-1e16x01.r51:
|
||||
make TARGET_MODEL="--data_model=tiny --calling_convention=idata_reentrant --place_constants=data" TARGET_DEFINES="-D__DATA_MODEL__=0 -D__CALLING_CONVENTION__=2" LIBSUFFIX=-pli-ntid-1e16x01
|
||||
|
||||
libmf-pli-ntoc-1e16x01.r51:
|
||||
make TARGET_MODEL="--data_model=tiny --calling_convention=idata_overlay --place_constants=code" TARGET_DEFINES="-D__DATA_MODEL__=0 -D__CALLING_CONVENTION__=1" LIBSUFFIX=-pli-ntoc-1e16x01
|
||||
|
||||
libmf-pli-ntod-1e16x01.r51:
|
||||
make TARGET_MODEL="--data_model=tiny --calling_convention=idata_overlay --place_constants=data" TARGET_DEFINES="-D__DATA_MODEL__=0 -D__CALLING_CONVENTION__=1" LIBSUFFIX=-pli-ntod-1e16x01
|
||||
|
||||
endif
|
||||
|
||||
.PRECIOUS: radioregs.s51
|
||||
|
||||
radioregs.s51: ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h
|
||||
./genrregs.pl $^ > $@
|
||||
|
||||
libmf$(LIBSUFFIX):
|
||||
[ ! -d $@ ] && mkdir -p $@
|
||||
|
||||
.PRECIOUS: %.r51 %.omf %.ihx %.cdb
|
||||
|
||||
%.r51: ../%.c
|
||||
$(TARGET_CC) $(TARGET_CFLAGS) -o $@ -lC `basename $@ .r51`.lst $<
|
||||
|
||||
%.omf %.ihx %.cdb: %.r51 libmf$(LIBSUFFIX).r51
|
||||
(libdir=`pwd`; dn=`dirname $<`/; fn=`basename $< .r51`; cd $${dn}; $(TARGET_LD) -V $(TARGET_LNKFLAGS) -L$${libdir} -llibmf$(LIBSUFFIX) $${fn}.r51; x=$$?; mv $${fn} $${fn}.omf; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/%.r51: ../source/%.c | libmf$(LIBSUFFIX)
|
||||
$(TARGET_CC) $(TARGET_CFLAGS) -o $@ -lC libmf$(LIBSUFFIX)/`basename $@ .r51`.lst $<
|
||||
|
||||
libmf$(LIBSUFFIX)/%.r51: libmf$(LIBSUFFIX)/%.c | libmf$(LIBSUFFIX)
|
||||
$(TARGET_CC) $(TARGET_CFLAGS) -o $@ -lC libmf$(LIBSUFFIX)/`basename $@ .r51`.lst $<
|
||||
|
||||
libmf$(LIBSUFFIX)/%.r51: ../source/%.s51 | libmf$(LIBSUFFIX)
|
||||
$(TARGET_ASM) $(TARGET_ASMFLAGS) -o $@ -l libmf$(LIBSUFFIX)/`basename $@ .r51`.lst -t8 $<
|
||||
|
||||
libmf$(LIBSUFFIX)/%.r51: %.s51 | libmf$(LIBSUFFIX)
|
||||
$(TARGET_ASM) $(TARGET_ASMFLAGS) -o $@ -l libmf$(LIBSUFFIX)/`basename $@ .r51`.lst -t8 $<
|
||||
|
||||
libmf$(LIBSUFFIX)/%.s51: ../source/%.c | libmf$(LIBSUFFIX)
|
||||
$(TARGET_CC) $(TARGET_CFLAGS) -o libmf$(LIBSUFFIX)/`basename $@ .s51`.r51 -lA $@ $<
|
||||
|
||||
libmf$(LIBSUFFIX)/%.s51: libmf$(LIBSUFFIX)/%.c | libmf$(LIBSUFFIX)
|
||||
$(TARGET_CC) $(TARGET_CFLAGS) -o libmf$(LIBSUFFIX)/`basename $@ .s51`.r51 -lA $@ $<
|
||||
|
||||
libmf$(LIBSUFFIX).r51: $(patsubst %.r51,libmf$(LIBSUFFIX)/%.r51,$(LIBMFOBJ)) | libmf$(LIBSUFFIX)
|
||||
$(TARGET_AR) -o $@ $(patsubst %.r51,libmf$(LIBSUFFIX)/%.r51,$(LIBMFOBJ))
|
||||
|
||||
libmf$(LIBSUFFIX)/uarttimer0.c: ../source/uarttimer.c
|
||||
(unifdef -DTIMER=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uarttimer1.c: ../source/uarttimer.c
|
||||
(unifdef -DTIMER=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uarttimer2.c: ../source/uarttimer.c
|
||||
(unifdef -DTIMER=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart0init.c: ../source/uartinit.c
|
||||
(unifdef -DUART=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart0stop.c: ../source/uartstop.c
|
||||
(unifdef -DUART=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart1init.c: ../source/uartinit.c
|
||||
(unifdef -DUART=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart1stop.c: ../source/uartstop.c
|
||||
(unifdef -DUART=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart0%.c: ../source/io%.c
|
||||
(unifdef -DUART=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart1%.c: ../source/io%.c
|
||||
(unifdef -DUART=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/dbglnk%.c: ../source/io%.c
|
||||
(unifdef -DUART=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/lcdu%.c: ../source/io%.c
|
||||
(unifdef -DUART=3 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/ax5031%.c: ../source/radio%.c
|
||||
(unifdef -DRADIO=5031 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/ax5042%.c: ../source/radio%.c
|
||||
(unifdef -DRADIO=5042 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/ax5043%.c: ../source/radio%.c
|
||||
(unifdef -DRADIO=5043 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/ax5051%.c: ../source/radio%.c
|
||||
(unifdef -DRADIO=5051 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8tccitt.c: ../source/crc8.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8tccittmsb.c: ../source/crc8msb.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8tonewire.c: ../source/crc8.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8tonewiremsb.c: ../source/crc8msb.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16ansi.c: ../source/crc16.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16ansimsb.c: ../source/crc16msb.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16dnp.c: ../source/crc16.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsb.c: ../source/crc16msb.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crcccitt.c: ../source/crc16.c
|
||||
(unifdef -DCRCMODE=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crcccittmsb.c: ../source/crc16msb.c
|
||||
(unifdef -DCRCMODE=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc32ansi.c: ../source/crc32.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc32ansimsb.c: ../source/crc32msb.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8ccittb.c: ../source/crc8b.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8ccittmsbb.c: ../source/crc8b.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8onewireb.c: ../source/crc8b.c
|
||||
(unifdef -DCRCMODE=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8onewiremsbb.c: ../source/crc8b.c
|
||||
(unifdef -DCRCMODE=3 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16ansib.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16ansimsbb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16dnpb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsbb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=3 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crcccittb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=4 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crcccittmsbb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=5 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc32ansib.c: ../source/crc32b.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc32ansimsbb.c: ../source/crc32b.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/lcdinit.r51: ../source/lcdinit.c ../source/libmflcd.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdsetpos.r51: ../source/lcdsetpos.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwrstr.r51: ../source/lcdwrstr.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdclear.r51: ../source/lcdclear.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdclrdisp.r51: ../source/lcdclrdisp.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwru16.r51: ../source/lcdwru16.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwru32.r51: ../source/lcdwru32.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwrhexu16.r51: ../source/lcdwrhexu16.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwrhexu32.r51: ../source/lcdwrhexu32.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcduwrnum16.r51: libmf$(LIBSUFFIX)/lcduwrnum16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcduwrnum32.r51: libmf$(LIBSUFFIX)/lcduwrnum32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcduwrhex16.r51: libmf$(LIBSUFFIX)/lcduwrhex16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcduwrhex32.r51: libmf$(LIBSUFFIX)/lcduwrhex32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/delay.r51: ../source/delay.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/random.r51: ../source/random.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccitt.r51: ../source/crc8ccitt.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewire.r51: ../source/crc8onewire.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccitttable.r51: ../source/crc8ccitttable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewiretable.r51: ../source/crc8onewiretable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccittmsbtable.r51: ../source/crc8ccittmsbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewiremsbtable.r51: ../source/crc8onewiremsbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccitttable.r51: ../source/crcccitttable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16table.r51: ../source/crc16table.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnptable.r51: ../source/crc16dnptable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccittmsbtable.r51: ../source/crcccittmsbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16msbtable.r51: ../source/crc16msbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsbtable.r51: ../source/crc16dnpmsbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32table.r51: ../source/crc32table.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32msbtable.r51: ../source/crc32msbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8tccitt.r51: libmf$(LIBSUFFIX)/crc8tccitt.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8tccittmsb.r51: libmf$(LIBSUFFIX)/crc8tccittmsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8tonewire.r51: libmf$(LIBSUFFIX)/crc8tonewire.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8tonewiremsb.r51: libmf$(LIBSUFFIX)/crc8tonewiremsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16ansi.r51: libmf$(LIBSUFFIX)/crc16ansi.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16ansimsb.r51: libmf$(LIBSUFFIX)/crc16ansimsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnp.r51: libmf$(LIBSUFFIX)/crc16dnp.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsb.r51: libmf$(LIBSUFFIX)/crc16dnpmsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccitt.r51: libmf$(LIBSUFFIX)/crcccitt.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccittmsb.r51: libmf$(LIBSUFFIX)/crcccittmsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32ansi.r51: libmf$(LIBSUFFIX)/crc32ansi.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32ansimsb.r51: libmf$(LIBSUFFIX)/crc32ansimsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccittb.r51: libmf$(LIBSUFFIX)/crc8ccittb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccittmsbb.r51: libmf$(LIBSUFFIX)/crc8ccittmsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewireb.r51: libmf$(LIBSUFFIX)/crc8onewireb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewiremsbb.r51: libmf$(LIBSUFFIX)/crc8onewiremsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16ansib.r51: libmf$(LIBSUFFIX)/crc16ansib.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16ansimsbb.r51: libmf$(LIBSUFFIX)/crc16ansimsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnpb.r51: libmf$(LIBSUFFIX)/crc16dnpb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsbb.r51: libmf$(LIBSUFFIX)/crc16dnpmsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccittb.r51: libmf$(LIBSUFFIX)/crcccittb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccittmsbb.r51: libmf$(LIBSUFFIX)/crcccittmsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32ansib.r51: libmf$(LIBSUFFIX)/crc32ansib.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32ansimsbb.r51: libmf$(LIBSUFFIX)/crc32ansimsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9.r51: ../source/pn9.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9table.r51: ../source/pn9table.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9bit.r51: ../source/pn9bit.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9bits.r51: ../source/pn9bits.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9byte.r51: ../source/pn9byte.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9buf.r51: ../source/pn9buf.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn15advtable.r51: ../source/pn15advtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn15outtable.r51: ../source/pn15outtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn15adv.r51: ../source/pn15adv.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn15out.r51: ../source/pn15out.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/rev8.r51: ../source/rev8.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/hweight8.r51: ../source/hweight8.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/hweight16.r51: ../source/hweight16.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/hweight32.r51: ../source/hweight32.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/signext12.r51: ../source/signext12.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/signext16.r51: ../source/signext16.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/signext20.r51: ../source/signext20.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/signext24.r51: ../source/signext24.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/chksgnlim16.r51: ../source/chksgnlim16.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/sgnlim16.r51: ../source/sgnlim16.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/chksgnlim32.r51: ../source/chksgnlim32.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/sgnlim32.r51: ../source/sgnlim32.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/grayenc8.r51: ../source/grayenc8.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/graydec8.r51: ../source/graydec8.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/fmemset.r51: ../source/fmemset.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/fmemcpy.r51: ../source/fmemcpy.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/fmemsetiar.r51: ../source/fmemsetiar.s51 | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/fmemcpyiar.r51: ../source/fmemcpyiar.s51 | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/standby.r51: ../source/standby.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/sleep.r51: ../source/sleep.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/sleepcont.r51: ../source/sleepcont.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/deepsleep.r51: ../source/deepsleep.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/resetcpu.r51: ../source/resetcpu.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashunlock.r51: ../source/flashunlock.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashlock.r51: ../source/flashlock.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashwait.r51: ../source/flashwait.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashpgerase.r51: ../source/flashpgerase.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashwrite.r51: ../source/flashwrite.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashread.r51: ../source/flashread.c ../source/libmfflash.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashcal.r51: ../source/flashcal.c ../source/libmfcalsector.h ../source/libmfflash.h ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashcsec.r51: ../source/flashcsec.c ../source/libmfcalsector.h ../source/libmfflash.h ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0init.r51: libmf$(LIBSUFFIX)/uart0init.c ../source/libmfuart0.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1init.r51: libmf$(LIBSUFFIX)/uart1init.c ../source/libmfuart1.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0stop.r51: libmf$(LIBSUFFIX)/uart0stop.c ../source/libmfuart0.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1stop.r51: libmf$(LIBSUFFIX)/uart1stop.c ../source/libmfuart1.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0txbuf.r51: libmf$(LIBSUFFIX)/uart0txbuf.c ../source/libmfuart0.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1txbuf.r51: libmf$(LIBSUFFIX)/uart1txbuf.c ../source/libmfuart1.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0rxbuf.r51: libmf$(LIBSUFFIX)/uart0rxbuf.c ../source/libmfuart0.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1rxbuf.r51: libmf$(LIBSUFFIX)/uart1rxbuf.c ../source/libmfuart1.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0tx.r51: libmf$(LIBSUFFIX)/uart0tx.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1tx.r51: libmf$(LIBSUFFIX)/uart1tx.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0rx.r51: libmf$(LIBSUFFIX)/uart0rx.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1rx.r51: libmf$(LIBSUFFIX)/uart1rx.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrhexu16.r51: libmf$(LIBSUFFIX)/uart0wrhexu16.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrhexu16.r51: libmf$(LIBSUFFIX)/uart1wrhexu16.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrhexu32.r51: libmf$(LIBSUFFIX)/uart0wrhexu32.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrhexu32.r51: libmf$(LIBSUFFIX)/uart1wrhexu32.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrstr.r51: libmf$(LIBSUFFIX)/uart0wrstr.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrstr.r51: libmf$(LIBSUFFIX)/uart1wrstr.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wru16.r51: libmf$(LIBSUFFIX)/uart0wru16.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wru16.r51: libmf$(LIBSUFFIX)/uart1wru16.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wru32.r51: libmf$(LIBSUFFIX)/uart0wru32.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wru32.r51: libmf$(LIBSUFFIX)/uart1wru32.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrnum16.r51: libmf$(LIBSUFFIX)/uart0wrnum16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrnum16.r51: libmf$(LIBSUFFIX)/uart1wrnum16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrnum32.r51: libmf$(LIBSUFFIX)/uart0wrnum32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrnum32.r51: libmf$(LIBSUFFIX)/uart1wrnum32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrhex16.r51: libmf$(LIBSUFFIX)/uart0wrhex16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrhex16.r51: libmf$(LIBSUFFIX)/uart1wrhex16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrhex32.r51: libmf$(LIBSUFFIX)/uart0wrhex32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrhex32.r51: libmf$(LIBSUFFIX)/uart1wrhex32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglink.r51: ../source/dbglink.c ../source/libmfdbglink.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnktxbuf.r51: libmf$(LIBSUFFIX)/dbglnktxbuf.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkrxbuf.r51: libmf$(LIBSUFFIX)/dbglnkrxbuf.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnktx.r51: libmf$(LIBSUFFIX)/dbglnktx.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkrx.r51: libmf$(LIBSUFFIX)/dbglnkrx.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrhexu16.r51: libmf$(LIBSUFFIX)/dbglnkwrhexu16.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrhexu32.r51: libmf$(LIBSUFFIX)/dbglnkwrhexu32.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrstr.r51: libmf$(LIBSUFFIX)/dbglnkwrstr.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwru16.r51: libmf$(LIBSUFFIX)/dbglnkwru16.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwru32.r51: libmf$(LIBSUFFIX)/dbglnkwru32.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrnum16.r51: libmf$(LIBSUFFIX)/dbglnkwrnum16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrnum32.r51: libmf$(LIBSUFFIX)/dbglnkwrnum32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrhex16.r51: libmf$(LIBSUFFIX)/dbglnkwrhex16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrhex32.r51: libmf$(LIBSUFFIX)/dbglnkwrhex32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adctemp.r51: ../source/adctemp.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adccal.r51: ../source/adccal.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adccalg.r51: ../source/adccalg.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adccalt.r51: ../source/adccalt.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adcuncal.r51: ../source/adcuncal.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adcseoffs00.r51: ../source/adcseoffs00.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adcseoffs01.r51: ../source/adcseoffs01.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adcseoffs10.r51: ../source/adcseoffs10.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121dec.r51: ../source/bch3121dec.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121decp.r51: ../source/bch3121decp.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121enc.r51: ../source/bch3121enc.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121encp.r51: ../source/bch3121encp.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121stab.r51: ../source/bch3121stab.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121syn.r51: ../source/bch3121syn.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wrnum16.r51: ../source/wrnum16.c ../source/wrnum.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wrnum32.r51: ../source/wrnum32.c ../source/wrnum.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/offxosc.r51: ../source/offxosc.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/offlpxosc.r51: ../source/offlpxosc.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/setuplpxosc.r51: ../source/setuplpxosc.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/setupxosc.r51: ../source/setupxosc.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/setupcal.r51: ../source/setupcal.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtimer.r51: ../source/wtimer.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtrem.r51: ../source/wtrem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtcbadd.r51: ../source/wtcbadd.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtcbrem.r51: ../source/wtcbrem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0setcfg.r51: ../source/wt0setcfg.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1setcfg.r51: ../source/wt1setcfg.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtstdby.r51: ../source/wtstdby.c ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0adda.r51: ../source/wt0adda.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1adda.r51: ../source/wt1adda.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0addr.r51: ../source/wt0addr.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1addr.r51: ../source/wt1addr.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0curt.r51: ../source/wt0curt.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1curt.r51: ../source/wt1curt.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0rem.r51: ../source/wt0rem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1rem.r51: ../source/wt1rem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt01rem.r51: ../source/wt01rem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiord16.r51: ../source/radiord16.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiord24.r51: ../source/radiord24.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiord32.r51: ../source/radiord32.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiowr16.r51: ../source/radiowr16.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiowr24.r51: ../source/radiowr24.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiowr32.r51: ../source/radiowr32.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiodswakecore.r51: ../source/radiodswakecore.c ../source/radiodefs.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031comminit.r51: libmf$(LIBSUFFIX)/ax5031comminit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031commslpexit.r51: libmf$(LIBSUFFIX)/ax5031commslpexit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031reset.r51: libmf$(LIBSUFFIX)/ax5031reset.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031deepsleep.r51: libmf$(LIBSUFFIX)/ax5031deepsleep.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031rclkena.r51: ../source/ax5031rclkena.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031rclkdis.r51: ../source/ax5031rclkdis.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031rdfifo.r51: libmf$(LIBSUFFIX)/ax5031rdfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031wrfifo.r51: libmf$(LIBSUFFIX)/ax5031wrfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031regs.r51: ../source/ax5031regs.c ../source/ax8052f131.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042comminit.r51: libmf$(LIBSUFFIX)/ax5042comminit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042commslpexit.r51: libmf$(LIBSUFFIX)/ax5042commslpexit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042reset.r51: libmf$(LIBSUFFIX)/ax5042reset.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042deepsleep.r51: libmf$(LIBSUFFIX)/ax5042deepsleep.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042rclkena.r51: ../source/ax5042rclkena.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042rclkdis.r51: ../source/ax5042rclkdis.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042rdfifo.r51: libmf$(LIBSUFFIX)/ax5042rdfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042wrfifo.r51: libmf$(LIBSUFFIX)/ax5042wrfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042regs.r51: ../source/ax5042regs.c ../source/ax8052f142.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043comminit.r51: libmf$(LIBSUFFIX)/ax5043comminit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043commslpexit.r51: libmf$(LIBSUFFIX)/ax5043commslpexit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043reset.r51: libmf$(LIBSUFFIX)/ax5043reset.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043deepsleep.r51: libmf$(LIBSUFFIX)/ax5043deepsleep.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043rclkena.r51: ../source/ax5043rclkena.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043rclkdis.r51: ../source/ax5043rclkdis.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043rdfifo.r51: libmf$(LIBSUFFIX)/ax5043rdfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043wrfifo.r51: libmf$(LIBSUFFIX)/ax5043wrfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043regs.r51: ../source/ax5043regs.c ../source/ax8052f143.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051comminit.r51: libmf$(LIBSUFFIX)/ax5051comminit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051commslpexit.r51: libmf$(LIBSUFFIX)/ax5051commslpexit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051reset.r51: libmf$(LIBSUFFIX)/ax5051reset.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051deepsleep.r51: libmf$(LIBSUFFIX)/ax5051deepsleep.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051rclkena.r51: ../source/ax5051rclkena.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051rclkdis.r51: ../source/ax5051rclkdis.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051rdfifo.r51: libmf$(LIBSUFFIX)/ax5051rdfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051wrfifo.r51: libmf$(LIBSUFFIX)/ax5051wrfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051regs.r51: ../source/ax5051regs.c ../source/ax8052f151.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax8052regs.r51: ../source/ax8052regs.c ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radioregs.r51: radioregs.s51 | libmf$(LIBSUFFIX)
|
||||
@ -1,32 +0,0 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
my %regs;
|
||||
|
||||
while (<>) {
|
||||
next unless /^\s*SFRX\(\s*([A-Za-z0-9_]+)\s*,\s*(0x(?:[0-9A-Fa-f])+)\s*\)/;
|
||||
my $name = $1;
|
||||
my $addr = hex($2);
|
||||
next if $addr < 0x4000 || $addr > 0x5fff;
|
||||
#printf "%s 0x%x\n", $name, $addr;
|
||||
${$regs{$addr}}{$name} = 1;
|
||||
}
|
||||
|
||||
# foreach $addr (sort keys(%regs)) {
|
||||
# printf "0x%x:\n", $addr;
|
||||
# foreach $name (sort keys(%{$regs{$addr}})) {
|
||||
# printf "%s 0x%x\n", $name, $addr;
|
||||
# }
|
||||
# }
|
||||
|
||||
printf "\tMODULE radioregs\n\n", $addr;
|
||||
foreach $addr (sort keys(%regs)) {
|
||||
foreach $name (sort keys(%{$regs{$addr}})) {
|
||||
printf "\tPUBWEAK %s\n", $name;
|
||||
}
|
||||
printf "\n\tASEGN XDATA_AN:XDATA:ROOT,%05XH\n", $addr;
|
||||
foreach $name (sort keys(%{$regs{$addr}})) {
|
||||
printf "%s:\n", $name;
|
||||
}
|
||||
printf "\tDATA8\n\tDS 1\n\n";
|
||||
}
|
||||
print "\tEND\n\n";
|
||||
@ -1,433 +0,0 @@
|
||||
TARGET_MODEL := SMALL
|
||||
LIBSUFFIX :=
|
||||
KEILPATH := C:/EDA/Keil
|
||||
C51INC := $(KEILPATH)/C51/INC
|
||||
C51LIB := $(KEILPATH)/C51/LIB
|
||||
C51FLAGS := OBJECTEXTEND $(TARGET_MODEL) DEBUG INCDIR "($(shell cygpath -w ../source))"
|
||||
A51OPT := "SET ($(TARGET_MODEL))" EP DEBUG
|
||||
L51OPT := "RAMSIZE(256) XDATA(0x0-0x1FFF) CODE(0x0-0xFFFF)"
|
||||
CPU_TYPE := 8052AH
|
||||
CPU_VENDOR := Intel
|
||||
CPU_XTAL := 0x01312D00
|
||||
|
||||
LIBMFOBJ := lcdinit.obj lcdsetpos.obj lcdwrstr.obj lcdclear.obj lcdclrdisp.obj lcdwru16.obj lcdwru32.obj \
|
||||
lcdwrhexu16.obj lcdwrhexu32.obj lcduwrnum16.obj lcduwrnum32.obj lcduwrhex16.obj lcduwrhex32.obj \
|
||||
dbglink.obj dbglnktxbuf.obj dbglnkrxbuf.obj dbglnktx.obj dbglnkrx.obj dbglnkwrhexu16.obj dbglnkwrhexu32.obj dbglnkwrstr.obj \
|
||||
dbglnkwru16.obj dbglnkwru32.obj dbglnkwrnum16.obj dbglnkwrnum32.obj dbglnkwrhex16.obj dbglnkwrhex32.obj \
|
||||
crc8ccitt.obj crc8onewire.obj crc8tccitt.obj crc8tccittmsb.obj crc8tonewire.obj crc8tonewiremsb.obj \
|
||||
crc8ccittb.obj crc8ccittmsbb.obj crc8onewireb.obj crc8onewiremsbb.obj \
|
||||
crc8ccitttable.obj crc8onewiretable.obj crc8ccittmsbtable.obj crc8onewiremsbtable.obj \
|
||||
crcccitt.obj crcccittmsb.obj crc16ansi.obj crc16ansimsb.obj crc16dnp.obj crc16dnpmsb.obj crc32ansi.obj crc32ansimsb.obj \
|
||||
crcccittb.obj crcccittmsbb.obj crc16ansib.obj crc16ansimsbb.obj crc16dnpb.obj crc16dnpmsbb.obj crc32ansib.obj crc32ansimsbb.obj \
|
||||
crcccitttable.obj crc16table.obj crc16dnptable.obj crcccittmsbtable.obj crc16msbtable.obj \
|
||||
crc16dnpmsbtable.obj crc32table.obj crc32msbtable.obj pn9.obj pn9table.obj pn9bit.obj pn9bits.obj pn9byte.obj pn9buf.obj \
|
||||
pn15advtable.obj pn15outtable.obj pn15adv.obj pn15out.obj \
|
||||
rev8.obj hweight8.obj hweight16.obj hweight32.obj signext12.obj signext16.obj signext20.obj signext24.obj \
|
||||
chksgnlim16.obj sgnlim16.obj chksgnlim32.obj sgnlim32.obj grayenc8.obj graydec8.obj fmemset.obj fmemcpy.obj \
|
||||
delay.obj random.obj sleep.obj sleepcont.obj deepsleep.obj standby.obj resetcpu.obj \
|
||||
flashunlock.obj flashlock.obj flashwait.obj flashpgerase.obj flashwrite.obj flashread.obj flashcal.obj flashcsec.obj \
|
||||
uarttimer0.obj uarttimer1.obj uarttimer2.obj uart0init.obj uart1init.obj uart0stop.obj uart1stop.obj \
|
||||
uart0txbuf.obj uart1txbuf.obj uart0rxbuf.obj uart1rxbuf.obj \
|
||||
uart0tx.obj uart1tx.obj uart0rx.obj uart1rx.obj uart0wrhexu16.obj uart1wrhexu16.obj uart0wrhexu32.obj uart1wrhexu32.obj \
|
||||
uart0wrstr.obj uart1wrstr.obj uart0wru16.obj uart1wru16.obj uart0wru32.obj uart1wru32.obj \
|
||||
uart0wrnum16.obj uart0wrnum32.obj uart0wrhex16.obj uart0wrhex32.obj \
|
||||
uart1wrnum16.obj uart1wrnum32.obj uart1wrhex16.obj uart1wrhex32.obj \
|
||||
adctemp.obj adccal.obj adccalg.obj adccalt.obj adcuncal.obj adcseoffs00.obj adcseoffs01.obj adcseoffs10.obj \
|
||||
bch3121dec.obj bch3121decp.obj bch3121enc.obj bch3121encp.obj bch3121stab.obj bch3121syn.obj \
|
||||
wrnum16.obj wrnum32.obj offxosc.obj offlpxosc.obj setuplpxosc.obj setupxosc.obj setupcal.obj \
|
||||
wtimer.obj wtrem.obj wtcbadd.obj wtcbrem.obj wt0setcfg.obj wt1setcfg.obj wtstdby.obj \
|
||||
wt0adda.obj wt1adda.obj wt0addr.obj wt1addr.obj wt0curt.obj wt1curt.obj wt0rem.obj wt1rem.obj wt01rem.obj \
|
||||
radiord16.obj radiord24.obj radiord32.obj radiowr16.obj radiowr24.obj radiowr32.obj radiodswakecore.obj \
|
||||
ax5031comminit.obj ax5031commslpexit.obj ax5031reset.obj ax5031deepsleep.obj ax5031rclkena.obj ax5031rclkdis.obj \
|
||||
ax5031rdfifo.obj ax5031wrfifo.obj ax5031regs.obj \
|
||||
ax5042comminit.obj ax5042commslpexit.obj ax5042reset.obj ax5042deepsleep.obj ax5042rclkena.obj ax5042rclkdis.obj \
|
||||
ax5042rdfifo.obj ax5042wrfifo.obj ax5042regs.obj \
|
||||
ax5043comminit.obj ax5043commslpexit.obj ax5043reset.obj ax5043deepsleep.obj ax5043rclkena.obj ax5043rclkdis.obj \
|
||||
ax5043rdfifo.obj ax5043wrfifo.obj ax5043regs.obj \
|
||||
ax5051comminit.obj ax5051commslpexit.obj ax5051reset.obj ax5051deepsleep.obj ax5051rclkena.obj ax5051rclkdis.obj \
|
||||
ax5051rdfifo.obj ax5051wrfifo.obj ax5051regs.obj \
|
||||
ax8052regs.obj
|
||||
|
||||
BINARIES :=
|
||||
|
||||
comma := ,
|
||||
empty :=
|
||||
space := $(empty) $(empty)
|
||||
|
||||
all: libmf.lib libmflarge.lib $(BINARIES) $(patsubst %.omf,%.hex,$(BINARIES))
|
||||
|
||||
clean:
|
||||
rm -rf LIBMF.LIB libmf.lib libmf LIBMFLARGE.LIB libmflarge.lib libmflarge mflibbinkeil.tar.gz
|
||||
|
||||
tar: mflibbinkeil.tar.gz
|
||||
|
||||
mflibbinkeil.tar.gz:
|
||||
[ -f LIBMF.LIB ] && mv LIBMF.LIB libmf.lib ; \
|
||||
[ -f LIBMFLARGE.LIB ] && mv LIBMFLARGE.LIB libmflarge.lib ; \
|
||||
tar -c -v -z -f $@ libmf.lib libmflarge.lib
|
||||
|
||||
ifeq ($(LIBSUFFIX),)
|
||||
libmflarge.lib:
|
||||
make TARGET_MODEL=LARGE LIBSUFFIX=large
|
||||
endif
|
||||
|
||||
libmf$(LIBSUFFIX):
|
||||
[ ! -d $@ ] && mkdir -p $@
|
||||
|
||||
.PRECIOUS: %.src %.obj %.omf
|
||||
|
||||
%.obj: %.src
|
||||
$(KEILPATH)/C51/BIN/A51.EXE "$(shell cygpath -w $<)" "PR($(shell cygpath -w $(patsubst %.obj,%.ls1,$@)))" $(A51OPT)
|
||||
|
||||
%.src: %.src1
|
||||
./fixmodname.pl $@ < $< > $@
|
||||
|
||||
%.omf: %.obj libmf$(LIBSUFFIX).lib $(shell cygpath -u $(C51LIB)/C51S.LIB)
|
||||
($(KEILPATH)/C51/BIN/BL51.EXE "$(subst $(space),$(comma),$(foreach fn,$^,$(shell cygpath -w $(fn))))" TO "$(shell cygpath -w $@)" $(L51OPT); x=$$?; if [ $${x} -lt 2 ]; then x=0; fi; exit $${x})
|
||||
|
||||
%.hex: %.omf
|
||||
$(KEILPATH)/C51/BIN/OH51.EXE "$(shell cygpath -w $<)" HEXFILE "($(shell cygpath -w $@))"
|
||||
|
||||
libmf$(LIBSUFFIX)/%.src: ../source/%.c | libmf$(LIBSUFFIX)
|
||||
($(KEILPATH)/C51/BIN/C51.EXE "$(shell cygpath -w $<)" $(C51FLAGS) SRC "($(shell cygpath -w $@))" PR "($(shell cygpath -w $(patsubst %.src,%.lst,$@)))"; x=$$?; if [ $${x} -lt 2 ]; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/%.src: libmf$(LIBSUFFIX)/%.c | libmf$(LIBSUFFIX)
|
||||
($(KEILPATH)/C51/BIN/C51.EXE "$(shell cygpath -w $<)" $(C51FLAGS) SRC "($(shell cygpath -w $@))" PR "($(shell cygpath -w $(patsubst %.src,%.lst,$@)))"; x=$$?; if [ $${x} -lt 2 ]; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX).lib: $(patsubst %.obj,libmf$(LIBSUFFIX)/%.obj,$(LIBMFOBJ)) | libmf$(LIBSUFFIX)
|
||||
$(KEILPATH)/C51/BIN/LIB51.EXE TRANSFER "$(subst $(space),$(comma),$(foreach fn,$(patsubst %.obj,libmf$(LIBSUFFIX)/%.obj,$(LIBMFOBJ)),$(shell cygpath -w $(fn))))" TO $@
|
||||
|
||||
libmf$(LIBSUFFIX)/uarttimer0.c: ../source/uarttimer.c
|
||||
(unifdef -DTIMER=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uarttimer1.c: ../source/uarttimer.c
|
||||
(unifdef -DTIMER=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uarttimer2.c: ../source/uarttimer.c
|
||||
(unifdef -DTIMER=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart0init.c: ../source/uartinit.c
|
||||
(unifdef -DUART=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart0stop.c: ../source/uartstop.c
|
||||
(unifdef -DUART=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart1init.c: ../source/uartinit.c
|
||||
(unifdef -DUART=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart1stop.c: ../source/uartstop.c
|
||||
(unifdef -DUART=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart0%.c: ../source/io%.c
|
||||
(unifdef -DUART=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart1%.c: ../source/io%.c
|
||||
(unifdef -DUART=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/dbglnk%.c: ../source/io%.c
|
||||
(unifdef -DUART=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/lcdu%.c: ../source/io%.c
|
||||
(unifdef -DUART=3 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/ax5031%.c: ../source/radio%.c
|
||||
(unifdef -DRADIO=5031 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/ax5042%.c: ../source/radio%.c
|
||||
(unifdef -DRADIO=5042 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/ax5043%.c: ../source/radio%.c
|
||||
(unifdef -DRADIO=5043 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/ax5051%.c: ../source/radio%.c
|
||||
(unifdef -DRADIO=5051 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8tccitt.c: ../source/crc8.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8tccittmsb.c: ../source/crc8msb.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8tonewire.c: ../source/crc8.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8tonewiremsb.c: ../source/crc8msb.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16ansi.c: ../source/crc16.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16ansimsb.c: ../source/crc16msb.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16dnp.c: ../source/crc16.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsb.c: ../source/crc16msb.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crcccitt.c: ../source/crc16.c
|
||||
(unifdef -DCRCMODE=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crcccittmsb.c: ../source/crc16msb.c
|
||||
(unifdef -DCRCMODE=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc32ansi.c: ../source/crc32.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc32ansimsb.c: ../source/crc32msb.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8ccittb.c: ../source/crc8b.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8ccittmsbb.c: ../source/crc8b.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8onewireb.c: ../source/crc8b.c
|
||||
(unifdef -DCRCMODE=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8onewiremsbb.c: ../source/crc8b.c
|
||||
(unifdef -DCRCMODE=3 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16ansib.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16ansimsbb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16dnpb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsbb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=3 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crcccittb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=4 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crcccittmsbb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=5 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc32ansib.c: ../source/crc32b.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc32ansimsbb.c: ../source/crc32b.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/lcdinit.src: ../source/lcdinit.c ../source/libmflcd.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdsetpos.src: ../source/lcdsetpos.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwrstr.src: ../source/lcdwrstr.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdclear.src: ../source/lcdclear.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdclrdisp.src: ../source/lcdclrdisp.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwru16.src: ../source/lcdwru16.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwru32.src: ../source/lcdwru32.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwrhexu16.src: ../source/lcdwrhexu16.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwrhexu32.src: ../source/lcdwrhexu32.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcduwrnum16.src: libmf$(LIBSUFFIX)/lcduwrnum16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcduwrnum32.src: libmf$(LIBSUFFIX)/lcduwrnum32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcduwrhex16.src: libmf$(LIBSUFFIX)/lcduwrhex16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcduwrhex32.src: libmf$(LIBSUFFIX)/lcduwrhex32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/delay.src: ../source/delay.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/random.src: ../source/random.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccitt.src: ../source/crc8ccitt.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewire.src: ../source/crc8onewire.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccitttable.src: ../source/crc8ccitttable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewiretable.src: ../source/crc8onewiretable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccittmsbtable.src: ../source/crc8ccittmsbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewiremsbtable.src: ../source/crc8onewiremsbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccitttable.src: ../source/crcccitttable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16table.src: ../source/crc16table.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnptable.src: ../source/crc16dnptable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccittmsbtable.src: ../source/crcccittmsbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16msbtable.src: ../source/crc16msbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsbtable.src: ../source/crc16dnpmsbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32table.src: ../source/crc32table.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32msbtable.src: ../source/crc32msbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8tccitt.src: libmf$(LIBSUFFIX)/crc8tccitt.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8tccittmsb.src: libmf$(LIBSUFFIX)/crc8tccittmsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8tonewire.src: libmf$(LIBSUFFIX)/crc8tonewire.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8tonewiremsb.src: libmf$(LIBSUFFIX)/crc8tonewiremsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16ansi.src: libmf$(LIBSUFFIX)/crc16ansi.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16ansimsb.src: libmf$(LIBSUFFIX)/crc16ansimsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnp.src: libmf$(LIBSUFFIX)/crc16dnp.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsb.src: libmf$(LIBSUFFIX)/crc16dnpmsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccitt.src: libmf$(LIBSUFFIX)/crcccitt.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccittmsb.src: libmf$(LIBSUFFIX)/crcccittmsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32ansi.src: libmf$(LIBSUFFIX)/crc32ansi.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32ansimsb.src: libmf$(LIBSUFFIX)/crc32ansimsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccittb.src: libmf$(LIBSUFFIX)/crc8ccittb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccittmsbb.src: libmf$(LIBSUFFIX)/crc8ccittmsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewireb.src: libmf$(LIBSUFFIX)/crc8onewireb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewiremsbb.src: libmf$(LIBSUFFIX)/crc8onewiremsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16ansib.src: libmf$(LIBSUFFIX)/crc16ansib.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16ansimsbb.src: libmf$(LIBSUFFIX)/crc16ansimsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnpb.src: libmf$(LIBSUFFIX)/crc16dnpb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsbb.src: libmf$(LIBSUFFIX)/crc16dnpmsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccittb.src: libmf$(LIBSUFFIX)/crcccittb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccittmsbb.src: libmf$(LIBSUFFIX)/crcccittmsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32ansib.src: libmf$(LIBSUFFIX)/crc32ansib.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32ansimsbb.src: libmf$(LIBSUFFIX)/crc32ansimsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9.src: ../source/pn9.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9table.src: ../source/pn9table.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9bit.src: ../source/pn9bit.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9bits.src: ../source/pn9bits.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9byte.src: ../source/pn9byte.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9buf.src: ../source/pn9buf.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn15advtable.src: ../source/pn15advtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn15outtable.src: ../source/pn15outtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn15adv.src: ../source/pn15adv.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn15out.src: ../source/pn15out.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/rev8.src: ../source/rev8.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/hweight8.src: ../source/hweight8.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/hweight16.src: ../source/hweight16.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/hweight32.src: ../source/hweight32.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/signext12.src: ../source/signext12.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/signext16.src: ../source/signext16.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/signext20.src: ../source/signext20.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/signext24.src: ../source/signext24.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/chksgnlim16.src: ../source/chksgnlim16.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/sgnlim16.src: ../source/sgnlim16.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/chksgnlim32.src: ../source/chksgnlim32.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/sgnlim32.src: ../source/sgnlim32.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/grayenc8.src: ../source/grayenc8.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/graydec8.src: ../source/graydec8.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/fmemset.src: ../source/fmemset.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/fmemcpy.src: ../source/fmemcpy.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/standby.src: ../source/standby.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/sleep.src: ../source/sleep.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/sleepcont.src: ../source/sleepcont.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/deepsleep.src: ../source/deepsleep.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/resetcpu.src: ../source/resetcpu.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashunlock.src: ../source/flashunlock.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashlock.src: ../source/flashlock.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashwait.src: ../source/flashwait.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashpgerase.src: ../source/flashpgerase.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashwrite.src: ../source/flashwrite.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashread.src: ../source/flashread.c ../source/libmfflash.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashcal.src: ../source/flashcal.c ../source/libmfcalsector.h ../source/libmfflash.h ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashcsec.src: ../source/flashcsec.c ../source/libmfcalsector.h ../source/libmfflash.h ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0init.src: libmf$(LIBSUFFIX)/uart0init.c ../source/libmfuart0.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1init.src: libmf$(LIBSUFFIX)/uart1init.c ../source/libmfuart1.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0stop.src: libmf$(LIBSUFFIX)/uart0stop.c ../source/libmfuart0.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1stop.src: libmf$(LIBSUFFIX)/uart1stop.c ../source/libmfuart1.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0txbuf.src: libmf$(LIBSUFFIX)/uart0txbuf.c ../source/libmfuart0.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1txbuf.src: libmf$(LIBSUFFIX)/uart1txbuf.c ../source/libmfuart1.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0rxbuf.src: libmf$(LIBSUFFIX)/uart0rxbuf.c ../source/libmfuart0.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1rxbuf.src: libmf$(LIBSUFFIX)/uart1rxbuf.c ../source/libmfuart1.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0tx.src: libmf$(LIBSUFFIX)/uart0tx.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1tx.src: libmf$(LIBSUFFIX)/uart1tx.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0rx.src: libmf$(LIBSUFFIX)/uart0rx.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1rx.src: libmf$(LIBSUFFIX)/uart1rx.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrhexu16.src: libmf$(LIBSUFFIX)/uart0wrhexu16.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrhexu16.src: libmf$(LIBSUFFIX)/uart1wrhexu16.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrhexu32.src: libmf$(LIBSUFFIX)/uart0wrhexu32.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrhexu32.src: libmf$(LIBSUFFIX)/uart1wrhexu32.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrstr.src: libmf$(LIBSUFFIX)/uart0wrstr.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrstr.src: libmf$(LIBSUFFIX)/uart1wrstr.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wru16.src: libmf$(LIBSUFFIX)/uart0wru16.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wru16.src: libmf$(LIBSUFFIX)/uart1wru16.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wru32.src: libmf$(LIBSUFFIX)/uart0wru32.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wru32.src: libmf$(LIBSUFFIX)/uart1wru32.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrnum16.src: libmf$(LIBSUFFIX)/uart0wrnum16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrnum16.src: libmf$(LIBSUFFIX)/uart1wrnum16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrnum32.src: libmf$(LIBSUFFIX)/uart0wrnum32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrnum32.src: libmf$(LIBSUFFIX)/uart1wrnum32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrhex16.src: libmf$(LIBSUFFIX)/uart0wrhex16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrhex16.src: libmf$(LIBSUFFIX)/uart1wrhex16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrhex32.src: libmf$(LIBSUFFIX)/uart0wrhex32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrhex32.src: libmf$(LIBSUFFIX)/uart1wrhex32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglink.src: ../source/dbglink.c ../source/libmfdbglink.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnktxbuf.src: libmf$(LIBSUFFIX)/dbglnktxbuf.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkrxbuf.src: libmf$(LIBSUFFIX)/dbglnkrxbuf.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnktx.src: libmf$(LIBSUFFIX)/dbglnktx.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkrx.src: libmf$(LIBSUFFIX)/dbglnkrx.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrhexu16.src: libmf$(LIBSUFFIX)/dbglnkwrhexu16.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrhexu32.src: libmf$(LIBSUFFIX)/dbglnkwrhexu32.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrstr.src: libmf$(LIBSUFFIX)/dbglnkwrstr.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwru16.src: libmf$(LIBSUFFIX)/dbglnkwru16.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwru32.src: libmf$(LIBSUFFIX)/dbglnkwru32.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrnum16.src: libmf$(LIBSUFFIX)/dbglnkwrnum16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrnum32.src: libmf$(LIBSUFFIX)/dbglnkwrnum32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrhex16.src: libmf$(LIBSUFFIX)/dbglnkwrhex16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrhex32.src: libmf$(LIBSUFFIX)/dbglnkwrhex32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adctemp.src: ../source/adctemp.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adccal.src: ../source/adccal.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adccalg.src: ../source/adccalg.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adccalt.src: ../source/adccalt.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adcuncal.src: ../source/adcuncal.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adcseoffs00.src: ../source/adcseoffs00.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adcseoffs01.src: ../source/adcseoffs01.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adcseoffs10.src: ../source/adcseoffs10.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121dec.src: ../source/bch3121dec.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121decp.src: ../source/bch3121decp.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121enc.src: ../source/bch3121enc.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121encp.src: ../source/bch3121encp.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121stab.src: ../source/bch3121stab.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121syn.src: ../source/bch3121syn.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wrnum16.src: ../source/wrnum16.c ../source/wrnum.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wrnum32.src: ../source/wrnum32.c ../source/wrnum.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/offxosc.src: ../source/offxosc.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/offlpxosc.src: ../source/offlpxosc.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/setuplpxosc.src: ../source/setuplpxosc.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/setupxosc.src: ../source/setupxosc.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/setupcal.src: ../source/setupcal.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtimer.src: ../source/wtimer.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtrem.src: ../source/wtrem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtcbadd.src: ../source/wtcbadd.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtcbrem.src: ../source/wtcbrem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0setcfg.src: ../source/wt0setcfg.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1setcfg.src: ../source/wt1setcfg.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtstdby.src: ../source/wtstdby.c ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0adda.src: ../source/wt0adda.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1adda.src: ../source/wt1adda.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0addr.src: ../source/wt0addr.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1addr.src: ../source/wt1addr.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0curt.src: ../source/wt0curt.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1curt.src: ../source/wt1curt.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0rem.src: ../source/wt0rem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1rem.src: ../source/wt1rem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt01rem.src: ../source/wt01rem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiord16.src: ../source/radiord16.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiord24.src: ../source/radiord24.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiord32.src: ../source/radiord32.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiowr16.src: ../source/radiowr16.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiowr24.src: ../source/radiowr24.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiowr32.src: ../source/radiowr32.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiodswakecore.src: ../source/radiodswakecore.c ../source/radiodefs.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031comminit.src: libmf$(LIBSUFFIX)/ax5031comminit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031commslpexit.src: libmf$(LIBSUFFIX)/ax5031commslpexit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031reset.src: libmf$(LIBSUFFIX)/ax5031reset.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031deepsleep.src: libmf$(LIBSUFFIX)/ax5031deepsleep.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031rclkena.src: ../source/ax5031rclkena.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031rclkdis.src: ../source/ax5031rclkdis.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031rdfifo.src: libmf$(LIBSUFFIX)/ax5031rdfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031wrfifo.src: libmf$(LIBSUFFIX)/ax5031wrfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031regs.src: ../source/ax5031regs.c ../source/ax8052f131.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042comminit.src: libmf$(LIBSUFFIX)/ax5042comminit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042commslpexit.src: libmf$(LIBSUFFIX)/ax5042commslpexit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042reset.src: libmf$(LIBSUFFIX)/ax5042reset.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042deepsleep.src: libmf$(LIBSUFFIX)/ax5042deepsleep.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042rclkena.src: ../source/ax5042rclkena.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042rclkdis.src: ../source/ax5042rclkdis.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042rdfifo.src: libmf$(LIBSUFFIX)/ax5042rdfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042wrfifo.src: libmf$(LIBSUFFIX)/ax5042wrfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042regs.src: ../source/ax5042regs.c ../source/ax8052f142.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043comminit.src: libmf$(LIBSUFFIX)/ax5043comminit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043commslpexit.src: libmf$(LIBSUFFIX)/ax5043commslpexit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043reset.src: libmf$(LIBSUFFIX)/ax5043reset.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043deepsleep.src: libmf$(LIBSUFFIX)/ax5043deepsleep.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043rclkena.src: ../source/ax5043rclkena.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043rclkdis.src: ../source/ax5043rclkdis.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043rdfifo.src: libmf$(LIBSUFFIX)/ax5043rdfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043wrfifo.src: libmf$(LIBSUFFIX)/ax5043wrfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043regs.src: ../source/ax5043regs.c ../source/ax8052f143.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051comminit.src: libmf$(LIBSUFFIX)/ax5051comminit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051commslpexit.src: libmf$(LIBSUFFIX)/ax5051commslpexit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051reset.src: libmf$(LIBSUFFIX)/ax5051reset.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051deepsleep.src: libmf$(LIBSUFFIX)/ax5051deepsleep.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051rclkena.src: ../source/ax5051rclkena.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051rclkdis.src: ../source/ax5051rclkdis.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051rdfifo.src: libmf$(LIBSUFFIX)/ax5051rdfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051wrfifo.src: libmf$(LIBSUFFIX)/ax5051wrfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051regs.src: ../source/ax5051regs.c ../source/ax8052f151.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax8052regs.src: ../source/ax8052regs.c ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
@ -1,432 +0,0 @@
|
||||
TARGET_MODEL := SMALL
|
||||
LIBSUFFIX :=
|
||||
KEILPATH := C:/EDA/Keil
|
||||
C51INC := $(KEILPATH)/C51/INC
|
||||
C51LIB := $(KEILPATH)/C51/LIB
|
||||
C51FLAGS := OMF2 OBJECTADVANCED $(TARGET_MODEL) DEBUG INCDIR "($(shell cygpath -w ../source))"
|
||||
A51OPT := "SET ($(TARGET_MODEL))" EP DEBUG
|
||||
L51OPT := "CLASSES (XDATA (X:0x0-X:0x1FFF), HDATA (X:0x0-X:0x1FFF), CODE (C:0x0-C:0xFFFF), CONST (C:0x0-C:0xFFFF), ECODE (C:0x0-C:0xFFFF), HCONST (C:0x0-C:0xFFFF))"
|
||||
CPU_TYPE := 8052AH
|
||||
CPU_VENDOR := Intel
|
||||
CPU_XTAL := 0x01312D00
|
||||
|
||||
LIBMFOBJ := lcdinit.obj lcdsetpos.obj lcdwrstr.obj lcdclear.obj lcdclrdisp.obj lcdwru16.obj lcdwru32.obj \
|
||||
lcdwrhexu16.obj lcdwrhexu32.obj lcduwrnum16.obj lcduwrnum32.obj lcduwrhex16.obj lcduwrhex32.obj \
|
||||
dbglink.obj dbglnktxbuf.obj dbglnkrxbuf.obj dbglnktx.obj dbglnkrx.obj dbglnkwrhexu16.obj dbglnkwrhexu32.obj dbglnkwrstr.obj \
|
||||
dbglnkwru16.obj dbglnkwru32.obj dbglnkwrnum16.obj dbglnkwrnum32.obj dbglnkwrhex16.obj dbglnkwrhex32.obj \
|
||||
crc8ccitt.obj crc8onewire.obj crc8tccitt.obj crc8tccittmsb.obj crc8tonewire.obj crc8tonewiremsb.obj \
|
||||
crc8ccittb.obj crc8ccittmsbb.obj crc8onewireb.obj crc8onewiremsbb.obj \
|
||||
crc8ccitttable.obj crc8onewiretable.obj crc8ccittmsbtable.obj crc8onewiremsbtable.obj \
|
||||
crcccitt.obj crcccittmsb.obj crc16ansi.obj crc16ansimsb.obj crc16dnp.obj crc16dnpmsb.obj crc32ansi.obj crc32ansimsb.obj \
|
||||
crcccittb.obj crcccittmsbb.obj crc16ansib.obj crc16ansimsbb.obj crc16dnpb.obj crc16dnpmsbb.obj crc32ansib.obj crc32ansimsbb.obj \
|
||||
crcccitttable.obj crc16table.obj crc16dnptable.obj crcccittmsbtable.obj crc16msbtable.obj \
|
||||
crc16dnpmsbtable.obj crc32table.obj crc32msbtable.obj pn9.obj pn9table.obj pn9bit.obj pn9bits.obj pn9byte.obj pn9buf.obj \
|
||||
pn15advtable.obj pn15outtable.obj pn15adv.obj pn15out.obj \
|
||||
rev8.obj hweight8.obj hweight16.obj hweight32.obj signext12.obj signext16.obj signext20.obj signext24.obj \
|
||||
chksgnlim16.obj sgnlim16.obj chksgnlim32.obj sgnlim32.obj grayenc8.obj graydec8.obj fmemset.obj fmemcpy.obj \
|
||||
delay.obj random.obj sleep.obj sleepcont.obj deepsleep.obj standby.obj resetcpu.obj \
|
||||
flashunlock.obj flashlock.obj flashwait.obj flashpgerase.obj flashwrite.obj flashread.obj flashcal.obj flashcsec.obj \
|
||||
uarttimer0.obj uarttimer1.obj uarttimer2.obj uart0init.obj uart1init.obj uart0txbuf.obj uart1txbuf.obj uart0rxbuf.obj uart1rxbuf.obj \
|
||||
uart0tx.obj uart1tx.obj uart0rx.obj uart1rx.obj uart0wrhexu16.obj uart1wrhexu16.obj uart0wrhexu32.obj uart1wrhexu32.obj \
|
||||
uart0wrstr.obj uart1wrstr.obj uart0wru16.obj uart1wru16.obj uart0wru32.obj uart1wru32.obj \
|
||||
uart0wrnum16.obj uart0wrnum32.obj uart0wrhex16.obj uart0wrhex32.obj \
|
||||
uart1wrnum16.obj uart1wrnum32.obj uart1wrhex16.obj uart1wrhex32.obj \
|
||||
adctemp.obj adccal.obj adccalg.obj adccalt.obj adcuncal.obj adcseoffs00.obj adcseoffs01.obj adcseoffs10.obj \
|
||||
bch3121dec.obj bch3121decp.obj bch3121enc.obj bch3121encp.obj bch3121stab.obj bch3121syn.obj \
|
||||
wrnum16.obj wrnum32.obj offxosc.obj offlpxosc.obj setuplpxosc.obj setupxosc.obj setupcal.obj \
|
||||
wtimer.obj wtrem.obj wtcbadd.obj wtcbrem.obj wt0setcfg.obj wt1setcfg.obj wtstdby.obj \
|
||||
wt0adda.obj wt1adda.obj wt0addr.obj wt1addr.obj wt0curt.obj wt1curt.obj wt0rem.obj wt1rem.obj wt01rem.obj \
|
||||
radiord16.obj radiord24.obj radiord32.obj radiowr16.obj radiowr24.obj radiowr32.obj radiodswakecore.obj \
|
||||
ax5031comminit.obj ax5031commslpexit.obj ax5031reset.obj ax5031deepsleep.obj ax5031rclkena.obj ax5031rclkdis.obj \
|
||||
ax5031rdfifo.obj ax5031wrfifo.obj ax5031regs.obj \
|
||||
ax5042comminit.obj ax5042commslpexit.obj ax5042reset.obj ax5042deepsleep.obj ax5042rclkena.obj ax5042rclkdis.obj \
|
||||
ax5042rdfifo.obj ax5042wrfifo.obj ax5042regs.obj \
|
||||
ax5043comminit.obj ax5043commslpexit.obj ax5043reset.obj ax5043deepsleep.obj ax5043rclkena.obj ax5043rclkdis.obj \
|
||||
ax5043rdfifo.obj ax5043wrfifo.obj ax5043regs.obj \
|
||||
ax5051comminit.obj ax5051commslpexit.obj ax5051reset.obj ax5051deepsleep.obj ax5051rclkena.obj ax5051rclkdis.obj \
|
||||
ax5051rdfifo.obj ax5051wrfifo.obj ax5051regs.obj \
|
||||
ax8052regs.obj
|
||||
|
||||
BINARIES :=
|
||||
|
||||
comma := ,
|
||||
empty :=
|
||||
space := $(empty) $(empty)
|
||||
|
||||
all: libmf.lib libmflarge.lib $(BINARIES) $(patsubst %.omf,%.hex,$(BINARIES))
|
||||
|
||||
clean:
|
||||
rm -rf LIBMF.LIB libmf.lib libmf LIBMFLARGE.LIB libmflarge.lib libmflarge mflibbinkeil2.tar.gz
|
||||
|
||||
tar: mflibbinkeil2.tar.gz
|
||||
|
||||
mflibbinkeil2.tar.gz:
|
||||
[ -f LIBMF.LIB ] && mv LIBMF.LIB libmf.lib ; \
|
||||
[ -f LIBMFLARGE.LIB ] && mv LIBMFLARGE.LIB libmflarge.lib ; \
|
||||
tar -c -v -z -f $@ libmf.lib libmflarge.lib
|
||||
|
||||
ifeq ($(LIBSUFFIX),)
|
||||
libmflarge.lib:
|
||||
make TARGET_MODEL=LARGE LIBSUFFIX=large
|
||||
endif
|
||||
|
||||
libmf$(LIBSUFFIX):
|
||||
[ ! -d $@ ] && mkdir -p $@
|
||||
|
||||
.PRECIOUS: %.src %.obj %.omf
|
||||
|
||||
%.obj: %.src
|
||||
$(KEILPATH)/C51/BIN/AX51.EXE "$(shell cygpath -w $<)" "PR($(shell cygpath -w $(patsubst %.obj,%.ls1,$@)))" $(A51OPT)
|
||||
|
||||
%.src: %.src1
|
||||
./fixmodname.pl $@ < $< > $@
|
||||
|
||||
%.omf: %.obj libmf$(LIBSUFFIX).lib $(shell cygpath -u $(C51LIB)/C51S.LIB)
|
||||
($(KEILPATH)/C51/BIN/LX51.EXE "$(subst $(space),$(comma),$(foreach fn,$^,$(shell cygpath -w $(fn))))" TO "$(shell cygpath -w $@)" CODE "($(shell cygpath -w $(patsubst %.omf,%.cod,$@)))" $(L51OPT); x=$$?; if [ $${x} -lt 2 ]; then x=0; fi; exit $${x})
|
||||
|
||||
%.hex: %.omf
|
||||
$(KEILPATH)/C51/BIN/OHX51.EXE "$(shell cygpath -w $<)" HEXFILE "($(shell cygpath -w $@))"
|
||||
|
||||
libmf$(LIBSUFFIX)/%.src: ../source/%.c | libmf$(LIBSUFFIX)
|
||||
($(KEILPATH)/C51/BIN/C51.EXE "$(shell cygpath -w $<)" $(C51FLAGS) DEFINE "(AX5043_DISABLE_XSFR,AX5043_DISABLE_NONBLOCKING)" SRC "($(shell cygpath -w $@))" PR "($(shell cygpath -w $(patsubst %.src,%.lst,$@)))"; x=$$?; if [ $${x} -lt 2 ]; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/%.src: libmf$(LIBSUFFIX)/%.c | libmf$(LIBSUFFIX)
|
||||
($(KEILPATH)/C51/BIN/C51.EXE "$(shell cygpath -w $<)" $(C51FLAGS) DEFINE "(AX5043_DISABLE_XSFR,AX5043_DISABLE_NONBLOCKING)" SRC "($(shell cygpath -w $@))" PR "($(shell cygpath -w $(patsubst %.src,%.lst,$@)))"; x=$$?; if [ $${x} -lt 2 ]; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX).lib: $(patsubst %.obj,libmf$(LIBSUFFIX)/%.obj,$(LIBMFOBJ)) | libmf$(LIBSUFFIX)
|
||||
$(KEILPATH)/C51/BIN/LIBX51.EXE TRANSFER "$(subst $(space),$(comma),$(foreach fn,$(patsubst %.obj,libmf$(LIBSUFFIX)/%.obj,$(LIBMFOBJ)),$(shell cygpath -w $(fn))))" TO $@
|
||||
|
||||
libmf$(LIBSUFFIX)/uarttimer0.c: ../source/uarttimer.c
|
||||
(unifdef -DTIMER=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uarttimer1.c: ../source/uarttimer.c
|
||||
(unifdef -DTIMER=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uarttimer2.c: ../source/uarttimer.c
|
||||
(unifdef -DTIMER=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart0init.c: ../source/uartinit.c
|
||||
(unifdef -DUART=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart0stop.c: ../source/uartstop.c
|
||||
(unifdef -DUART=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart1init.c: ../source/uartinit.c
|
||||
(unifdef -DUART=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart1stop.c: ../source/uartstop.c
|
||||
(unifdef -DUART=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart0%.c: ../source/io%.c
|
||||
(unifdef -DUART=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart1%.c: ../source/io%.c
|
||||
(unifdef -DUART=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/dbglnk%.c: ../source/io%.c
|
||||
(unifdef -DUART=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/lcdu%.c: ../source/io%.c
|
||||
(unifdef -DUART=3 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/ax5031%.c: ../source/radio%.c
|
||||
(unifdef -DRADIO=5031 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/ax5042%.c: ../source/radio%.c
|
||||
(unifdef -DRADIO=5042 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/ax5043%.c: ../source/radio%.c
|
||||
(unifdef -DRADIO=5043 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/ax5051%.c: ../source/radio%.c
|
||||
(unifdef -DRADIO=5051 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8tccitt.c: ../source/crc8.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8tccittmsb.c: ../source/crc8msb.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8tonewire.c: ../source/crc8.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8tonewiremsb.c: ../source/crc8msb.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16ansi.c: ../source/crc16.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16ansimsb.c: ../source/crc16msb.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16dnp.c: ../source/crc16.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsb.c: ../source/crc16msb.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crcccitt.c: ../source/crc16.c
|
||||
(unifdef -DCRCMODE=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crcccittmsb.c: ../source/crc16msb.c
|
||||
(unifdef -DCRCMODE=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc32ansi.c: ../source/crc32.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc32ansimsb.c: ../source/crc32msb.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8ccittb.c: ../source/crc8b.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8ccittmsbb.c: ../source/crc8b.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8onewireb.c: ../source/crc8b.c
|
||||
(unifdef -DCRCMODE=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8onewiremsbb.c: ../source/crc8b.c
|
||||
(unifdef -DCRCMODE=3 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16ansib.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16ansimsbb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16dnpb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsbb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=3 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crcccittb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=4 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crcccittmsbb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=5 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc32ansib.c: ../source/crc32b.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc32ansimsbb.c: ../source/crc32b.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/lcdinit.src: ../source/lcdinit.c ../source/libmflcd.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdsetpos.src: ../source/lcdsetpos.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwrstr.src: ../source/lcdwrstr.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdclear.src: ../source/lcdclear.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdclrdisp.src: ../source/lcdclrdisp.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwru16.src: ../source/lcdwru16.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwru32.src: ../source/lcdwru32.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwrhexu16.src: ../source/lcdwrhexu16.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwrhexu32.src: ../source/lcdwrhexu32.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcduwrnum16.src: libmf$(LIBSUFFIX)/lcduwrnum16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcduwrnum32.src: libmf$(LIBSUFFIX)/lcduwrnum32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcduwrhex16.src: libmf$(LIBSUFFIX)/lcduwrhex16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcduwrhex32.src: libmf$(LIBSUFFIX)/lcduwrhex32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/delay.src: ../source/delay.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/random.src: ../source/random.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccitt.src: ../source/crc8ccitt.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewire.src: ../source/crc8onewire.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccitttable.src: ../source/crc8ccitttable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewiretable.src: ../source/crc8onewiretable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccittmsbtable.src: ../source/crc8ccittmsbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewiremsbtable.src: ../source/crc8onewiremsbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccitttable.src: ../source/crcccitttable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16table.src: ../source/crc16table.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnptable.src: ../source/crc16dnptable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccittmsbtable.src: ../source/crcccittmsbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16msbtable.src: ../source/crc16msbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsbtable.src: ../source/crc16dnpmsbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32table.src: ../source/crc32table.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32msbtable.src: ../source/crc32msbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8tccitt.src: libmf$(LIBSUFFIX)/crc8tccitt.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8tccittmsb.src: libmf$(LIBSUFFIX)/crc8tccittmsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8tonewire.src: libmf$(LIBSUFFIX)/crc8tonewire.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8tonewiremsb.src: libmf$(LIBSUFFIX)/crc8tonewiremsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16ansi.src: libmf$(LIBSUFFIX)/crc16ansi.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16ansimsb.src: libmf$(LIBSUFFIX)/crc16ansimsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnp.src: libmf$(LIBSUFFIX)/crc16dnp.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsb.src: libmf$(LIBSUFFIX)/crc16dnpmsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccitt.src: libmf$(LIBSUFFIX)/crcccitt.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccittmsb.src: libmf$(LIBSUFFIX)/crcccittmsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32ansi.src: libmf$(LIBSUFFIX)/crc32ansi.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32ansimsb.src: libmf$(LIBSUFFIX)/crc32ansimsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccittb.src: libmf$(LIBSUFFIX)/crc8ccittb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccittmsbb.src: libmf$(LIBSUFFIX)/crc8ccittmsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewireb.src: libmf$(LIBSUFFIX)/crc8onewireb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewiremsbb.src: libmf$(LIBSUFFIX)/crc8onewiremsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16ansib.src: libmf$(LIBSUFFIX)/crc16ansib.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16ansimsbb.src: libmf$(LIBSUFFIX)/crc16ansimsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnpb.src: libmf$(LIBSUFFIX)/crc16dnpb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsbb.src: libmf$(LIBSUFFIX)/crc16dnpmsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccittb.src: libmf$(LIBSUFFIX)/crcccittb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccittmsbb.src: libmf$(LIBSUFFIX)/crcccittmsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32ansib.src: libmf$(LIBSUFFIX)/crc32ansib.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32ansimsbb.src: libmf$(LIBSUFFIX)/crc32ansimsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9.src: ../source/pn9.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9table.src: ../source/pn9table.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9bit.src: ../source/pn9bit.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9bits.src: ../source/pn9bits.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9byte.src: ../source/pn9byte.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9buf.src: ../source/pn9buf.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn15advtable.src: ../source/pn15advtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn15outtable.src: ../source/pn15outtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn15adv.src: ../source/pn15adv.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn15out.src: ../source/pn15out.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/rev8.src: ../source/rev8.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/hweight8.src: ../source/hweight8.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/hweight16.src: ../source/hweight16.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/hweight32.src: ../source/hweight32.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/signext12.src: ../source/signext12.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/signext16.src: ../source/signext16.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/signext20.src: ../source/signext20.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/signext24.src: ../source/signext24.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/chksgnlim16.src: ../source/chksgnlim16.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/sgnlim16.src: ../source/sgnlim16.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/chksgnlim32.src: ../source/chksgnlim32.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/sgnlim32.src: ../source/sgnlim32.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/grayenc8.src: ../source/grayenc8.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/graydec8.src: ../source/graydec8.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/fmemset.src: ../source/fmemset.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/fmemcpy.src: ../source/fmemcpy.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/standby.src: ../source/standby.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/sleep.src: ../source/sleep.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/sleepcont.src: ../source/sleepcont.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/deepsleep.src: ../source/deepsleep.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/resetcpu.src: ../source/resetcpu.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashunlock.src: ../source/flashunlock.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashlock.src: ../source/flashlock.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashwait.src: ../source/flashwait.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashpgerase.src: ../source/flashpgerase.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashwrite.src: ../source/flashwrite.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashread.src: ../source/flashread.c ../source/libmfflash.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashcal.src: ../source/flashcal.c ../source/libmfcalsector.h ../source/libmfflash.h ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashcsec.src: ../source/flashcsec.c ../source/libmfcalsector.h ../source/libmfflash.h ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0init.src: libmf$(LIBSUFFIX)/uart0init.c ../source/libmfuart0.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1init.src: libmf$(LIBSUFFIX)/uart1init.c ../source/libmfuart1.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0stop.src: libmf$(LIBSUFFIX)/uart0stop.c ../source/libmfuart0.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1stop.src: libmf$(LIBSUFFIX)/uart1stop.c ../source/libmfuart1.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0txbuf.src: libmf$(LIBSUFFIX)/uart0txbuf.c ../source/libmfuart0.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1txbuf.src: libmf$(LIBSUFFIX)/uart1txbuf.c ../source/libmfuart1.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0rxbuf.src: libmf$(LIBSUFFIX)/uart0rxbuf.c ../source/libmfuart0.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1rxbuf.src: libmf$(LIBSUFFIX)/uart1rxbuf.c ../source/libmfuart1.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0tx.src: libmf$(LIBSUFFIX)/uart0tx.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1tx.src: libmf$(LIBSUFFIX)/uart1tx.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0rx.src: libmf$(LIBSUFFIX)/uart0rx.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1rx.src: libmf$(LIBSUFFIX)/uart1rx.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrhexu16.src: libmf$(LIBSUFFIX)/uart0wrhexu16.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrhexu16.src: libmf$(LIBSUFFIX)/uart1wrhexu16.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrhexu32.src: libmf$(LIBSUFFIX)/uart0wrhexu32.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrhexu32.src: libmf$(LIBSUFFIX)/uart1wrhexu32.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrstr.src: libmf$(LIBSUFFIX)/uart0wrstr.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrstr.src: libmf$(LIBSUFFIX)/uart1wrstr.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wru16.src: libmf$(LIBSUFFIX)/uart0wru16.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wru16.src: libmf$(LIBSUFFIX)/uart1wru16.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wru32.src: libmf$(LIBSUFFIX)/uart0wru32.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wru32.src: libmf$(LIBSUFFIX)/uart1wru32.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrnum16.src: libmf$(LIBSUFFIX)/uart0wrnum16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrnum16.src: libmf$(LIBSUFFIX)/uart1wrnum16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrnum32.src: libmf$(LIBSUFFIX)/uart0wrnum32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrnum32.src: libmf$(LIBSUFFIX)/uart1wrnum32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrhex16.src: libmf$(LIBSUFFIX)/uart0wrhex16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrhex16.src: libmf$(LIBSUFFIX)/uart1wrhex16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrhex32.src: libmf$(LIBSUFFIX)/uart0wrhex32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrhex32.src: libmf$(LIBSUFFIX)/uart1wrhex32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglink.src: ../source/dbglink.c ../source/libmfdbglink.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnktxbuf.src: libmf$(LIBSUFFIX)/dbglnktxbuf.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkrxbuf.src: libmf$(LIBSUFFIX)/dbglnkrxbuf.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnktx.src: libmf$(LIBSUFFIX)/dbglnktx.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkrx.src: libmf$(LIBSUFFIX)/dbglnkrx.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrhexu16.src: libmf$(LIBSUFFIX)/dbglnkwrhexu16.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrhexu32.src: libmf$(LIBSUFFIX)/dbglnkwrhexu32.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrstr.src: libmf$(LIBSUFFIX)/dbglnkwrstr.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwru16.src: libmf$(LIBSUFFIX)/dbglnkwru16.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwru32.src: libmf$(LIBSUFFIX)/dbglnkwru32.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrnum16.src: libmf$(LIBSUFFIX)/dbglnkwrnum16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrnum32.src: libmf$(LIBSUFFIX)/dbglnkwrnum32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrhex16.src: libmf$(LIBSUFFIX)/dbglnkwrhex16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrhex32.src: libmf$(LIBSUFFIX)/dbglnkwrhex32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adctemp.src: ../source/adctemp.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adccal.src: ../source/adccal.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adccalg.src: ../source/adccalg.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adccalt.src: ../source/adccalt.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adcuncal.src: ../source/adcuncal.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adcseoffs00.src: ../source/adcseoffs00.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adcseoffs01.src: ../source/adcseoffs01.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adcseoffs10.src: ../source/adcseoffs10.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121dec.src: ../source/bch3121dec.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121decp.src: ../source/bch3121decp.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121enc.src: ../source/bch3121enc.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121encp.src: ../source/bch3121encp.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121stab.src: ../source/bch3121stab.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121syn.src: ../source/bch3121syn.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wrnum16.src: ../source/wrnum16.c ../source/wrnum.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wrnum32.src: ../source/wrnum32.c ../source/wrnum.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/offxosc.src: ../source/offxosc.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/offlpxosc.src: ../source/offlpxosc.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/setuplpxosc.src: ../source/setuplpxosc.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/setupxosc.src: ../source/setupxosc.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/setupcal.src: ../source/setupcal.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtimer.src: ../source/wtimer.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtrem.src: ../source/wtrem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtcbadd.src: ../source/wtcbadd.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtcbrem.src: ../source/wtcbrem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0setcfg.src: ../source/wt0setcfg.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1setcfg.src: ../source/wt1setcfg.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtstdby.src: ../source/wtstdby.c ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0adda.src: ../source/wt0adda.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1adda.src: ../source/wt1adda.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0addr.src: ../source/wt0addr.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1addr.src: ../source/wt1addr.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0curt.src: ../source/wt0curt.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1curt.src: ../source/wt1curt.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0rem.src: ../source/wt0rem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1rem.src: ../source/wt1rem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt01rem.src: ../source/wt01rem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiord16.src: ../source/radiord16.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiord24.src: ../source/radiord24.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiord32.src: ../source/radiord32.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiowr16.src: ../source/radiowr16.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiowr24.src: ../source/radiowr24.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiowr32.src: ../source/radiowr32.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiodswakecore.src: ../source/radiodswakecore.c ../source/radiodefs.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031comminit.src: libmf$(LIBSUFFIX)/ax5031comminit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031commslpexit.src: libmf$(LIBSUFFIX)/ax5031commslpexit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031reset.src: libmf$(LIBSUFFIX)/ax5031reset.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031deepsleep.src: libmf$(LIBSUFFIX)/ax5031deepsleep.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031rclkena.src: ../source/ax5031rclkena.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031rclkdis.src: ../source/ax5031rclkdis.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031rdfifo.src: libmf$(LIBSUFFIX)/ax5031rdfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031wrfifo.src: libmf$(LIBSUFFIX)/ax5031wrfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031regs.src: ../source/ax5031regs.c ../source/ax8052f131.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042comminit.src: libmf$(LIBSUFFIX)/ax5042comminit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042commslpexit.src: libmf$(LIBSUFFIX)/ax5042commslpexit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042reset.src: libmf$(LIBSUFFIX)/ax5042reset.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042deepsleep.src: libmf$(LIBSUFFIX)/ax5042deepsleep.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042rclkena.src: ../source/ax5042rclkena.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042rclkdis.src: ../source/ax5042rclkdis.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042rdfifo.src: libmf$(LIBSUFFIX)/ax5042rdfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042wrfifo.src: libmf$(LIBSUFFIX)/ax5042wrfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042regs.src: ../source/ax5042regs.c ../source/ax8052f142.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043comminit.src: libmf$(LIBSUFFIX)/ax5043comminit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043commslpexit.src: libmf$(LIBSUFFIX)/ax5043commslpexit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043reset.src: libmf$(LIBSUFFIX)/ax5043reset.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043deepsleep.src: libmf$(LIBSUFFIX)/ax5043deepsleep.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043rclkena.src: ../source/ax5043rclkena.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043rclkdis.src: ../source/ax5043rclkdis.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043rdfifo.src: libmf$(LIBSUFFIX)/ax5043rdfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043wrfifo.src: libmf$(LIBSUFFIX)/ax5043wrfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043regs.src: ../source/ax5043regs.c ../source/ax8052f143.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051comminit.src: libmf$(LIBSUFFIX)/ax5051comminit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051commslpexit.src: libmf$(LIBSUFFIX)/ax5051commslpexit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051reset.src: libmf$(LIBSUFFIX)/ax5051reset.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051deepsleep.src: libmf$(LIBSUFFIX)/ax5051deepsleep.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051rclkena.src: ../source/ax5051rclkena.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051rclkdis.src: ../source/ax5051rclkdis.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051rdfifo.src: libmf$(LIBSUFFIX)/ax5051rdfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051wrfifo.src: libmf$(LIBSUFFIX)/ax5051wrfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051regs.src: ../source/ax5051regs.c ../source/ax8052f151.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax8052regs.src: ../source/ax8052regs.c ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
@ -1,423 +0,0 @@
|
||||
TARGET_ASM := sdcc-asx8051
|
||||
TARGET_LD := sdcc-sdcc
|
||||
TARGET_CC := sdcc-sdcc
|
||||
TARGET_AR := sdcc-sdcclib
|
||||
TARGET_MODEL := --model-small
|
||||
TARGET_ASMFLAGS := -xlosg
|
||||
TARGET_LNKFLAGS := -mmcs51 --debug --code-loc 0x0000 --code-size 0x2000 --xram-loc 0x0000 --xram-size 0x100 $(TARGET_MODEL) --data-loc 0x08
|
||||
TARGET_CFLAGS := --debug -I../source $(TARGET_LNKFLAGS)
|
||||
LIBSUFFIX :=
|
||||
|
||||
LIBMFOBJ := lcdinit.rel lcdsetpos.rel lcdwrstr.rel lcdclear.rel lcdclrdisp.rel lcdwru16.rel lcdwru32.rel \
|
||||
lcdwrhexu16.rel lcdwrhexu32.rel lcduwrnum16.rel lcduwrnum32.rel lcduwrhex16.rel lcduwrhex32.rel \
|
||||
dbglink.rel dbglnktxbuf.rel dbglnkrxbuf.rel dbglnktx.rel dbglnkrx.rel dbglnkwrhexu16.rel dbglnkwrhexu32.rel dbglnkwrstr.rel \
|
||||
dbglnkwru16.rel dbglnkwru32.rel dbglnkwrnum16.rel dbglnkwrnum32.rel dbglnkwrhex16.rel dbglnkwrhex32.rel \
|
||||
crc8ccitt.rel crc8onewire.rel crc8tccitt.rel crc8tccittmsb.rel crc8tonewire.rel crc8tonewiremsb.rel \
|
||||
crc8ccittb.rel crc8ccittmsbb.rel crc8onewireb.rel crc8onewiremsbb.rel \
|
||||
crc8ccitttable.rel crc8onewiretable.rel crc8ccittmsbtable.rel crc8onewiremsbtable.rel \
|
||||
crcccitt.rel crcccittmsb.rel crc16ansi.rel crc16ansimsb.rel crc16dnp.rel crc16dnpmsb.rel crc32ansi.rel crc32ansimsb.rel \
|
||||
crcccittb.rel crcccittmsbb.rel crc16ansib.rel crc16ansimsbb.rel crc16dnpb.rel crc16dnpmsbb.rel crc32ansib.rel crc32ansimsbb.rel \
|
||||
crcccitttable.rel crc16table.rel crc16dnptable.rel crcccittmsbtable.rel crc16msbtable.rel \
|
||||
crc16dnpmsbtable.rel crc32table.rel crc32msbtable.rel pn9.rel pn9table.rel pn9bit.rel pn9bits.rel pn9byte.rel pn9buf.rel \
|
||||
pn15advtable.rel pn15outtable.rel pn15adv.rel pn15out.rel \
|
||||
rev8.rel hweight8.rel hweight16.rel hweight32.rel signext12.rel signext16.rel signext20.rel signext24.rel \
|
||||
chksgnlim16.rel sgnlim16.rel chksgnlim32.rel sgnlim32.rel grayenc8.rel graydec8.rel fmemset.rel fmemcpy.rel \
|
||||
delay.rel random.rel sleep.rel deepsleep.rel sleepcont.rel standby.rel resetcpu.rel \
|
||||
flashunlock.rel flashlock.rel flashwait.rel flashpgerase.rel flashwrite.rel flashread.rel flashcal.rel flashcsec.rel \
|
||||
uarttimer0.rel uarttimer1.rel uarttimer2.rel uart0init.rel uart1init.rel uart0stop.rel uart1stop.rel \
|
||||
uart0txbuf.rel uart1txbuf.rel uart0rxbuf.rel uart1rxbuf.rel \
|
||||
uart0tx.rel uart1tx.rel uart0rx.rel uart1rx.rel uart0wrhexu16.rel uart1wrhexu16.rel uart0wrhexu32.rel uart1wrhexu32.rel \
|
||||
uart0wrstr.rel uart1wrstr.rel uart0wru16.rel uart1wru16.rel uart0wru32.rel uart1wru32.rel \
|
||||
uart0wrnum16.rel uart0wrnum32.rel uart0wrhex16.rel uart0wrhex32.rel \
|
||||
uart1wrnum16.rel uart1wrnum32.rel uart1wrhex16.rel uart1wrhex32.rel \
|
||||
adctemp.rel adccal.rel adccalg.rel adccalt.rel adcuncal.rel adcseoffs00.rel adcseoffs01.rel adcseoffs10.rel \
|
||||
bch3121dec.rel bch3121decp.rel bch3121enc.rel bch3121encp.rel bch3121stab.rel bch3121syn.rel \
|
||||
wrnum16.rel wrnum32.rel offxosc.rel offlpxosc.rel setuplpxosc.rel setupxosc.rel setupcal.rel \
|
||||
wtimer.rel wtrem.rel wtcbadd.rel wtcbrem.rel wt0setcfg.rel wt1setcfg.rel wtstdby.rel \
|
||||
wt0adda.rel wt1adda.rel wt0addr.rel wt1addr.rel wt0curt.rel wt1curt.rel wt0rem.rel wt1rem.rel wt01rem.rel \
|
||||
radiord16.rel radiord24.rel radiord32.rel radiowr16.rel radiowr24.rel radiowr32.rel radiodswakecore.rel \
|
||||
ax5031comminit.rel ax5031commslpexit.rel ax5031reset.rel ax5031deepsleep.rel ax5031rclkena.rel ax5031rclkdis.rel \
|
||||
ax5031rdfifo.rel ax5031wrfifo.rel ax5031regs.rel \
|
||||
ax5042comminit.rel ax5042commslpexit.rel ax5042reset.rel ax5042deepsleep.rel ax5042rclkena.rel ax5042rclkdis.rel \
|
||||
ax5042rdfifo.rel ax5042wrfifo.rel ax5042regs.rel \
|
||||
ax5043comminit.rel ax5043commslpexit.rel ax5043reset.rel ax5043deepsleep.rel ax5043rclkena.rel ax5043rclkdis.rel \
|
||||
ax5043rdfifo.rel ax5043wrfifo.rel ax5043regs.rel \
|
||||
ax5051comminit.rel ax5051commslpexit.rel ax5051reset.rel ax5051deepsleep.rel ax5051rclkena.rel ax5051rclkdis.rel \
|
||||
ax5051rdfifo.rel ax5051wrfifo.rel ax5051regs.rel \
|
||||
ax8052regs.rel
|
||||
|
||||
BINARIES :=
|
||||
|
||||
all: libmf.lib libmflarge.lib $(BINARIES) $(patsubst %.omf,%.cdb,$(BINARIES)) $(patsubst %.omf,%.ihx,$(BINARIES))
|
||||
|
||||
clean:
|
||||
rm -rf *.lnk libmf.lib libmf libmflarge.lib libmflarge mflibbinsdcc.tar.gz mflibsrc.tar.gz
|
||||
|
||||
tar: mflibbinsdcc.tar.gz mflibsrc.tar.gz
|
||||
|
||||
mflibbinsdcc.tar.gz: libmf.lib libmflarge.lib
|
||||
tar -c -v -z -f $@ libmf.lib libmflarge.lib
|
||||
|
||||
mflibsrc.tar.gz:
|
||||
cd .. ; \
|
||||
tar -c -v -z -f buildsdcc/$@ build*/Makefile source/*.c source/*.h source/*.s51 doc/LibMF.pdf buildiar/genrregs.pl
|
||||
|
||||
ifeq ($(LIBSUFFIX),)
|
||||
libmflarge.lib:
|
||||
make TARGET_MODEL=--model-large LIBSUFFIX=large
|
||||
endif
|
||||
|
||||
libmf$(LIBSUFFIX):
|
||||
[ ! -d $@ ] && mkdir -p $@
|
||||
|
||||
.PRECIOUS: %.rel %.omf %.ihx %.cdb
|
||||
|
||||
%.rel: ../%.c
|
||||
($(TARGET_CC) -c $(TARGET_CFLAGS) -o $@ $<; x=$$?; dn=`dirname $<`/; fn=`basename $< .c`; rm -f $${dn}$${fn}.asm ; exit $${x})
|
||||
|
||||
%.omf %.ihx %.cdb: %.rel libmf$(LIBSUFFIX).lib
|
||||
(libdir=`pwd`; dn=`dirname $<`/; fn=`basename $< .rel`; cd $${dn}; $(TARGET_LD) -V $(TARGET_LNKFLAGS) -L$${libdir} -llibmf$(LIBSUFFIX) $${fn}.rel; x=$$?; mv $${fn} $${fn}.omf; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/%.rel: ../source/%.c | libmf$(LIBSUFFIX)
|
||||
($(TARGET_CC) -c $(TARGET_CFLAGS) -o $@ $<; x=$$?; dn=`dirname $<`/; fn=`basename $< .c`; rm -f $${dn}$${fn}.asm ; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/%.rel: libmf$(LIBSUFFIX)/%.c | libmf$(LIBSUFFIX)
|
||||
($(TARGET_CC) -c $(TARGET_CFLAGS) -o $@ $<; x=$$?; dn=`dirname $<`/; fn=`basename $< .c`; rm -f $${dn}$${fn}.asm ; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX).lib: $(patsubst %.rel,libmf$(LIBSUFFIX)/%.rel,$(LIBMFOBJ)) | libmf$(LIBSUFFIX)
|
||||
$(TARGET_AR) -a $@ $(patsubst %.rel,libmf$(LIBSUFFIX)/%.rel,$(LIBMFOBJ))
|
||||
|
||||
libmf$(LIBSUFFIX)/uarttimer0.c: ../source/uarttimer.c
|
||||
(unifdef -DTIMER=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uarttimer1.c: ../source/uarttimer.c
|
||||
(unifdef -DTIMER=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uarttimer2.c: ../source/uarttimer.c
|
||||
(unifdef -DTIMER=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart0init.c: ../source/uartinit.c
|
||||
(unifdef -DUART=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart0stop.c: ../source/uartstop.c
|
||||
(unifdef -DUART=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart1init.c: ../source/uartinit.c
|
||||
(unifdef -DUART=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart1stop.c: ../source/uartstop.c
|
||||
(unifdef -DUART=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart0%.c: ../source/io%.c
|
||||
(unifdef -DUART=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/uart1%.c: ../source/io%.c
|
||||
(unifdef -DUART=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/dbglnk%.c: ../source/io%.c
|
||||
(unifdef -DUART=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/lcdu%.c: ../source/io%.c
|
||||
(unifdef -DUART=3 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/ax5031%.c: ../source/radio%.c
|
||||
(unifdef -DRADIO=5031 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/ax5042%.c: ../source/radio%.c
|
||||
(unifdef -DRADIO=5042 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/ax5043%.c: ../source/radio%.c
|
||||
(unifdef -DRADIO=5043 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/ax5051%.c: ../source/radio%.c
|
||||
(unifdef -DRADIO=5051 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8tccitt.c: ../source/crc8.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8tccittmsb.c: ../source/crc8msb.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8tonewire.c: ../source/crc8.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8tonewiremsb.c: ../source/crc8msb.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16ansi.c: ../source/crc16.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16ansimsb.c: ../source/crc16msb.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16dnp.c: ../source/crc16.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsb.c: ../source/crc16msb.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crcccitt.c: ../source/crc16.c
|
||||
(unifdef -DCRCMODE=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crcccittmsb.c: ../source/crc16msb.c
|
||||
(unifdef -DCRCMODE=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc32ansi.c: ../source/crc32.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc32ansimsb.c: ../source/crc32msb.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8ccittb.c: ../source/crc8b.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8ccittmsbb.c: ../source/crc8b.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8onewireb.c: ../source/crc8b.c
|
||||
(unifdef -DCRCMODE=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc8onewiremsbb.c: ../source/crc8b.c
|
||||
(unifdef -DCRCMODE=3 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16ansib.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16ansimsbb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16dnpb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=2 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsbb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=3 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crcccittb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=4 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crcccittmsbb.c: ../source/crc16b.c
|
||||
(unifdef -DCRCMODE=5 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc32ansib.c: ../source/crc32b.c
|
||||
(unifdef -DCRCMODE=0 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/crc32ansimsbb.c: ../source/crc32b.c
|
||||
(unifdef -DCRCMODE=1 -o $@ $<; x=$$?; if [ $${x} -lt 2 ] ; then x=0; fi; exit $${x})
|
||||
|
||||
libmf$(LIBSUFFIX)/lcdinit.rel: ../source/lcdinit.c ../source/libmflcd.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdsetpos.rel: ../source/lcdsetpos.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwrstr.rel: ../source/lcdwrstr.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdclear.rel: ../source/lcdclear.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdclrdisp.rel: ../source/lcdclrdisp.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwru16.rel: ../source/lcdwru16.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwru32.rel: ../source/lcdwru32.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwrhexu16.rel: ../source/lcdwrhexu16.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcdwrhexu32.rel: ../source/lcdwrhexu32.c ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcduwrnum16.rel: libmf$(LIBSUFFIX)/lcduwrnum16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcduwrnum32.rel: libmf$(LIBSUFFIX)/lcduwrnum32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcduwrhex16.rel: libmf$(LIBSUFFIX)/lcduwrhex16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/lcduwrhex32.rel: libmf$(LIBSUFFIX)/lcduwrhex32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/delay.rel: ../source/delay.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/random.rel: ../source/random.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccitt.rel: ../source/crc8ccitt.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewire.rel: ../source/crc8onewire.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccitttable.rel: ../source/crc8ccitttable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewiretable.rel: ../source/crc8onewiretable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccittmsbtable.rel: ../source/crc8ccittmsbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewiremsbtable.rel: ../source/crc8onewiremsbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccitttable.rel: ../source/crcccitttable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16table.rel: ../source/crc16table.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnptable.rel: ../source/crc16dnptable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccittmsbtable.rel: ../source/crcccittmsbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16msbtable.rel: ../source/crc16msbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsbtable.rel: ../source/crc16dnpmsbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32table.rel: ../source/crc32table.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32msbtable.rel: ../source/crc32msbtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8tccitt.rel: libmf$(LIBSUFFIX)/crc8tccitt.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8tccittmsb.rel: libmf$(LIBSUFFIX)/crc8tccittmsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8tonewire.rel: libmf$(LIBSUFFIX)/crc8tonewire.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8tonewiremsb.rel: libmf$(LIBSUFFIX)/crc8tonewiremsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16ansi.rel: libmf$(LIBSUFFIX)/crc16ansi.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16ansimsb.rel: libmf$(LIBSUFFIX)/crc16ansimsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnp.rel: libmf$(LIBSUFFIX)/crc16dnp.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsb.rel: libmf$(LIBSUFFIX)/crc16dnpmsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccitt.rel: libmf$(LIBSUFFIX)/crcccitt.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccittmsb.rel: libmf$(LIBSUFFIX)/crcccittmsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32ansi.rel: libmf$(LIBSUFFIX)/crc32ansi.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32ansimsb.rel: libmf$(LIBSUFFIX)/crc32ansimsb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccittb.rel: libmf$(LIBSUFFIX)/crc8ccittb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8ccittmsbb.rel: libmf$(LIBSUFFIX)/crc8ccittmsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewireb.rel: libmf$(LIBSUFFIX)/crc8onewireb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc8onewiremsbb.rel: libmf$(LIBSUFFIX)/crc8onewiremsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16ansib.rel: libmf$(LIBSUFFIX)/crc16ansib.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16ansimsbb.rel: libmf$(LIBSUFFIX)/crc16ansimsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnpb.rel: libmf$(LIBSUFFIX)/crc16dnpb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc16dnpmsbb.rel: libmf$(LIBSUFFIX)/crc16dnpmsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccittb.rel: libmf$(LIBSUFFIX)/crcccittb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crcccittmsbb.rel: libmf$(LIBSUFFIX)/crcccittmsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32ansib.rel: libmf$(LIBSUFFIX)/crc32ansib.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/crc32ansimsbb.rel: libmf$(LIBSUFFIX)/crc32ansimsbb.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9.rel: ../source/pn9.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9table.rel: ../source/pn9table.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9bit.rel: ../source/pn9bit.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9bits.rel: ../source/pn9bits.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9byte.rel: ../source/pn9byte.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn9buf.rel: ../source/pn9buf.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn15advtable.rel: ../source/pn15advtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn15outtable.rel: ../source/pn15outtable.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn15adv.rel: ../source/pn15adv.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/pn15out.rel: ../source/pn15out.c ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/rev8.rel: ../source/rev8.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/hweight8.rel: ../source/hweight8.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/hweight16.rel: ../source/hweight16.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/hweight32.rel: ../source/hweight32.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/signext12.rel: ../source/signext12.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/signext16.rel: ../source/signext16.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/signext20.rel: ../source/signext20.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/signext24.rel: ../source/signext24.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/chksgnlim16.rel: ../source/chksgnlim16.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/sgnlim16.rel: ../source/sgnlim16.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/chksgnlim32.rel: ../source/chksgnlim32.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/sgnlim32.rel: ../source/sgnlim32.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/grayenc8.rel: ../source/grayenc8.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/graydec8.rel: ../source/graydec8.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/fmemset.rel: ../source/fmemset.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/fmemcpy.rel: ../source/fmemcpy.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/standby.rel: ../source/standby.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/sleep.rel: ../source/sleep.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/deepsleep.rel: ../source/deepsleep.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/sleepcont.rel: ../source/sleepcont.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/resetcpu.rel: ../source/resetcpu.c ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashunlock.rel: ../source/flashunlock.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashlock.rel: ../source/flashlock.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashwait.rel: ../source/flashwait.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashpgerase.rel: ../source/flashpgerase.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashwrite.rel: ../source/flashwrite.c ../source/libmfflash.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashread.rel: ../source/flashread.c ../source/libmfflash.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashcal.rel: ../source/flashcal.c ../source/libmfcalsector.h ../source/libmfflash.h ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/flashcsec.rel: ../source/flashcsec.c ../source/libmfcalsector.h ../source/libmfflash.h ../source/libmfcrc.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0init.rel: libmf$(LIBSUFFIX)/uart0init.c ../source/libmfuart0.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1init.rel: libmf$(LIBSUFFIX)/uart1init.c ../source/libmfuart1.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0stop.rel: libmf$(LIBSUFFIX)/uart0stop.c ../source/libmfuart0.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1stop.rel: libmf$(LIBSUFFIX)/uart1stop.c ../source/libmfuart1.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0txbuf.rel: libmf$(LIBSUFFIX)/uart0txbuf.c ../source/libmfuart0.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1txbuf.rel: libmf$(LIBSUFFIX)/uart1txbuf.c ../source/libmfuart1.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0rxbuf.rel: libmf$(LIBSUFFIX)/uart0rxbuf.c ../source/libmfuart0.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1rxbuf.rel: libmf$(LIBSUFFIX)/uart1rxbuf.c ../source/libmfuart1.h ../source/libmfuart.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0tx.rel: libmf$(LIBSUFFIX)/uart0tx.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1tx.rel: libmf$(LIBSUFFIX)/uart1tx.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0rx.rel: libmf$(LIBSUFFIX)/uart0rx.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1rx.rel: libmf$(LIBSUFFIX)/uart1rx.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrhexu16.rel: libmf$(LIBSUFFIX)/uart0wrhexu16.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrhexu16.rel: libmf$(LIBSUFFIX)/uart1wrhexu16.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrhexu32.rel: libmf$(LIBSUFFIX)/uart0wrhexu32.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrhexu32.rel: libmf$(LIBSUFFIX)/uart1wrhexu32.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrstr.rel: libmf$(LIBSUFFIX)/uart0wrstr.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrstr.rel: libmf$(LIBSUFFIX)/uart1wrstr.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wru16.rel: libmf$(LIBSUFFIX)/uart0wru16.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wru16.rel: libmf$(LIBSUFFIX)/uart1wru16.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wru32.rel: libmf$(LIBSUFFIX)/uart0wru32.c ../source/libmfuart0.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wru32.rel: libmf$(LIBSUFFIX)/uart1wru32.c ../source/libmfuart1.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrnum16.rel: libmf$(LIBSUFFIX)/uart0wrnum16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrnum16.rel: libmf$(LIBSUFFIX)/uart1wrnum16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrnum32.rel: libmf$(LIBSUFFIX)/uart0wrnum32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrnum32.rel: libmf$(LIBSUFFIX)/uart1wrnum32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrhex16.rel: libmf$(LIBSUFFIX)/uart0wrhex16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrhex16.rel: libmf$(LIBSUFFIX)/uart1wrhex16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart0wrhex32.rel: libmf$(LIBSUFFIX)/uart0wrhex32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/uart1wrhex32.rel: libmf$(LIBSUFFIX)/uart1wrhex32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglink.rel: ../source/dbglink.c ../source/libmfdbglink.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnktxbuf.rel: libmf$(LIBSUFFIX)/dbglnktxbuf.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkrxbuf.rel: libmf$(LIBSUFFIX)/dbglnkrxbuf.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnktx.rel: libmf$(LIBSUFFIX)/dbglnktx.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkrx.rel: libmf$(LIBSUFFIX)/dbglnkrx.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrhexu16.rel: libmf$(LIBSUFFIX)/dbglnkwrhexu16.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrhexu32.rel: libmf$(LIBSUFFIX)/dbglnkwrhexu32.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrstr.rel: libmf$(LIBSUFFIX)/dbglnkwrstr.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwru16.rel: libmf$(LIBSUFFIX)/dbglnkwru16.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwru32.rel: libmf$(LIBSUFFIX)/dbglnkwru32.c ../source/libmfdbglink.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrnum16.rel: libmf$(LIBSUFFIX)/dbglnkwrnum16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrnum32.rel: libmf$(LIBSUFFIX)/dbglnkwrnum32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrhex16.rel: libmf$(LIBSUFFIX)/dbglnkwrhex16.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/dbglnkwrhex32.rel: libmf$(LIBSUFFIX)/dbglnkwrhex32.c ../source/wrnum.h ../source/libmfuart0.h ../source/libmfuart1.h ../source/libmfdbglink.h ../source/libmflcd.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adctemp.rel: ../source/adctemp.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adccal.rel: ../source/adccal.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adccalg.rel: ../source/adccalg.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adccalt.rel: ../source/adccalt.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adcuncal.rel: ../source/adcuncal.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adcseoffs00.rel: ../source/adcseoffs00.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adcseoffs01.rel: ../source/adcseoffs01.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/adcseoffs10.rel: ../source/adcseoffs10.c ../source/libmfadc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121dec.rel: ../source/bch3121dec.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121decp.rel: ../source/bch3121decp.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121enc.rel: ../source/bch3121enc.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121encp.rel: ../source/bch3121encp.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121stab.rel: ../source/bch3121stab.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/bch3121syn.rel: ../source/bch3121syn.c ../source/libmfbch.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wrnum16.rel: ../source/wrnum16.c ../source/wrnum.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wrnum32.rel: ../source/wrnum32.c ../source/wrnum.h ../source/libmftypes.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/offxosc.rel: ../source/offxosc.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/offlpxosc.rel: ../source/offlpxosc.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/setuplpxosc.rel: ../source/setuplpxosc.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/setupxosc.rel: ../source/setupxosc.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/setupcal.rel: ../source/setupcal.c ../source/libmfosc.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtimer.rel: ../source/wtimer.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtrem.rel: ../source/wtrem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtcbadd.rel: ../source/wtcbadd.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtcbrem.rel: ../source/wtcbrem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0setcfg.rel: ../source/wt0setcfg.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1setcfg.rel: ../source/wt1setcfg.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wtstdby.rel: ../source/wtstdby.c ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0adda.rel: ../source/wt0adda.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1adda.rel: ../source/wt1adda.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0addr.rel: ../source/wt0addr.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1addr.rel: ../source/wt1addr.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0curt.rel: ../source/wt0curt.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1curt.rel: ../source/wt1curt.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt0rem.rel: ../source/wt0rem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt1rem.rel: ../source/wt1rem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/wt01rem.rel: ../source/wt01rem.c ../source/wtimer.h ../source/libmfwtimer.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiord16.rel: ../source/radiord16.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiord24.rel: ../source/radiord24.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiord32.rel: ../source/radiord32.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiowr16.rel: ../source/radiowr16.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiowr24.rel: ../source/radiowr24.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiowr32.rel: ../source/radiowr32.c ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/radiodswakecore.rel: ../source/radiodswakecore.c ../source/radiodefs.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031comminit.rel: libmf$(LIBSUFFIX)/ax5031comminit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031commslpexit.rel: libmf$(LIBSUFFIX)/ax5031commslpexit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031reset.rel: libmf$(LIBSUFFIX)/ax5031reset.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031deepsleep.rel: libmf$(LIBSUFFIX)/ax5031deepsleep.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031rclkena.rel: ../source/ax5031rclkena.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031rclkdis.rel: ../source/ax5031rclkdis.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031rdfifo.rel: libmf$(LIBSUFFIX)/ax5031rdfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031wrfifo.rel: libmf$(LIBSUFFIX)/ax5031wrfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5031regs.rel: ../source/ax5031regs.c ../source/ax8052f131.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042comminit.rel: libmf$(LIBSUFFIX)/ax5042comminit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042commslpexit.rel: libmf$(LIBSUFFIX)/ax5042commslpexit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042reset.rel: libmf$(LIBSUFFIX)/ax5042reset.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042deepsleep.rel: libmf$(LIBSUFFIX)/ax5042deepsleep.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042rclkena.rel: ../source/ax5042rclkena.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042rclkdis.rel: ../source/ax5042rclkdis.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042rdfifo.rel: libmf$(LIBSUFFIX)/ax5042rdfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042wrfifo.rel: libmf$(LIBSUFFIX)/ax5042wrfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5042regs.rel: ../source/ax5042regs.c ../source/ax8052f142.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043comminit.rel: libmf$(LIBSUFFIX)/ax5043comminit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043commslpexit.rel: libmf$(LIBSUFFIX)/ax5043commslpexit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043reset.rel: libmf$(LIBSUFFIX)/ax5043reset.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043deepsleep.rel: libmf$(LIBSUFFIX)/ax5043deepsleep.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043rclkena.rel: ../source/ax5043rclkena.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043rclkdis.rel: ../source/ax5043rclkdis.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043rdfifo.rel: libmf$(LIBSUFFIX)/ax5043rdfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043wrfifo.rel: libmf$(LIBSUFFIX)/ax5043wrfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5043regs.rel: ../source/ax5043regs.c ../source/ax8052f143.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051comminit.rel: libmf$(LIBSUFFIX)/ax5051comminit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051commslpexit.rel: libmf$(LIBSUFFIX)/ax5051commslpexit.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051reset.rel: libmf$(LIBSUFFIX)/ax5051reset.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051deepsleep.rel: libmf$(LIBSUFFIX)/ax5051deepsleep.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051rclkena.rel: ../source/ax5051rclkena.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051rclkdis.rel: ../source/ax5051rclkdis.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051rdfifo.rel: libmf$(LIBSUFFIX)/ax5051rdfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051wrfifo.rel: libmf$(LIBSUFFIX)/ax5051wrfifo.c ../source/radiodefs.h ../source/libmfradio.h ../source/libmftypes.h ../source/ax8052.h ../source/ax8052f131.h ../source/ax8052f142.h ../source/ax8052f143.h ../source/ax8052f151.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax5051regs.rel: ../source/ax5051regs.c ../source/ax8052f151.h ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
libmf$(LIBSUFFIX)/ax8052regs.rel: ../source/ax8052regs.c ../source/ax8052.h ../source/axcompiler.h | libmf$(LIBSUFFIX)
|
||||
@ -1,24 +0,0 @@
|
||||
#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;
|
||||
}
|
||||
@ -1,25 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5031
|
||||
|
||||
#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();
|
||||
}
|
||||
@ -1,49 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5031
|
||||
|
||||
#include "radiodefs.h"
|
||||
|
||||
#if DEEPSLEEP
|
||||
|
||||
__reentrantb void radio_enter_deepsleep(void) __reentrant
|
||||
{
|
||||
PORTR |= 0x09;
|
||||
// ensure last bit read before entering deep sleep is a zero;
|
||||
// this is held until after wakeup is complete; otherwise,
|
||||
// the wakeup protocol will not work
|
||||
RADIO_PWRMODE = PWRMODE_PWRDOWN;
|
||||
RADIO_PWRMODE = PWRMODE_DEEPSLEEP;
|
||||
RADIOMUX &= (uint8_t)~0x40;
|
||||
// turn off pull-up if MISO is driven low
|
||||
PORTR &= 0xF7 | PINR;
|
||||
}
|
||||
|
||||
__reentrantb uint8_t radio_wakeup_deepsleep(void) __reentrant
|
||||
{
|
||||
DIRR = 0x15;
|
||||
PORTR = 0xEB;
|
||||
RADIOMUX = 0x07;
|
||||
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;
|
||||
{
|
||||
uint8_t i = radio_wakeup_deepsleep_core();
|
||||
if (i)
|
||||
return i;
|
||||
}
|
||||
if (radio_probeirq())
|
||||
return RADIO_ERR_IRQ;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -1,88 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5031
|
||||
|
||||
#include "radiodefs.h"
|
||||
|
||||
#if defined(SDCC)
|
||||
|
||||
__reentrantb void radio_readfifo(uint8_t __generic *ptr, uint8_t len) __reentrant __naked
|
||||
{
|
||||
ptr;
|
||||
len;
|
||||
__asm;
|
||||
mov a,sp
|
||||
add a,#-2
|
||||
mov r0,a
|
||||
mov a,@r0
|
||||
jz nodata$
|
||||
mov r7,a
|
||||
jb _B_7,codeptr$ ; >0x80 code
|
||||
jnb _B_6,xdataptr$ ; <0x40 far
|
||||
mov r0,dpl
|
||||
mov dptr,#(AX8052_RADIOBASE | FDATA)
|
||||
jb _B_5,pdataptr$ ; >0x60 pdata
|
||||
idataloop$:
|
||||
movx a,@dptr
|
||||
mov @r0,a
|
||||
inc r0
|
||||
djnz r7,idataloop$
|
||||
nodata$:
|
||||
ret
|
||||
pdataptr$:
|
||||
pdataloop$:
|
||||
movx a,@dptr
|
||||
movx @r0,a
|
||||
inc r0
|
||||
djnz r7,pdataloop$
|
||||
ret
|
||||
xdataptr$:
|
||||
mov a,#0x80
|
||||
anl a,_IE
|
||||
mov r5,a
|
||||
clr _EA
|
||||
mov r6,_XPAGE
|
||||
mov _XPAGE,#((AX8052_RADIOBASE | FDATA) >> 8)
|
||||
mov r0,#(AX8052_RADIOBASE | FDATA)
|
||||
xdataloop$:
|
||||
movx a,@r0
|
||||
movx @dptr,a
|
||||
inc dptr
|
||||
djnz r7,xdataloop$
|
||||
mov _XPAGE,r6
|
||||
mov a,r5
|
||||
orl _IE,a
|
||||
ret
|
||||
codeptr$:
|
||||
mov a,#0x80
|
||||
anl a,_IE
|
||||
mov r5,a
|
||||
clr _EA
|
||||
mov r6,_XPAGE
|
||||
mov _XPAGE,#((AX8052_RADIOBASE | FDATA) >> 8)
|
||||
mov r0,#(AX8052_RADIOBASE | FDATA)
|
||||
codeloop$:
|
||||
movx a,@r0
|
||||
;movc @dptr,a
|
||||
inc dptr
|
||||
djnz r7,codeloop$
|
||||
mov _XPAGE,r6
|
||||
mov a,r5
|
||||
orl _IE,a
|
||||
ret
|
||||
__endasm;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
__reentrantb void radio_readfifo(uint8_t __generic *ptr, uint8_t len) __reentrant
|
||||
{
|
||||
if (!len)
|
||||
return;
|
||||
do {
|
||||
*ptr++ = *(const uint8_t __xdata *)(AX8052_RADIOBASE | FDATA);
|
||||
} while (--len);
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -1,96 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5031
|
||||
|
||||
#include "radiodefs.h"
|
||||
|
||||
__reentrantb uint8_t radio_reset(void) __reentrant
|
||||
{
|
||||
uint8_t i;
|
||||
// Initialize Interface
|
||||
DIRR = 0x15;
|
||||
PORTR = 0xEB;
|
||||
#if DEEPSLEEP
|
||||
RADIOMUX = 0x07;
|
||||
#else
|
||||
RADIOMUX = 0x47;
|
||||
#endif
|
||||
RADIOACC = RACC;
|
||||
GPIOENABLE = 1;
|
||||
#if defined SDCC
|
||||
RADIOFDATAADDR = FDATA;
|
||||
RADIOFSTATADDR = FSTAT;
|
||||
#else
|
||||
RADIOFDATAADDR0 = (FDATA) & 0xFF;
|
||||
RADIOFDATAADDR1 = (FDATA) >> 8;
|
||||
RADIOFSTATADDR0 = (FSTAT) & 0xFF;
|
||||
RADIOFSTATADDR1 = (FSTAT) >> 8;
|
||||
#endif
|
||||
#if DEEPSLEEP
|
||||
// Ensure Device is not in Deep Sleep
|
||||
radio_wakeup_deepsleep_core();
|
||||
#endif
|
||||
// Reset Device
|
||||
RADIO_PWRMODE = 0x80;
|
||||
RADIO_PWRMODE = PWRMODE_PWRDOWN;
|
||||
// Wait some time for regulator startup
|
||||
#if defined(VREGDELAY) && VREGDELAY > 0
|
||||
delay(VREGDELAY);
|
||||
#endif
|
||||
// Check Scratch
|
||||
i = RADIO_SILICONREVISION;
|
||||
i = RADIO_SILICONREVISION;
|
||||
#ifdef SILICONREV2
|
||||
if (i != SILICONREV1 && i != SILICONREV2)
|
||||
return RADIO_ERR_REVISION;
|
||||
#else
|
||||
if (i != SILICONREV1)
|
||||
return RADIO_ERR_REVISION;
|
||||
#endif
|
||||
RADIO_SCRATCH = 0x55;
|
||||
if (RADIO_SCRATCH != 0x55)
|
||||
return RADIO_ERR_COMM;
|
||||
RADIO_SCRATCH = 0xAA;
|
||||
if (RADIO_SCRATCH != 0xAA)
|
||||
return RADIO_ERR_COMM;
|
||||
// Initialize Radio Interface Registers
|
||||
if (radio_probeirq())
|
||||
return RADIO_ERR_IRQ;
|
||||
return RADIO_OK;
|
||||
}
|
||||
|
||||
|
||||
__reentrantb uint8_t ax5031_probeirq(void) __reentrant
|
||||
{
|
||||
uint8_t p = 0x60;
|
||||
uint8_t pc1 = AX5031_PINCFG1 & 0x0F;
|
||||
uint8_t iesave = IE;
|
||||
IE_4 = 0;
|
||||
PORTR = 0xEB;
|
||||
AX5031_PINCFG1 = pc1;
|
||||
AX5031_PINCFG2 = 0x22; /* IRQ Line 1 */
|
||||
p &= PINR;
|
||||
AX5031_PINCFG2 = 0x20; /* IRQ Line 0 */
|
||||
p &= (uint8_t)~PINR;
|
||||
AX5031_PINCFG2 = 0x00;
|
||||
switch (p) {
|
||||
case 0x20: /* IRQ on PR5 */
|
||||
RADIOMUX &= (uint8_t)~0x08;
|
||||
break;
|
||||
|
||||
case 0x40: /* IRQ on PR6 */
|
||||
RADIOMUX |= 0x08;
|
||||
break;
|
||||
|
||||
default:
|
||||
/* Error */
|
||||
AX5031_PINCFG1 = 0x20 | pc1; /* Disable IRQ line */
|
||||
IE = iesave;
|
||||
return 1;
|
||||
}
|
||||
PORTR &= (uint8_t)~p; /* disable pullup */
|
||||
IE = iesave;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -1,89 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5031
|
||||
|
||||
#include "radiodefs.h"
|
||||
|
||||
#if defined(SDCC)
|
||||
|
||||
__reentrantb void radio_writefifo(const uint8_t __generic *ptr, uint8_t len) __reentrant __naked
|
||||
{
|
||||
ptr;
|
||||
len;
|
||||
__asm;
|
||||
mov a,sp
|
||||
add a,#-2
|
||||
mov r0,a
|
||||
mov a,@r0
|
||||
jz nodata$
|
||||
mov r7,a
|
||||
jb _B_7,codeptr$ ; >0x80 code
|
||||
jnb _B_6,xdataptr$ ; <0x40 far
|
||||
mov r0,dpl
|
||||
mov dptr,#(AX8052_RADIOBASE | FDATA)
|
||||
jb _B_5,pdataptr$ ; >0x60 pdata
|
||||
idataloop$:
|
||||
mov a,@r0
|
||||
movx @dptr,a
|
||||
inc r0
|
||||
djnz r7,idataloop$
|
||||
nodata$:
|
||||
ret
|
||||
pdataptr$:
|
||||
pdataloop$:
|
||||
movx a,@r0
|
||||
movx @dptr,a
|
||||
inc r0
|
||||
djnz r7,pdataloop$
|
||||
ret
|
||||
xdataptr$:
|
||||
mov a,#0x80
|
||||
anl a,_IE
|
||||
mov r5,a
|
||||
clr _EA
|
||||
mov r6,_XPAGE
|
||||
mov _XPAGE,#((AX8052_RADIOBASE | FDATA) >> 8)
|
||||
mov r0,#(AX8052_RADIOBASE | FDATA)
|
||||
xdataloop$:
|
||||
movx a,@dptr
|
||||
movx @r0,a
|
||||
inc dptr
|
||||
djnz r7,xdataloop$
|
||||
mov _XPAGE,r6
|
||||
mov a,r5
|
||||
orl _IE,a
|
||||
ret
|
||||
codeptr$:
|
||||
mov a,#0x80
|
||||
anl a,_IE
|
||||
mov r5,a
|
||||
clr _EA
|
||||
mov r6,_XPAGE
|
||||
mov _XPAGE,#((AX8052_RADIOBASE | FDATA) >> 8)
|
||||
mov r0,#(AX8052_RADIOBASE | FDATA)
|
||||
codeloop$:
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
movx @r0,a
|
||||
inc dptr
|
||||
djnz r7,codeloop$
|
||||
mov _XPAGE,r6
|
||||
mov a,r5
|
||||
orl _IE,a
|
||||
ret
|
||||
__endasm;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
__reentrantb void radio_writefifo(const uint8_t __generic *ptr, uint8_t len) __reentrant
|
||||
{
|
||||
if (!len)
|
||||
return;
|
||||
do {
|
||||
*(uint8_t __xdata *)(AX8052_RADIOBASE | FDATA) = *ptr++;
|
||||
} while (--len);
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -1,24 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5042
|
||||
|
||||
#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;
|
||||
}
|
||||
@ -1,25 +0,0 @@
|
||||
#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();
|
||||
}
|
||||
@ -1,49 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5042
|
||||
|
||||
#include "radiodefs.h"
|
||||
|
||||
#if DEEPSLEEP
|
||||
|
||||
__reentrantb void radio_enter_deepsleep(void) __reentrant
|
||||
{
|
||||
PORTR |= 0x09;
|
||||
// ensure last bit read before entering deep sleep is a zero;
|
||||
// this is held until after wakeup is complete; otherwise,
|
||||
// the wakeup protocol will not work
|
||||
RADIO_PWRMODE = PWRMODE_PWRDOWN;
|
||||
RADIO_PWRMODE = PWRMODE_DEEPSLEEP;
|
||||
RADIOMUX &= (uint8_t)~0x40;
|
||||
// turn off pull-up if MISO is driven low
|
||||
PORTR &= 0xF7 | PINR;
|
||||
}
|
||||
|
||||
__reentrantb uint8_t radio_wakeup_deepsleep(void) __reentrant
|
||||
{
|
||||
DIRR = 0x15;
|
||||
PORTR = 0xEB;
|
||||
RADIOMUX = 0x07;
|
||||
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;
|
||||
{
|
||||
uint8_t i = radio_wakeup_deepsleep_core();
|
||||
if (i)
|
||||
return i;
|
||||
}
|
||||
if (radio_probeirq())
|
||||
return RADIO_ERR_IRQ;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -1,88 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5042
|
||||
|
||||
#include "radiodefs.h"
|
||||
|
||||
#if defined(SDCC)
|
||||
|
||||
__reentrantb void radio_readfifo(uint8_t __generic *ptr, uint8_t len) __reentrant __naked
|
||||
{
|
||||
ptr;
|
||||
len;
|
||||
__asm;
|
||||
mov a,sp
|
||||
add a,#-2
|
||||
mov r0,a
|
||||
mov a,@r0
|
||||
jz nodata$
|
||||
mov r7,a
|
||||
jb _B_7,codeptr$ ; >0x80 code
|
||||
jnb _B_6,xdataptr$ ; <0x40 far
|
||||
mov r0,dpl
|
||||
mov dptr,#(AX8052_RADIOBASE | FDATA)
|
||||
jb _B_5,pdataptr$ ; >0x60 pdata
|
||||
idataloop$:
|
||||
movx a,@dptr
|
||||
mov @r0,a
|
||||
inc r0
|
||||
djnz r7,idataloop$
|
||||
nodata$:
|
||||
ret
|
||||
pdataptr$:
|
||||
pdataloop$:
|
||||
movx a,@dptr
|
||||
movx @r0,a
|
||||
inc r0
|
||||
djnz r7,pdataloop$
|
||||
ret
|
||||
xdataptr$:
|
||||
mov a,#0x80
|
||||
anl a,_IE
|
||||
mov r5,a
|
||||
clr _EA
|
||||
mov r6,_XPAGE
|
||||
mov _XPAGE,#((AX8052_RADIOBASE | FDATA) >> 8)
|
||||
mov r0,#(AX8052_RADIOBASE | FDATA)
|
||||
xdataloop$:
|
||||
movx a,@r0
|
||||
movx @dptr,a
|
||||
inc dptr
|
||||
djnz r7,xdataloop$
|
||||
mov _XPAGE,r6
|
||||
mov a,r5
|
||||
orl _IE,a
|
||||
ret
|
||||
codeptr$:
|
||||
mov a,#0x80
|
||||
anl a,_IE
|
||||
mov r5,a
|
||||
clr _EA
|
||||
mov r6,_XPAGE
|
||||
mov _XPAGE,#((AX8052_RADIOBASE | FDATA) >> 8)
|
||||
mov r0,#(AX8052_RADIOBASE | FDATA)
|
||||
codeloop$:
|
||||
movx a,@r0
|
||||
;movc @dptr,a
|
||||
inc dptr
|
||||
djnz r7,codeloop$
|
||||
mov _XPAGE,r6
|
||||
mov a,r5
|
||||
orl _IE,a
|
||||
ret
|
||||
__endasm;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
__reentrantb void radio_readfifo(uint8_t __generic *ptr, uint8_t len) __reentrant
|
||||
{
|
||||
if (!len)
|
||||
return;
|
||||
do {
|
||||
*ptr++ = *(const uint8_t __xdata *)(AX8052_RADIOBASE | FDATA);
|
||||
} while (--len);
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -1,100 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5042
|
||||
|
||||
#include "radiodefs.h"
|
||||
|
||||
__reentrantb uint8_t radio_reset(void) __reentrant
|
||||
{
|
||||
uint8_t i;
|
||||
// Initialize Interface
|
||||
DIRR = 0x15;
|
||||
PORTR = 0xEB;
|
||||
#if DEEPSLEEP
|
||||
RADIOMUX = 0x07;
|
||||
#else
|
||||
RADIOMUX = 0x47;
|
||||
#endif
|
||||
RADIOACC = RACC;
|
||||
GPIOENABLE = 1;
|
||||
#if defined SDCC
|
||||
RADIOFDATAADDR = FDATA;
|
||||
RADIOFSTATADDR = FSTAT;
|
||||
#else
|
||||
RADIOFDATAADDR0 = (FDATA) & 0xFF;
|
||||
RADIOFDATAADDR1 = (FDATA) >> 8;
|
||||
RADIOFSTATADDR0 = (FSTAT) & 0xFF;
|
||||
RADIOFSTATADDR1 = (FSTAT) >> 8;
|
||||
#endif
|
||||
#if DEEPSLEEP
|
||||
// Ensure Device is not in Deep Sleep
|
||||
radio_wakeup_deepsleep_core();
|
||||
#endif
|
||||
// Reset Device
|
||||
RADIO_PWRMODE = 0x80;
|
||||
RADIO_PWRMODE = PWRMODE_PWRDOWN;
|
||||
// Wait some time for regulator startup
|
||||
#if defined(VREGDELAY) && VREGDELAY > 0
|
||||
delay(VREGDELAY);
|
||||
#endif
|
||||
// Check Scratch
|
||||
i = RADIO_SILICONREVISION;
|
||||
i = RADIO_SILICONREVISION;
|
||||
#ifdef SILICONREV2
|
||||
if (i != SILICONREV1 && i != SILICONREV2)
|
||||
return RADIO_ERR_REVISION;
|
||||
#else
|
||||
if (i != SILICONREV1)
|
||||
return RADIO_ERR_REVISION;
|
||||
#endif
|
||||
RADIO_SCRATCH = 0x55;
|
||||
if (RADIO_SCRATCH != 0x55)
|
||||
return RADIO_ERR_COMM;
|
||||
RADIO_SCRATCH = 0xAA;
|
||||
if (RADIO_SCRATCH != 0xAA)
|
||||
return RADIO_ERR_COMM;
|
||||
// Initialize Radio Interface Registers
|
||||
AX5042_IFMODE = 0x00;
|
||||
AX5042_AGCTARGET = 0x0E;
|
||||
AX5042_PLLRNGMISC = 0x01;
|
||||
AX5042_RXMISC = 0x35;
|
||||
if (radio_probeirq())
|
||||
return RADIO_ERR_IRQ;
|
||||
return RADIO_OK;
|
||||
}
|
||||
|
||||
|
||||
__reentrantb uint8_t ax5042_probeirq(void) __reentrant
|
||||
{
|
||||
uint8_t p = 0x60;
|
||||
uint8_t pc1 = AX5042_PINCFG1 & 0x0F;
|
||||
uint8_t iesave = IE;
|
||||
IE_4 = 0;
|
||||
PORTR = 0xEB;
|
||||
AX5042_PINCFG1 = 0xD0 | pc1;
|
||||
AX5042_PINCFG2 = 0xE2; /* IRQ Line 1 */
|
||||
p &= PINR;
|
||||
AX5042_PINCFG2 = 0xE0; /* IRQ Line 0 */
|
||||
p &= (uint8_t)~PINR;
|
||||
AX5042_PINCFG2 = 0xC0;
|
||||
switch (p) {
|
||||
case 0x20: /* IRQ on PR5 */
|
||||
RADIOMUX &= (uint8_t)~0x08;
|
||||
break;
|
||||
|
||||
case 0x40: /* IRQ on PR6 */
|
||||
RADIOMUX |= 0x08;
|
||||
break;
|
||||
|
||||
default:
|
||||
/* Error */
|
||||
AX5042_PINCFG1 = 0xF0 | pc1; /* Disable IRQ line */
|
||||
IE = iesave;
|
||||
return 1;
|
||||
}
|
||||
PORTR &= (uint8_t)~p; /* disable pullup */
|
||||
IE = iesave;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -1,89 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5042
|
||||
|
||||
#include "radiodefs.h"
|
||||
|
||||
#if defined(SDCC)
|
||||
|
||||
__reentrantb void radio_writefifo(const uint8_t __generic *ptr, uint8_t len) __reentrant __naked
|
||||
{
|
||||
ptr;
|
||||
len;
|
||||
__asm;
|
||||
mov a,sp
|
||||
add a,#-2
|
||||
mov r0,a
|
||||
mov a,@r0
|
||||
jz nodata$
|
||||
mov r7,a
|
||||
jb _B_7,codeptr$ ; >0x80 code
|
||||
jnb _B_6,xdataptr$ ; <0x40 far
|
||||
mov r0,dpl
|
||||
mov dptr,#(AX8052_RADIOBASE | FDATA)
|
||||
jb _B_5,pdataptr$ ; >0x60 pdata
|
||||
idataloop$:
|
||||
mov a,@r0
|
||||
movx @dptr,a
|
||||
inc r0
|
||||
djnz r7,idataloop$
|
||||
nodata$:
|
||||
ret
|
||||
pdataptr$:
|
||||
pdataloop$:
|
||||
movx a,@r0
|
||||
movx @dptr,a
|
||||
inc r0
|
||||
djnz r7,pdataloop$
|
||||
ret
|
||||
xdataptr$:
|
||||
mov a,#0x80
|
||||
anl a,_IE
|
||||
mov r5,a
|
||||
clr _EA
|
||||
mov r6,_XPAGE
|
||||
mov _XPAGE,#((AX8052_RADIOBASE | FDATA) >> 8)
|
||||
mov r0,#(AX8052_RADIOBASE | FDATA)
|
||||
xdataloop$:
|
||||
movx a,@dptr
|
||||
movx @r0,a
|
||||
inc dptr
|
||||
djnz r7,xdataloop$
|
||||
mov _XPAGE,r6
|
||||
mov a,r5
|
||||
orl _IE,a
|
||||
ret
|
||||
codeptr$:
|
||||
mov a,#0x80
|
||||
anl a,_IE
|
||||
mov r5,a
|
||||
clr _EA
|
||||
mov r6,_XPAGE
|
||||
mov _XPAGE,#((AX8052_RADIOBASE | FDATA) >> 8)
|
||||
mov r0,#(AX8052_RADIOBASE | FDATA)
|
||||
codeloop$:
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
movx @r0,a
|
||||
inc dptr
|
||||
djnz r7,codeloop$
|
||||
mov _XPAGE,r6
|
||||
mov a,r5
|
||||
orl _IE,a
|
||||
ret
|
||||
__endasm;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
__reentrantb void radio_writefifo(const uint8_t __generic *ptr, uint8_t len) __reentrant
|
||||
{
|
||||
if (!len)
|
||||
return;
|
||||
do {
|
||||
*(uint8_t __xdata *)(AX8052_RADIOBASE | FDATA) = *ptr++;
|
||||
} while (--len);
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -1,24 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5043
|
||||
|
||||
#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;
|
||||
}
|
||||
@ -1,25 +0,0 @@
|
||||
#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();
|
||||
}
|
||||
@ -1,50 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5043
|
||||
|
||||
#include "radiodefs.h"
|
||||
|
||||
#if DEEPSLEEP
|
||||
|
||||
__reentrantb void radio_enter_deepsleep(void) __reentrant
|
||||
{
|
||||
PORTR |= 0x0B;
|
||||
AX5043_PINFUNCSYSCLK = 0x01;
|
||||
// ensure last bit read before entering deep sleep is a zero;
|
||||
// this is held until after wakeup is complete; otherwise,
|
||||
// the wakeup protocol will not work
|
||||
RADIO_PWRMODE = PWRMODE_PWRDOWN;
|
||||
RADIO_PWRMODE = PWRMODE_DEEPSLEEP;
|
||||
RADIOMUX &= (uint8_t)~0x40;
|
||||
// turn off pull-up if MISO is driven low
|
||||
PORTR &= 0xF7 | PINR;
|
||||
}
|
||||
|
||||
__reentrantb uint8_t radio_wakeup_deepsleep(void) __reentrant
|
||||
{
|
||||
DIRR = 0x15;
|
||||
PORTR = 0xEB;
|
||||
RADIOMUX = 0x07;
|
||||
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;
|
||||
{
|
||||
uint8_t i = radio_wakeup_deepsleep_core();
|
||||
if (i)
|
||||
return i;
|
||||
}
|
||||
if (radio_probeirq())
|
||||
return RADIO_ERR_IRQ;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -1,88 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5043
|
||||
|
||||
#include "radiodefs.h"
|
||||
|
||||
#if defined(SDCC)
|
||||
|
||||
__reentrantb void radio_readfifo(uint8_t __generic *ptr, uint8_t len) __reentrant __naked
|
||||
{
|
||||
ptr;
|
||||
len;
|
||||
__asm;
|
||||
mov a,sp
|
||||
add a,#-2
|
||||
mov r0,a
|
||||
mov a,@r0
|
||||
jz nodata$
|
||||
mov r7,a
|
||||
jb _B_7,codeptr$ ; >0x80 code
|
||||
jnb _B_6,xdataptr$ ; <0x40 far
|
||||
mov r0,dpl
|
||||
mov dptr,#(AX8052_RADIOBASE | FDATA)
|
||||
jb _B_5,pdataptr$ ; >0x60 pdata
|
||||
idataloop$:
|
||||
movx a,@dptr
|
||||
mov @r0,a
|
||||
inc r0
|
||||
djnz r7,idataloop$
|
||||
nodata$:
|
||||
ret
|
||||
pdataptr$:
|
||||
pdataloop$:
|
||||
movx a,@dptr
|
||||
movx @r0,a
|
||||
inc r0
|
||||
djnz r7,pdataloop$
|
||||
ret
|
||||
xdataptr$:
|
||||
mov a,#0x80
|
||||
anl a,_IE
|
||||
mov r5,a
|
||||
clr _EA
|
||||
mov r6,_XPAGE
|
||||
mov _XPAGE,#((AX8052_RADIOBASE | FDATA) >> 8)
|
||||
mov r0,#(AX8052_RADIOBASE | FDATA)
|
||||
xdataloop$:
|
||||
movx a,@r0
|
||||
movx @dptr,a
|
||||
inc dptr
|
||||
djnz r7,xdataloop$
|
||||
mov _XPAGE,r6
|
||||
mov a,r5
|
||||
orl _IE,a
|
||||
ret
|
||||
codeptr$:
|
||||
mov a,#0x80
|
||||
anl a,_IE
|
||||
mov r5,a
|
||||
clr _EA
|
||||
mov r6,_XPAGE
|
||||
mov _XPAGE,#((AX8052_RADIOBASE | FDATA) >> 8)
|
||||
mov r0,#(AX8052_RADIOBASE | FDATA)
|
||||
codeloop$:
|
||||
movx a,@r0
|
||||
;movc @dptr,a
|
||||
inc dptr
|
||||
djnz r7,codeloop$
|
||||
mov _XPAGE,r6
|
||||
mov a,r5
|
||||
orl _IE,a
|
||||
ret
|
||||
__endasm;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
__reentrantb void radio_readfifo(uint8_t __generic *ptr, uint8_t len) __reentrant
|
||||
{
|
||||
if (!len)
|
||||
return;
|
||||
do {
|
||||
*ptr++ = *(const uint8_t __xdata *)(AX8052_RADIOBASE | FDATA);
|
||||
} while (--len);
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -1,97 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5043
|
||||
|
||||
#include "radiodefs.h"
|
||||
|
||||
__reentrantb uint8_t radio_reset(void) __reentrant
|
||||
{
|
||||
uint8_t i;
|
||||
// Initialize Interface
|
||||
DIRR = 0x15;
|
||||
PORTR = 0xEB;
|
||||
#if DEEPSLEEP
|
||||
RADIOMUX = 0x07;
|
||||
#else
|
||||
RADIOMUX = 0x47;
|
||||
#endif
|
||||
RADIOACC = RACC;
|
||||
GPIOENABLE = 1;
|
||||
#if defined SDCC
|
||||
RADIOFDATAADDR = FDATA;
|
||||
RADIOFSTATADDR = FSTAT;
|
||||
#else
|
||||
RADIOFDATAADDR0 = (FDATA) & 0xFF;
|
||||
RADIOFDATAADDR1 = (FDATA) >> 8;
|
||||
RADIOFSTATADDR0 = (FSTAT) & 0xFF;
|
||||
RADIOFSTATADDR1 = (FSTAT) >> 8;
|
||||
#endif
|
||||
#if DEEPSLEEP
|
||||
// Ensure Device is not in Deep Sleep
|
||||
radio_wakeup_deepsleep_core();
|
||||
#endif
|
||||
// Reset Device
|
||||
RADIO_PWRMODE = 0x80;
|
||||
RADIO_PWRMODE = PWRMODE_PWRDOWN;
|
||||
// Wait some time for regulator startup
|
||||
#if defined(VREGDELAY) && VREGDELAY > 0
|
||||
delay(VREGDELAY);
|
||||
#endif
|
||||
// Check Scratch
|
||||
i = RADIO_SILICONREVISION;
|
||||
i = RADIO_SILICONREVISION;
|
||||
#ifdef SILICONREV2
|
||||
if (i != SILICONREV1 && i != SILICONREV2)
|
||||
return RADIO_ERR_REVISION;
|
||||
#else
|
||||
if (i != SILICONREV1)
|
||||
return RADIO_ERR_REVISION;
|
||||
#endif
|
||||
RADIO_SCRATCH = 0x55;
|
||||
if (RADIO_SCRATCH != 0x55)
|
||||
return RADIO_ERR_COMM;
|
||||
RADIO_SCRATCH = 0xAA;
|
||||
if (RADIO_SCRATCH != 0xAA)
|
||||
return RADIO_ERR_COMM;
|
||||
// Initialize Radio Interface Registers
|
||||
if (radio_probeirq())
|
||||
return RADIO_ERR_IRQ;
|
||||
return RADIO_OK;
|
||||
}
|
||||
|
||||
|
||||
SFRX(RADIODRV, 0x7045)
|
||||
|
||||
__reentrantb uint8_t ax5043_probeirq(void) __reentrant
|
||||
{
|
||||
uint8_t p = 0x60;
|
||||
uint8_t iesave = IE;
|
||||
IE_4 = 0;
|
||||
PORTR &= 0xEB;
|
||||
PORTR |= 0x2B;
|
||||
AX5043_PINFUNCIRQ = 0x01; /* IRQ Line 1 */
|
||||
p &= PINR;
|
||||
AX5043_PINFUNCIRQ = 0x00; /* IRQ Line 0 */
|
||||
p &= (uint8_t)~PINR;
|
||||
AX5043_PINFUNCIRQ = 0x03;
|
||||
switch (p) {
|
||||
case 0x20: /* IRQ on PR5 */
|
||||
RADIOMUX &= (uint8_t)~0x08;
|
||||
break;
|
||||
|
||||
case 0x40: /* IRQ on PR6 */
|
||||
RADIOMUX |= 0x08;
|
||||
break;
|
||||
|
||||
default:
|
||||
/* Error */
|
||||
AX5043_PINFUNCIRQ = 0x02; /* Disable IRQ line */
|
||||
IE = iesave;
|
||||
return 1;
|
||||
}
|
||||
PORTR &= (uint8_t)~p; /* disable pullup */
|
||||
IE = iesave;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -1,89 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5043
|
||||
|
||||
#include "radiodefs.h"
|
||||
|
||||
#if defined(SDCC)
|
||||
|
||||
__reentrantb void radio_writefifo(const uint8_t __generic *ptr, uint8_t len) __reentrant __naked
|
||||
{
|
||||
ptr;
|
||||
len;
|
||||
__asm;
|
||||
mov a,sp
|
||||
add a,#-2
|
||||
mov r0,a
|
||||
mov a,@r0
|
||||
jz nodata$
|
||||
mov r7,a
|
||||
jb _B_7,codeptr$ ; >0x80 code
|
||||
jnb _B_6,xdataptr$ ; <0x40 far
|
||||
mov r0,dpl
|
||||
mov dptr,#(AX8052_RADIOBASE | FDATA)
|
||||
jb _B_5,pdataptr$ ; >0x60 pdata
|
||||
idataloop$:
|
||||
mov a,@r0
|
||||
movx @dptr,a
|
||||
inc r0
|
||||
djnz r7,idataloop$
|
||||
nodata$:
|
||||
ret
|
||||
pdataptr$:
|
||||
pdataloop$:
|
||||
movx a,@r0
|
||||
movx @dptr,a
|
||||
inc r0
|
||||
djnz r7,pdataloop$
|
||||
ret
|
||||
xdataptr$:
|
||||
mov a,#0x80
|
||||
anl a,_IE
|
||||
mov r5,a
|
||||
clr _EA
|
||||
mov r6,_XPAGE
|
||||
mov _XPAGE,#((AX8052_RADIOBASE | FDATA) >> 8)
|
||||
mov r0,#(AX8052_RADIOBASE | FDATA)
|
||||
xdataloop$:
|
||||
movx a,@dptr
|
||||
movx @r0,a
|
||||
inc dptr
|
||||
djnz r7,xdataloop$
|
||||
mov _XPAGE,r6
|
||||
mov a,r5
|
||||
orl _IE,a
|
||||
ret
|
||||
codeptr$:
|
||||
mov a,#0x80
|
||||
anl a,_IE
|
||||
mov r5,a
|
||||
clr _EA
|
||||
mov r6,_XPAGE
|
||||
mov _XPAGE,#((AX8052_RADIOBASE | FDATA) >> 8)
|
||||
mov r0,#(AX8052_RADIOBASE | FDATA)
|
||||
codeloop$:
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
movx @r0,a
|
||||
inc dptr
|
||||
djnz r7,codeloop$
|
||||
mov _XPAGE,r6
|
||||
mov a,r5
|
||||
orl _IE,a
|
||||
ret
|
||||
__endasm;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
__reentrantb void radio_writefifo(const uint8_t __generic *ptr, uint8_t len) __reentrant
|
||||
{
|
||||
if (!len)
|
||||
return;
|
||||
do {
|
||||
*(uint8_t __xdata *)(AX8052_RADIOBASE | FDATA) = *ptr++;
|
||||
} while (--len);
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -1,24 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5051
|
||||
|
||||
#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;
|
||||
}
|
||||
@ -1,25 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5051
|
||||
|
||||
#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();
|
||||
}
|
||||
@ -1,49 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5051
|
||||
|
||||
#include "radiodefs.h"
|
||||
|
||||
#if DEEPSLEEP
|
||||
|
||||
__reentrantb void radio_enter_deepsleep(void) __reentrant
|
||||
{
|
||||
PORTR |= 0x09;
|
||||
// ensure last bit read before entering deep sleep is a zero;
|
||||
// this is held until after wakeup is complete; otherwise,
|
||||
// the wakeup protocol will not work
|
||||
RADIO_PWRMODE = PWRMODE_PWRDOWN;
|
||||
RADIO_PWRMODE = PWRMODE_DEEPSLEEP;
|
||||
RADIOMUX &= (uint8_t)~0x40;
|
||||
// turn off pull-up if MISO is driven low
|
||||
PORTR &= 0xF7 | PINR;
|
||||
}
|
||||
|
||||
__reentrantb uint8_t radio_wakeup_deepsleep(void) __reentrant
|
||||
{
|
||||
DIRR = 0x15;
|
||||
PORTR = 0xEB;
|
||||
RADIOMUX = 0x07;
|
||||
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;
|
||||
{
|
||||
uint8_t i = radio_wakeup_deepsleep_core();
|
||||
if (i)
|
||||
return i;
|
||||
}
|
||||
if (radio_probeirq())
|
||||
return RADIO_ERR_IRQ;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -1,88 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5051
|
||||
|
||||
#include "radiodefs.h"
|
||||
|
||||
#if defined(SDCC)
|
||||
|
||||
__reentrantb void radio_readfifo(uint8_t __generic *ptr, uint8_t len) __reentrant __naked
|
||||
{
|
||||
ptr;
|
||||
len;
|
||||
__asm;
|
||||
mov a,sp
|
||||
add a,#-2
|
||||
mov r0,a
|
||||
mov a,@r0
|
||||
jz nodata$
|
||||
mov r7,a
|
||||
jb _B_7,codeptr$ ; >0x80 code
|
||||
jnb _B_6,xdataptr$ ; <0x40 far
|
||||
mov r0,dpl
|
||||
mov dptr,#(AX8052_RADIOBASE | FDATA)
|
||||
jb _B_5,pdataptr$ ; >0x60 pdata
|
||||
idataloop$:
|
||||
movx a,@dptr
|
||||
mov @r0,a
|
||||
inc r0
|
||||
djnz r7,idataloop$
|
||||
nodata$:
|
||||
ret
|
||||
pdataptr$:
|
||||
pdataloop$:
|
||||
movx a,@dptr
|
||||
movx @r0,a
|
||||
inc r0
|
||||
djnz r7,pdataloop$
|
||||
ret
|
||||
xdataptr$:
|
||||
mov a,#0x80
|
||||
anl a,_IE
|
||||
mov r5,a
|
||||
clr _EA
|
||||
mov r6,_XPAGE
|
||||
mov _XPAGE,#((AX8052_RADIOBASE | FDATA) >> 8)
|
||||
mov r0,#(AX8052_RADIOBASE | FDATA)
|
||||
xdataloop$:
|
||||
movx a,@r0
|
||||
movx @dptr,a
|
||||
inc dptr
|
||||
djnz r7,xdataloop$
|
||||
mov _XPAGE,r6
|
||||
mov a,r5
|
||||
orl _IE,a
|
||||
ret
|
||||
codeptr$:
|
||||
mov a,#0x80
|
||||
anl a,_IE
|
||||
mov r5,a
|
||||
clr _EA
|
||||
mov r6,_XPAGE
|
||||
mov _XPAGE,#((AX8052_RADIOBASE | FDATA) >> 8)
|
||||
mov r0,#(AX8052_RADIOBASE | FDATA)
|
||||
codeloop$:
|
||||
movx a,@r0
|
||||
;movc @dptr,a
|
||||
inc dptr
|
||||
djnz r7,codeloop$
|
||||
mov _XPAGE,r6
|
||||
mov a,r5
|
||||
orl _IE,a
|
||||
ret
|
||||
__endasm;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
__reentrantb void radio_readfifo(uint8_t __generic *ptr, uint8_t len) __reentrant
|
||||
{
|
||||
if (!len)
|
||||
return;
|
||||
do {
|
||||
*ptr++ = *(const uint8_t __xdata *)(AX8052_RADIOBASE | FDATA);
|
||||
} while (--len);
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -1,119 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5051
|
||||
|
||||
#include "radiodefs.h"
|
||||
|
||||
__reentrantb uint8_t radio_reset(void) __reentrant
|
||||
{
|
||||
uint8_t i;
|
||||
// Initialize Interface
|
||||
DIRR = 0x15;
|
||||
PORTR = 0xEB;
|
||||
#if DEEPSLEEP
|
||||
RADIOMUX = 0x07;
|
||||
#else
|
||||
RADIOMUX = 0x47;
|
||||
#endif
|
||||
RADIOACC = RACC;
|
||||
GPIOENABLE = 1;
|
||||
#if defined SDCC
|
||||
RADIOFDATAADDR = FDATA;
|
||||
RADIOFSTATADDR = FSTAT;
|
||||
#else
|
||||
RADIOFDATAADDR0 = (FDATA) & 0xFF;
|
||||
RADIOFDATAADDR1 = (FDATA) >> 8;
|
||||
RADIOFSTATADDR0 = (FSTAT) & 0xFF;
|
||||
RADIOFSTATADDR1 = (FSTAT) >> 8;
|
||||
#endif
|
||||
#if DEEPSLEEP
|
||||
// Ensure Device is not in Deep Sleep
|
||||
radio_wakeup_deepsleep_core();
|
||||
#endif
|
||||
// Reset Device
|
||||
RADIO_PWRMODE = 0x80;
|
||||
RADIO_PWRMODE = PWRMODE_PWRDOWN;
|
||||
// Wait some time for regulator startup
|
||||
#if defined(VREGDELAY) && VREGDELAY > 0
|
||||
delay(VREGDELAY);
|
||||
#endif
|
||||
// Check Scratch
|
||||
i = RADIO_SILICONREVISION;
|
||||
i = RADIO_SILICONREVISION;
|
||||
#ifdef SILICONREV2
|
||||
if (i != SILICONREV1 && i != SILICONREV2)
|
||||
return RADIO_ERR_REVISION;
|
||||
#else
|
||||
if (i != SILICONREV1)
|
||||
return RADIO_ERR_REVISION;
|
||||
#endif
|
||||
RADIO_SCRATCH = 0x55;
|
||||
if (RADIO_SCRATCH != 0x55)
|
||||
return RADIO_ERR_COMM;
|
||||
RADIO_SCRATCH = 0xAA;
|
||||
if (RADIO_SCRATCH != 0xAA)
|
||||
return RADIO_ERR_COMM;
|
||||
// Initialize Radio Interface Registers
|
||||
AX5051_IFMODE = 0x00;
|
||||
AX5051_PLLVCOI = 0x01;
|
||||
AX5051_RXMISC = 0x35;
|
||||
if (radio_probeirq())
|
||||
return RADIO_ERR_IRQ;
|
||||
return RADIO_OK;
|
||||
}
|
||||
|
||||
|
||||
__reentrantb uint8_t ax5051_probeirq(void) __reentrant
|
||||
{
|
||||
uint8_t p = 0x60;
|
||||
uint8_t pc1 = AX5051_PINCFG1 & 0x0F;
|
||||
uint8_t iesave = IE;
|
||||
IE_4 = 0;
|
||||
PORTR = 0xEB;
|
||||
AX5051_PINCFG1 = 0xD0 | pc1;
|
||||
AX5051_PINCFG2 = 0xF2; /* IRQ Line 1 */
|
||||
p &= PINR;
|
||||
AX5051_PINCFG2 = 0xF0; /* IRQ Line 0 */
|
||||
p &= (uint8_t)~PINR;
|
||||
AX5051_PINCFG2 = 0xD0;
|
||||
switch (p) {
|
||||
case 0x20: /* IRQ on PR5 */
|
||||
RADIOMUX &= (uint8_t)~0x08;
|
||||
break;
|
||||
|
||||
case 0x40: /* IRQ on PR6 */
|
||||
RADIOMUX |= 0x08;
|
||||
break;
|
||||
|
||||
default:
|
||||
/* Error */
|
||||
AX5051_PINCFG1 = 0xA0 | pc1; /* Disable IRQ line */
|
||||
IE = iesave;
|
||||
return 1;
|
||||
}
|
||||
PORTR &= (uint8_t)~p; /* disable pullup */
|
||||
/*
|
||||
* Check voltage on test mode pins and drive them
|
||||
* to the correct level. This is somewhat dangerous - we
|
||||
* may momentarily short circuit the output driver (4mA)
|
||||
* no short circuit will happen if the board complies
|
||||
* to AX5051/AX5151/AX8052F151 programming manual
|
||||
*/
|
||||
EA = 0;
|
||||
/* check T2 */
|
||||
AX5051_PINCFG1 = 0xC0 | pc1;
|
||||
AX5051_PINCFG2 |= AX5051_PINCFG3 & 0x01;
|
||||
/* check T1 */
|
||||
AX5051_PINCFG1 = 0x80 | pc1;
|
||||
AX5051_PINCFG2 |= AX5051_PINCFG3 & 0x04;
|
||||
/* check TST3 */
|
||||
AX5051_PINCFG1 = pc1;
|
||||
AX5051_PINCFG2 |= AX5051_PINCFG3 & 0x08;
|
||||
IE |= p;
|
||||
/* check whether TST3 is connected to PR5 - if so disable pullup */
|
||||
PORTR &= PINR | (uint8_t)~0x20;
|
||||
IE = iesave;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -1,89 +0,0 @@
|
||||
#include "libmftypes.h"
|
||||
#include "libmfradio.h"
|
||||
|
||||
#define RADIO 5051
|
||||
|
||||
#include "radiodefs.h"
|
||||
|
||||
#if defined(SDCC)
|
||||
|
||||
__reentrantb void radio_writefifo(const uint8_t __generic *ptr, uint8_t len) __reentrant __naked
|
||||
{
|
||||
ptr;
|
||||
len;
|
||||
__asm;
|
||||
mov a,sp
|
||||
add a,#-2
|
||||
mov r0,a
|
||||
mov a,@r0
|
||||
jz nodata$
|
||||
mov r7,a
|
||||
jb _B_7,codeptr$ ; >0x80 code
|
||||
jnb _B_6,xdataptr$ ; <0x40 far
|
||||
mov r0,dpl
|
||||
mov dptr,#(AX8052_RADIOBASE | FDATA)
|
||||
jb _B_5,pdataptr$ ; >0x60 pdata
|
||||
idataloop$:
|
||||
mov a,@r0
|
||||
movx @dptr,a
|
||||
inc r0
|
||||
djnz r7,idataloop$
|
||||
nodata$:
|
||||
ret
|
||||
pdataptr$:
|
||||
pdataloop$:
|
||||
movx a,@r0
|
||||
movx @dptr,a
|
||||
inc r0
|
||||
djnz r7,pdataloop$
|
||||
ret
|
||||
xdataptr$:
|
||||
mov a,#0x80
|
||||
anl a,_IE
|
||||
mov r5,a
|
||||
clr _EA
|
||||
mov r6,_XPAGE
|
||||
mov _XPAGE,#((AX8052_RADIOBASE | FDATA) >> 8)
|
||||
mov r0,#(AX8052_RADIOBASE | FDATA)
|
||||
xdataloop$:
|
||||
movx a,@dptr
|
||||
movx @r0,a
|
||||
inc dptr
|
||||
djnz r7,xdataloop$
|
||||
mov _XPAGE,r6
|
||||
mov a,r5
|
||||
orl _IE,a
|
||||
ret
|
||||
codeptr$:
|
||||
mov a,#0x80
|
||||
anl a,_IE
|
||||
mov r5,a
|
||||
clr _EA
|
||||
mov r6,_XPAGE
|
||||
mov _XPAGE,#((AX8052_RADIOBASE | FDATA) >> 8)
|
||||
mov r0,#(AX8052_RADIOBASE | FDATA)
|
||||
codeloop$:
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
movx @r0,a
|
||||
inc dptr
|
||||
djnz r7,codeloop$
|
||||
mov _XPAGE,r6
|
||||
mov a,r5
|
||||
orl _IE,a
|
||||
ret
|
||||
__endasm;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
__reentrantb void radio_writefifo(const uint8_t __generic *ptr, uint8_t len) __reentrant
|
||||
{
|
||||
if (!len)
|
||||
return;
|
||||
do {
|
||||
*(uint8_t __xdata *)(AX8052_RADIOBASE | FDATA) = *ptr++;
|
||||
} while (--len);
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -1,51 +0,0 @@
|
||||
#include "libmfcrc.h"
|
||||
|
||||
#define crc_byte crc_crc16_byte
|
||||
#define crc_table crc_crc16_table
|
||||
#define crc_table_asm _crc_crc16_table
|
||||
|
||||
#if defined(SDCC)
|
||||
|
||||
__reentrantb uint16_t crc_byte(uint16_t crc, uint8_t c) __reentrant __naked
|
||||
{
|
||||
crc;
|
||||
c;
|
||||
__asm;
|
||||
mov a,sp
|
||||
add a,#-2
|
||||
mov r0,a
|
||||
mov a,@r0
|
||||
xrl a,dpl
|
||||
clr c
|
||||
rlc a
|
||||
mov r2,a
|
||||
clr a
|
||||
rlc a
|
||||
mov r3,a
|
||||
mov a,#crc_table_asm
|
||||
add a,r2
|
||||
mov dpl,a
|
||||
mov a,#(crc_table_asm >> 8)
|
||||
addc a,r3
|
||||
xch a,dph
|
||||
mov r2,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
xrl a,r2
|
||||
mov r2,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
mov dph,a
|
||||
mov dpl,r2
|
||||
ret
|
||||
__endasm;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
__reentrantb uint16_t crc_byte(uint16_t crc, uint8_t c) __reentrant
|
||||
{
|
||||
return (crc >> 8) ^ crc_table[((uint8_t)crc ^ c) & (uint8_t)0xff];
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -1,243 +0,0 @@
|
||||
#include "libmfcrc.h"
|
||||
|
||||
#define crc_buf crc_crc16
|
||||
#define crc_byte crc_crc16_byte
|
||||
#define crc_table_asm _crc_crc16_table
|
||||
#define CRCMSB 0
|
||||
|
||||
#if defined(SDCC)
|
||||
|
||||
__reentrantb uint16_t crc_buf(const uint8_t __generic *buf, uint16_t buflen, uint16_t crc) __reentrant __naked
|
||||
{
|
||||
buf;
|
||||
buflen;
|
||||
crc;
|
||||
__asm;
|
||||
mov a,sp
|
||||
add a,#-5
|
||||
mov r0,a
|
||||
mov a,@r0
|
||||
mov r4,a
|
||||
inc r0
|
||||
mov a,@r0
|
||||
mov r5,a
|
||||
inc r0
|
||||
mov a,@r0
|
||||
mov r2,a
|
||||
inc r0
|
||||
mov a,@r0
|
||||
mov r3,a
|
||||
orl a,r2
|
||||
jz 00001$
|
||||
mov a,r2
|
||||
jz 00000$
|
||||
inc r3
|
||||
00000$: jb _B_7,00010$ ; >0x80 code
|
||||
jnb _B_6,00020$ ; <0x40 far
|
||||
mov r0,dpl
|
||||
jb _B_5,00030$ ; >0x60 pdata
|
||||
;; idata
|
||||
00040$: mov a,@r0
|
||||
inc r0
|
||||
#if !CRCMSB
|
||||
;; lsb: crc = (crc >> 8) ^ crc_table[((uint8_t)crc ^ c) & (uint8_t)0xff]
|
||||
xrl a,r4
|
||||
rl a
|
||||
mov dpl,a
|
||||
anl a,#0xfe
|
||||
add a,#crc_table_asm
|
||||
xch a,dpl
|
||||
anl a,#0x01
|
||||
addc a,#(crc_table_asm >> 8)
|
||||
mov dph,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
xrl a,r5
|
||||
mov r4,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
mov r5,a
|
||||
#else
|
||||
;; msb: crc = (crc << 8) ^ crc_table[((uint8_t)(crc >> 8) ^ c) & (uint8_t)0xff]
|
||||
xrl a,r5
|
||||
rl a
|
||||
mov dpl,a
|
||||
anl a,#0xfe
|
||||
add a,#crc_table_asm
|
||||
xch a,dpl
|
||||
anl a,#0x01
|
||||
addc a,#(crc_table_asm >> 8)
|
||||
mov dph,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
xrl a,r4
|
||||
mov r5,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
mov r4,a
|
||||
#endif
|
||||
;; loop
|
||||
djnz r2,00040$
|
||||
djnz r3,00040$
|
||||
sjmp 00001$
|
||||
|
||||
00030$: movx a,@r0
|
||||
inc r0
|
||||
#if !CRCMSB
|
||||
;; lsb: crc = (crc >> 8) ^ crc_table[((uint8_t)crc ^ c) & (uint8_t)0xff]
|
||||
xrl a,r4
|
||||
rl a
|
||||
mov dpl,a
|
||||
anl a,#0xfe
|
||||
add a,#crc_table_asm
|
||||
xch a,dpl
|
||||
anl a,#0x01
|
||||
addc a,#(crc_table_asm >> 8)
|
||||
mov dph,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
xrl a,r5
|
||||
mov r4,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
mov r5,a
|
||||
#else
|
||||
;; msb: crc = (crc << 8) ^ crc_table[((uint8_t)(crc >> 8) ^ c) & (uint8_t)0xff]
|
||||
xrl a,r5
|
||||
rl a
|
||||
mov dpl,a
|
||||
anl a,#0xfe
|
||||
add a,#crc_table_asm
|
||||
xch a,dpl
|
||||
anl a,#0x01
|
||||
addc a,#(crc_table_asm >> 8)
|
||||
mov dph,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
xrl a,r4
|
||||
mov r5,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
mov r4,a
|
||||
#endif
|
||||
;; loop
|
||||
djnz r2,00030$
|
||||
djnz r3,00030$
|
||||
|
||||
00001$:
|
||||
mov dpl,r4
|
||||
mov dph,r5
|
||||
ret
|
||||
|
||||
00020$: movx a,@dptr
|
||||
inc dptr
|
||||
mov r0,dpl
|
||||
mov r1,dph
|
||||
#if !CRCMSB
|
||||
;; lsb: crc = (crc >> 8) ^ crc_table[((uint8_t)crc ^ c) & (uint8_t)0xff]
|
||||
xrl a,r4
|
||||
rl a
|
||||
mov dpl,a
|
||||
anl a,#0xfe
|
||||
add a,#crc_table_asm
|
||||
xch a,dpl
|
||||
anl a,#0x01
|
||||
addc a,#(crc_table_asm >> 8)
|
||||
mov dph,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
xrl a,r5
|
||||
mov r4,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
mov r5,a
|
||||
#else
|
||||
;; msb: crc = (crc << 8) ^ crc_table[((uint8_t)(crc >> 8) ^ c) & (uint8_t)0xff]
|
||||
xrl a,r5
|
||||
rl a
|
||||
mov dpl,a
|
||||
anl a,#0xfe
|
||||
add a,#crc_table_asm
|
||||
xch a,dpl
|
||||
anl a,#0x01
|
||||
addc a,#(crc_table_asm >> 8)
|
||||
mov dph,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
xrl a,r4
|
||||
mov r5,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
mov r4,a
|
||||
#endif
|
||||
;; loop
|
||||
mov dph,r1
|
||||
mov dpl,r0
|
||||
djnz r2,00020$
|
||||
djnz r3,00020$
|
||||
sjmp 00001$
|
||||
|
||||
00010$: clr a
|
||||
movc a,@a+dptr
|
||||
inc dptr
|
||||
mov r0,dpl
|
||||
mov r1,dph
|
||||
#if !CRCMSB
|
||||
;; lsb: crc = (crc >> 8) ^ crc_table[((uint8_t)crc ^ c) & (uint8_t)0xff]
|
||||
xrl a,r4
|
||||
rl a
|
||||
mov dpl,a
|
||||
anl a,#0xfe
|
||||
add a,#crc_table_asm
|
||||
xch a,dpl
|
||||
anl a,#0x01
|
||||
addc a,#(crc_table_asm >> 8)
|
||||
mov dph,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
xrl a,r5
|
||||
mov r4,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
mov r5,a
|
||||
#else
|
||||
;; msb: crc = (crc << 8) ^ crc_table[((uint8_t)(crc >> 8) ^ c) & (uint8_t)0xff]
|
||||
xrl a,r5
|
||||
rl a
|
||||
mov dpl,a
|
||||
anl a,#0xfe
|
||||
add a,#crc_table_asm
|
||||
xch a,dpl
|
||||
anl a,#0x01
|
||||
addc a,#(crc_table_asm >> 8)
|
||||
mov dph,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
xrl a,r4
|
||||
mov r5,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
mov r4,a
|
||||
#endif
|
||||
;; loop
|
||||
mov dph,r1
|
||||
mov dpl,r0
|
||||
djnz r2,00010$
|
||||
djnz r3,00010$
|
||||
sjmp 00001$
|
||||
__endasm;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
__reentrantb uint16_t crc_buf(const uint8_t __generic *buf, uint16_t buflen, uint16_t crc) __reentrant
|
||||
{
|
||||
if (!buflen)
|
||||
return crc;
|
||||
do {
|
||||
crc = crc_byte(crc, *buf++);
|
||||
} while (--buflen);
|
||||
return crc;
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -1,51 +0,0 @@
|
||||
#include "libmfcrc.h"
|
||||
|
||||
#define crc_msb_byte crc_crc16_msb_byte
|
||||
#define crc_msbtable crc_crc16_msbtable
|
||||
#define crc_msbtable_asm _crc_crc16_msbtable
|
||||
|
||||
#if defined(SDCC)
|
||||
|
||||
__reentrantb uint16_t crc_msb_byte(uint16_t crc, uint8_t c) __reentrant __naked
|
||||
{
|
||||
crc;
|
||||
c;
|
||||
__asm;
|
||||
mov a,sp
|
||||
add a,#-2
|
||||
mov r0,a
|
||||
mov a,@r0
|
||||
xrl a,dph
|
||||
clr c
|
||||
rlc a
|
||||
mov r2,a
|
||||
clr a
|
||||
rlc a
|
||||
mov r3,a
|
||||
mov a,#crc_msbtable_asm
|
||||
add a,r2
|
||||
xch a,dpl
|
||||
mov r2,a
|
||||
mov a,#(crc_msbtable_asm >> 8)
|
||||
addc a,r3
|
||||
mov dph,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
xrl a,r2
|
||||
mov r2,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
mov dpl,a
|
||||
mov dph,r2
|
||||
ret
|
||||
__endasm;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
__reentrantb uint16_t crc_msb_byte(uint16_t crc, uint8_t c) __reentrant
|
||||
{
|
||||
return (crc << 8) ^ crc_msbtable[((uint8_t)(crc >> 8) ^ c) & (uint8_t)0xff];
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -1,243 +0,0 @@
|
||||
#include "libmfcrc.h"
|
||||
|
||||
#define crc_buf crc_crc16_msb
|
||||
#define crc_byte crc_crc16_msb_byte
|
||||
#define crc_table_asm _crc_crc16_msbtable
|
||||
#define CRCMSB 1
|
||||
|
||||
#if defined(SDCC)
|
||||
|
||||
__reentrantb uint16_t crc_buf(const uint8_t __generic *buf, uint16_t buflen, uint16_t crc) __reentrant __naked
|
||||
{
|
||||
buf;
|
||||
buflen;
|
||||
crc;
|
||||
__asm;
|
||||
mov a,sp
|
||||
add a,#-5
|
||||
mov r0,a
|
||||
mov a,@r0
|
||||
mov r4,a
|
||||
inc r0
|
||||
mov a,@r0
|
||||
mov r5,a
|
||||
inc r0
|
||||
mov a,@r0
|
||||
mov r2,a
|
||||
inc r0
|
||||
mov a,@r0
|
||||
mov r3,a
|
||||
orl a,r2
|
||||
jz 00001$
|
||||
mov a,r2
|
||||
jz 00000$
|
||||
inc r3
|
||||
00000$: jb _B_7,00010$ ; >0x80 code
|
||||
jnb _B_6,00020$ ; <0x40 far
|
||||
mov r0,dpl
|
||||
jb _B_5,00030$ ; >0x60 pdata
|
||||
;; idata
|
||||
00040$: mov a,@r0
|
||||
inc r0
|
||||
#if !CRCMSB
|
||||
;; lsb: crc = (crc >> 8) ^ crc_table[((uint8_t)crc ^ c) & (uint8_t)0xff]
|
||||
xrl a,r4
|
||||
rl a
|
||||
mov dpl,a
|
||||
anl a,#0xfe
|
||||
add a,#crc_table_asm
|
||||
xch a,dpl
|
||||
anl a,#0x01
|
||||
addc a,#(crc_table_asm >> 8)
|
||||
mov dph,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
xrl a,r5
|
||||
mov r4,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
mov r5,a
|
||||
#else
|
||||
;; msb: crc = (crc << 8) ^ crc_table[((uint8_t)(crc >> 8) ^ c) & (uint8_t)0xff]
|
||||
xrl a,r5
|
||||
rl a
|
||||
mov dpl,a
|
||||
anl a,#0xfe
|
||||
add a,#crc_table_asm
|
||||
xch a,dpl
|
||||
anl a,#0x01
|
||||
addc a,#(crc_table_asm >> 8)
|
||||
mov dph,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
xrl a,r4
|
||||
mov r5,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
mov r4,a
|
||||
#endif
|
||||
;; loop
|
||||
djnz r2,00040$
|
||||
djnz r3,00040$
|
||||
sjmp 00001$
|
||||
|
||||
00030$: movx a,@r0
|
||||
inc r0
|
||||
#if !CRCMSB
|
||||
;; lsb: crc = (crc >> 8) ^ crc_table[((uint8_t)crc ^ c) & (uint8_t)0xff]
|
||||
xrl a,r4
|
||||
rl a
|
||||
mov dpl,a
|
||||
anl a,#0xfe
|
||||
add a,#crc_table_asm
|
||||
xch a,dpl
|
||||
anl a,#0x01
|
||||
addc a,#(crc_table_asm >> 8)
|
||||
mov dph,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
xrl a,r5
|
||||
mov r4,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
mov r5,a
|
||||
#else
|
||||
;; msb: crc = (crc << 8) ^ crc_table[((uint8_t)(crc >> 8) ^ c) & (uint8_t)0xff]
|
||||
xrl a,r5
|
||||
rl a
|
||||
mov dpl,a
|
||||
anl a,#0xfe
|
||||
add a,#crc_table_asm
|
||||
xch a,dpl
|
||||
anl a,#0x01
|
||||
addc a,#(crc_table_asm >> 8)
|
||||
mov dph,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
xrl a,r4
|
||||
mov r5,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
mov r4,a
|
||||
#endif
|
||||
;; loop
|
||||
djnz r2,00030$
|
||||
djnz r3,00030$
|
||||
|
||||
00001$:
|
||||
mov dpl,r4
|
||||
mov dph,r5
|
||||
ret
|
||||
|
||||
00020$: movx a,@dptr
|
||||
inc dptr
|
||||
mov r0,dpl
|
||||
mov r1,dph
|
||||
#if !CRCMSB
|
||||
;; lsb: crc = (crc >> 8) ^ crc_table[((uint8_t)crc ^ c) & (uint8_t)0xff]
|
||||
xrl a,r4
|
||||
rl a
|
||||
mov dpl,a
|
||||
anl a,#0xfe
|
||||
add a,#crc_table_asm
|
||||
xch a,dpl
|
||||
anl a,#0x01
|
||||
addc a,#(crc_table_asm >> 8)
|
||||
mov dph,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
xrl a,r5
|
||||
mov r4,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
mov r5,a
|
||||
#else
|
||||
;; msb: crc = (crc << 8) ^ crc_table[((uint8_t)(crc >> 8) ^ c) & (uint8_t)0xff]
|
||||
xrl a,r5
|
||||
rl a
|
||||
mov dpl,a
|
||||
anl a,#0xfe
|
||||
add a,#crc_table_asm
|
||||
xch a,dpl
|
||||
anl a,#0x01
|
||||
addc a,#(crc_table_asm >> 8)
|
||||
mov dph,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
xrl a,r4
|
||||
mov r5,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
mov r4,a
|
||||
#endif
|
||||
;; loop
|
||||
mov dph,r1
|
||||
mov dpl,r0
|
||||
djnz r2,00020$
|
||||
djnz r3,00020$
|
||||
sjmp 00001$
|
||||
|
||||
00010$: clr a
|
||||
movc a,@a+dptr
|
||||
inc dptr
|
||||
mov r0,dpl
|
||||
mov r1,dph
|
||||
#if !CRCMSB
|
||||
;; lsb: crc = (crc >> 8) ^ crc_table[((uint8_t)crc ^ c) & (uint8_t)0xff]
|
||||
xrl a,r4
|
||||
rl a
|
||||
mov dpl,a
|
||||
anl a,#0xfe
|
||||
add a,#crc_table_asm
|
||||
xch a,dpl
|
||||
anl a,#0x01
|
||||
addc a,#(crc_table_asm >> 8)
|
||||
mov dph,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
xrl a,r5
|
||||
mov r4,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
mov r5,a
|
||||
#else
|
||||
;; msb: crc = (crc << 8) ^ crc_table[((uint8_t)(crc >> 8) ^ c) & (uint8_t)0xff]
|
||||
xrl a,r5
|
||||
rl a
|
||||
mov dpl,a
|
||||
anl a,#0xfe
|
||||
add a,#crc_table_asm
|
||||
xch a,dpl
|
||||
anl a,#0x01
|
||||
addc a,#(crc_table_asm >> 8)
|
||||
mov dph,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
xrl a,r4
|
||||
mov r5,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
mov r4,a
|
||||
#endif
|
||||
;; loop
|
||||
mov dph,r1
|
||||
mov dpl,r0
|
||||
djnz r2,00010$
|
||||
djnz r3,00010$
|
||||
sjmp 00001$
|
||||
__endasm;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
__reentrantb uint16_t crc_buf(const uint8_t __generic *buf, uint16_t buflen, uint16_t crc) __reentrant
|
||||
{
|
||||
if (!buflen)
|
||||
return crc;
|
||||
do {
|
||||
crc = crc_byte(crc, *buf++);
|
||||
} while (--buflen);
|
||||
return crc;
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -1,51 +0,0 @@
|
||||
#include "libmfcrc.h"
|
||||
|
||||
#define crc_byte crc_crc16dnp_byte
|
||||
#define crc_table crc_crc16dnp_table
|
||||
#define crc_table_asm _crc_crc16dnp_table
|
||||
|
||||
#if defined(SDCC)
|
||||
|
||||
__reentrantb uint16_t crc_byte(uint16_t crc, uint8_t c) __reentrant __naked
|
||||
{
|
||||
crc;
|
||||
c;
|
||||
__asm;
|
||||
mov a,sp
|
||||
add a,#-2
|
||||
mov r0,a
|
||||
mov a,@r0
|
||||
xrl a,dpl
|
||||
clr c
|
||||
rlc a
|
||||
mov r2,a
|
||||
clr a
|
||||
rlc a
|
||||
mov r3,a
|
||||
mov a,#crc_table_asm
|
||||
add a,r2
|
||||
mov dpl,a
|
||||
mov a,#(crc_table_asm >> 8)
|
||||
addc a,r3
|
||||
xch a,dph
|
||||
mov r2,a
|
||||
clr a
|
||||
movc a,@a+dptr
|
||||
xrl a,r2
|
||||
mov r2,a
|
||||
mov a,#1
|
||||
movc a,@a+dptr
|
||||
mov dph,a
|
||||
mov dpl,r2
|
||||
ret
|
||||
__endasm;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
__reentrantb uint16_t crc_byte(uint16_t crc, uint8_t c) __reentrant
|
||||
{
|
||||
return (crc >> 8) ^ crc_table[((uint8_t)crc ^ c) & (uint8_t)0xff];
|
||||
}
|
||||
|
||||
#endif
|
||||