Application file - main.c
#include "EO3100I_API.h"
#include "EO3100I_CFG.h"
code uint8 VERSION_APP[] = {0xE0,'V','E','R','S','I','O','N',1,0,1,0,'A','S','T','A','N','D','B','Y',0x00,0xE0};
#define TX_WAKESRC
void CallbackFN()
{
}
void CallbackVddFailFN()
{
}
void main()
{
uint8 u8Wake=0;
uint8 pu8No=0;
uint8 u8Blink=0;
mainInit();
rTel2.raw.
bytes[5] = 0x00;
while(1)
{
u8Res=0;
#ifdef TIMER0_WAKESRC
#else
#endif
#ifdef PIN_RX_WAKESRC
u8Blink=0;
switch (u8Res)
{
}
for (i=0; i<u8Blink; i++)
{
}
#endif
#ifdef TX_WAKESRC
switch (u8Res)
{
do
while(pu8No);
break;
break;
break;
}
#endif
#ifdef PWRFAIL_WAKESRC
#endif
#ifdef TIMER0_WAKESRC
#endif
}
}
Config file - EO3100I_CFG.h
#ifndef _EO3100I_CFG_H_INCLUDED
#define _EO3100I_CFG_H_INCLUDED
void startupInit();
void mainInit();
#define RADIO_BUFF_NUM 10
#define RADIO_MATURITY_TIME 100
#define FILTER_NUM 1
extern volatile uint32 xdata u32gFilterValue[FILTER_NUM];
extern volatile uint8 xdata u8gFilterCfg[FILTER_NUM];
extern uint16 timer1_param[];
extern uint8 code io_param[];
#endif //_EO3100I_CFG_H_INCLUDED
Config file - EO3100I_CFG.c
#include "EO3100I_API.h"
#include "EO3100I_CFG.h"
void startupInit()
{
}
void mainInit()
{
}
volatile uint32 xdata u32gFilterValue[FILTER_NUM];
volatile uint8 xdata u8gFilterCfg[FILTER_NUM];
uint16 timer1_param[] = {
0x0040,
0x0000,
0x0040,
0x0000
};
uint8 code io_param[] = {
0x07,
0x00,
0x0F,
0x00,
0x00,
0x00,
0x00,
0x43,
0x80,
0x7F,
0x0C,
0x00,
0x00,
0x00,
0x00,
};