English
Language : 

SDBC-DK3UG Datasheet, PDF (48/76 Pages) Silicon Laboratories – 4 buttons and 4 LEDs for custom purposes
SDBC-DK3 UG
9.2. Main Source File
/************************************************************************************
*
*
FILE --- MAIN.C
*
*
DESCRIPTION
*
This is the main file of the project.
*
*
CREATED
*
Silicon Laboratories Hungary Ltd
*
*
COPYRIGHT
*
Copyright 2008 Silicon Laboratories, Inc.
*
http://www.silabs.com
*
*************************************************************************************/
/*-------------------------------------------------------------------------------------
INCLUDE
-------------------------------------------------------------------------------------*/
#include "C8051.h"
#include "Si4432.h"
/*--------------------------------------------------------------------------------------
FUNCTION PROTOTYPES
-------------------------------------------------------------------------------------*/
void Hw_Init(void);
void delay_ms(uint8 delay);
/* The real program starts here.
*/
/* After power-on, the first two tasks are the init of the MCU and the software development board. */
/* The main loop starts after that. While (1) means that it is a never ending loop.
*/
/*-------------------------------------------------------------------------------------
MAIN PROGRAM
-------------------------------------------------------------------------------------*/
void main (void)
{
idata uint8 packet[MAX_PAYLOAD_LENGTH];
idata uint8 length;
Hw_Init();
RfInitHw(DR4800BPS_DEV45KHZ);
RFIdle();
RFReceive();
// initialize the MCU and the SW Development board
// initialize the Si4432
// set the radio into IDLE state
// start continuous receive
48
Rev. 0.4