tuner_rh_init.c
来自「模拟高频头的 驱动程序(搜台、换台等功能)」· C语言 代码 · 共 90 行
C
90 行
/******************************************************************************/
/**
* @file tuner_rh_init.c
*
* @brief Tuner Init Tables for hardware registers.
* Updated by Register Handler.
*
* @note (c) 2005 - 2008 Micronas GmbH. All rights reserved.
* Any use of the Software is permitted only in accordance
* with the terms set forth in the Disclaimer text file.
*
* @author ACOM software team
******************************************************************************/
/******************************************************************************/
/**
* DEFINES:
******************************************************************************/
/******************************************************************************/
/**
* INCLUDE FUNCTIONS:
******************************************************************************/
#include <system.h>
#include "tuner_rh_reg.h"
#include "tuner_rh_init.h"
/******************************************************************************/
/***************** ******************/
/***************** BEGIN of Register Handler Section ******************/
/***************** ================================= ******************/
/***************** ******************/
/******************************************************************************/
/*[#RH_SECTION_BEGIN]*/
/*====================================================================================================================*/
/*[#RHOC_INIT - TunerBase] Ver. 3.1.19 */
/* Table Entries */
#ifdef __PHI__
code TUNERBASE_t tunerBase [] =
{
/* Data, Addr, Ctrl */
/*===== TunerBase =====*/
{ 0x05, (uint8_t)TUNER_ProgDividerByte1Const, 1 | TUNERBASE_UCTRL_BITSID },
{ 0x72, (uint8_t)TUNER_ProgDividerByte2_7_0, 1 | TUNERBASE_UCTRL_BITSID },
{ 0x8E, (uint8_t)TUNER_ControlByte1Const, 1 | TUNERBASE_UCTRL_BITSID },
{ 0x01, (uint8_t)TUNER_ControlByte2NotUsed, 1 | TUNERBASE_UCTRL_BITSID }
};
#else
code TUNERBASE_t tunerBase [] =
{
/* Data, Addr, Ctrl */
/*===== TunerBase =====*/
{ 0x05, (uint8_t)TUNER_ProgDividerByte1Const, 1 | TUNERBASE_UCTRL_BITSID },
{ 0x72, (uint8_t)TUNER_ProgDividerByte2_7_0, 1 | TUNERBASE_UCTRL_BITSID },
#ifdef __AD_TUNER_ALPS__
{ 0x8B, (uint8_t)TUNER_ControlByte1Const, 1 | TUNERBASE_UCTRL_BITSID },
{ 0x01, (uint8_t)TUNER_ControlByte2NotUsed, 1 | TUNERBASE_UCTRL_BITSID },
{ 0xC6, (uint8_t)TUNER_ControlByte3NotUsed, 1 | TUNERBASE_UCTRL_BITSID }
#else
{ 0xCE, (uint8_t)TUNER_ControlByte1Const, 1 | TUNERBASE_UCTRL_BITSID },
{ 0x01, (uint8_t)TUNER_ControlByte2NotUsed, 1 | TUNERBASE_UCTRL_BITSID }
#endif
};
#endif
/*[#RH_END]*/
/*====================================================================================================================*/
/*[#RH_SECTION_END]*/
/******************************************************************************/
/***************** ********************/
/***************** END of Register Handler Section ********************/
/***************** =============================== ********************/
/***************** ********************/
/******************************************************************************/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?