csl_i2cinit.c

来自「TI达芬奇dm644x各硬件模块测试代码」· C语言 代码 · 共 81 行

C
81
字号
/*  ============================================================================ *   Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005 * *   Use of this software is controlled by the terms and conditions found in the *   license agreement under which this software has been supplied. *   =========================================================================== *//** @file csl_i2cInit.c * *  @brief    File for functional layer of CSL API @a CSL_i2cInit() * *  Description *    - The @a CSL_i2cInit() function definition & it's associated functions * *  PATH  \\(CSLPATH)\\ipmodules\\i2c\\src * *  Modification 1 *    - Modified on: 28/5/2004 *    - Reason: created the sources * *  Date 28th May, 2004 *  Author Santosh Narayanan. *//* ============================================================================= *  Revision History *  =============== *  11-oct-2004 Hs updated code according to code review comments. *  31-aug-2004 Hs Updated the function and documentation for CSL_i2cInit. * ============================================================================= */#include <csl_i2c.h>/** ============================================================================ *   @n@b CSL_i2cInit * *   @b Description *   @n This is the initialization function for the I2C. This function is *      idempotent in that calling it many times is same as calling it once. *      This function initializes the CSL data structures, and doesn't affect *      the H/W. * *   @b Arguments     @verbatim            pContext   Context information for the instance. Should be NULL     @endverbatim * *   <b> Return Value </b>  CSL_Status *   @li                    CSL_SOK - Always returns * *   <b> Pre Condition </b> *   @n  None * *   <b> Post Condition </b> *   @n  None * *   @b Modifies *   @n  None * *   @b Example *   @verbatim     ...     if (CSL_sysInit() == CSL_SOK) {        CSL_i2cInit();     }     @endverbatim *  ============================================================================ */#pragma CODE_SECTION (CSL_i2cInit, ".text:csl_section:i2c");CSL_Status CSL_i2cInit (    CSL_I2cContext       *pContext){    /* Added according to review comment 1. */    pContext = pContext; /* To remove compiler warning/remarks */    return CSL_SOK;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?