|
1:接上仿真器,并把仿真電纜連到CC2430模塊上,把程序下載到兩個(gè)模塊上。
2:兩個(gè)模塊之間通過(guò)PC機(jī)串口發(fā)送一個(gè)字符到另一個(gè)模塊的PC。
說(shuō)明:
1:打開(kāi)IAR開(kāi)發(fā)環(huán)境,打開(kāi)光盤(pán)里程序工程。
2:接上仿真器,并把仿真電纜連到CC2430模塊上,把程序下載到兩個(gè)模塊上。
3:兩個(gè)模塊之間通過(guò)PC機(jī)串口發(fā)送一個(gè)字符到另一個(gè)模塊的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
*/
0.png (39.22 KB, 下載次數(shù): 46)
下載附件
2018-3-17 16:04 上傳
全部資料51hei下載地址:
電腦串口發(fā)送顯示點(diǎn)對(duì)點(diǎn)無(wú)線通信_(tái)uart.zip
(285.6 KB, 下載次數(shù): 9)
2018-3-17 10:33 上傳
點(diǎn)擊文件名下載附件
下載積分: 黑幣 -5
|
|