• 大小: 195KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-14
  • 语言: 其他
  • 标签: cc1110  

资源简介

可以编译cc1110的TDMA的功能 经过验证了

资源截图

代码片段和文件信息

/******************************************************************************
*                                                                             *
*        **********                                                           *
*       ************                                                          *
*      ***        ***                                                         *
*     ***    ++    ***                                                        *
*     ***   +  +   ***                      CHIPCON                           *
*     ***   +                                                                 *
*     ***   +  +   ***                                                        *
*     ***    ++    ***                                                        *
*      ***        ***                                                         *
*       ************                                                          *
*        **********                                                           *
*                                                                             *
*******************************************************************************

Filename:     adc.c
Target:       cc2510
Author:       KJA
Revised:      20/6-2006
Revision:     1.0

Description:
    This application shows how to use the AD-converter (single sample mode).

    When the potmeter at the Evaluation Board is turned the output voltage is
    sampled converted and written to LCD. The blinking speed of the green and
    yellow LEDs is adjusted according to the voltage.
    The direction of the joystick is shown on the LCD.

******************************************************************************/
#include “app_ex.h“

// Prototypes
void initAdc(void);
void adc_main(void);
void updateVoltageLCD(INT8 potVoltage INT8 adc_value);
void updateJoystickDirectionLCD(JOYSTICK_DIRECTION direction);
void updateCounter(INT8 delay);
INT8 scaleValue(INT8 adc_value);


/******************************************************************************
* @fn  initAdc
*
* @brief
*      Initializes components for use with the ADC application example (e.g.
*      LEDs PotMeter Joystick).
*
* Parameters:
*
* @param  void
*
* @return void
*
******************************************************************************/
void initAdc(void)
{
   initLcd();

   SET_MAIN_CLOCK_SOURCE(CRYSTAL);

   //init LEDs
   INIT_GLED();
   INIT_YLED();

   INIT_POT();
   INIT_JOYSTICK();
}


/******************************************************************************
* @fn  adc_main
*
* @brief
*      Main function of the ADC application example.
*
* Parameters:
*
* @param  void
*
* @return void
*
******************************************************************************/
#ifdef COMPLETE_APPLICATION
void adc_main(void){
#else
void main(void){
#endif
   JOYSTICK_DIRECTION joysti

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       4387  2007-10-17 15:02  CC1110-TDMA\App_Ex\cc1110\Configuration\smpl_config.dat

     文件       2884  2007-12-18 15:59  CC1110-TDMA\App_Ex\cc1110\Configuration\smpl_nwk_config.dat

     文件      76490  2008-01-29 14:28  CC1110-TDMA\App_Ex\cc1110\IAR_files\CC1110_RF.dep

     文件      32520  2007-12-14 17:01  CC1110-TDMA\App_Ex\cc1110\IAR_files\CC1110_RF.ewd

     文件      85883  2008-01-29 14:28  CC1110-TDMA\App_Ex\cc1110\IAR_files\CC1110_RF.ewp

     文件        163  2007-11-12 13:31  CC1110-TDMA\App_Ex\cc1110\IAR_files\CC1110_RF.eww

     文件       5037  2007-11-12 11:58  CC1110-TDMA\App_Ex\cc1110\IAR_files\settings\appEx_cc2510.dbgdt

     文件        324  2007-11-12 11:58  CC1110-TDMA\App_Ex\cc1110\IAR_files\settings\appEx_cc2510.dni

     文件       4831  2008-01-29 14:28  CC1110-TDMA\App_Ex\cc1110\IAR_files\settings\CC1110_RF.dbgdt

     文件        336  2008-01-29 14:28  CC1110-TDMA\App_Ex\cc1110\IAR_files\settings\CC1110_RF.dni

     文件       3167  2008-01-29 14:28  CC1110-TDMA\App_Ex\cc1110\IAR_files\settings\CC1110_RF.wsdt

     文件       3100  2007-11-12 11:58  CC1110-TDMA\App_Ex\cc1110\IAR_files\settings\workspace_cc2510.wsdt

     文件       2437  2006-06-20 09:31  CC1110-TDMA\App_Ex\cc1110\include\app_ex.h

     文件       2656  2007-10-24 16:02  CC1110-TDMA\App_Ex\cc1110\include\app_ex_main.h

     文件       1845  2006-06-20 09:31  CC1110-TDMA\App_Ex\cc1110\include\app_ex_util.h

     文件      18801  2007-11-10 14:26  CC1110-TDMA\App_Ex\cc1110\include\config.h

     文件        262  2006-04-29 15:30  CC1110-TDMA\App_Ex\cc1110\include\Font.h

     文件        919  2006-10-12 13:47  CC1110-TDMA\App_Ex\cc1110\include\lcd128_64.h

     文件        357  2007-10-15 16:21  CC1110-TDMA\App_Ex\cc1110\include\menu.h

     文件       1915  2006-06-20 09:31  CC1110-TDMA\App_Ex\cc1110\include\pingPong.h

     文件         78  2007-11-11 15:53  CC1110-TDMA\App_Ex\cc1110\include\rfconfig.h

     文件        555  2007-11-06 13:35  CC1110-TDMA\App_Ex\cc1110\include\type.h

     文件       1353  2007-11-10 14:29  CC1110-TDMA\App_Ex\cc1110\include\Uart.h

     文件       7115  2006-06-20 09:31  CC1110-TDMA\App_Ex\cc1110\source\adc.c

     文件       7866  2006-06-20 09:31  CC1110-TDMA\App_Ex\cc1110\source\adcSeries.c

     文件       9357  2006-06-20 09:31  CC1110-TDMA\App_Ex\cc1110\source\aes.c

     文件       4207  2006-06-20 09:31  CC1110-TDMA\App_Ex\cc1110\source\app_ex_interrupt.c

     文件       4186  2008-01-18 10:07  CC1110-TDMA\App_Ex\cc1110\source\app_ex_main.c

     文件       4538  2006-06-20 09:31  CC1110-TDMA\App_Ex\cc1110\source\clockmodes.c

     文件       5668  2006-06-20 09:31  CC1110-TDMA\App_Ex\cc1110\source\dma.c

............此处省略140个文件信息

评论

共有 条评论

相关资源