1:接上仿真器,并把仿真電纜連到CC2430模塊上,把程序下載到兩個模塊上。
2:兩個模塊之間通過PC機串口發(fā)送一個字符到另一個模塊的PC。
說明:
1:打開IAR開發(fā)環(huán)境,打開光盤里程序工程。
2:接上仿真器,并把仿真電纜連到CC2430模塊上,把程序下載到兩個模塊上。
3:兩個模塊之間通過PC機串口發(fā)送一個字符到另一個模塊的PC。
TEST
TEST
附主程序:
Revised: 16/12
Revision: 1.0
Description:
This file is the header file for the complete application with the menu system.
******************************************************************************/
// when defined each of the sub application is "mounted" in the system.
#ifndef APP_EX_MAIN_H
#define APP_EX_MAIN_H
#include "hal.h"
// ID for each of the sub application
enum app {RF_TEST, ADC_CONV, ADC_SERIES, STOP_WATCH, UART, CLOCKMODES,
RANDOM, AES, FLASH, DMA, POWER, TIMER_INT, EXTERNAL_INT};
#define NBR_OF_APPS 13
typedef struct APP_S{
char *menuText;
char *description;
void (*main_func)(void);
void (*interrupts[NBR_OF_INTERRUPTS])(void);
} APPLICATION;
// Prototypes
void initAppEx(void);
void updateMenu(void);
BOOL waitForInput(void);
void startApplication(void);
BOOL stopApplication(void);
void haltApplication(void);
void haltApplicationWithLED(void);
void showLogo(void);
UINT8 lcdMenu(char *text[], const UINT8 n);
void dummyInterrupt(void);
//新加的
void rf_test_main(void);
void initRfTest(void);
#endif
/*
Template for application init.
#ifdef COMPLETE_APPLICATION
void int_ext_init(APPLICATION *a){
a->menuText = "Menu text";
a->description = "Descriptin";
a->main_func = app_main;
a->interrupts[INUM_x] = x_IRQ;
}
#endif
*/
全部資料51hei下載地址:
電腦串口發(fā)送顯示點對點無線通信_uart.zip
(285.6 KB, 下載次數(shù): 9)
2018-3-17 10:33 上傳
點擊文件名下載附件
|