主题:C2000WARE 中讨论的其他器件
工具/软件:
尊敬的专家:
我注意到 在将工程从 SDK c2000ware 修订版3.4移植 到 c2000ware 修订版4.0过程中、f2838x_epwm_defines.h 驱动程序文件存在一些差异。
下面就是这些差异。

具体而言、我注意到新版本中删除了一些定义
您能解释一下这一选择背后的原因吗?
因为我配置了所涉及寄存器的位域、所以在我的工程中有必要使用这些定义。
正在等待您的反馈
此致、
贝尼托
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:
尊敬的专家:
我注意到 在将工程从 SDK c2000ware 修订版3.4移植 到 c2000ware 修订版4.0过程中、f2838x_epwm_defines.h 驱动程序文件存在一些差异。
下面就是这些差异。

具体而言、我注意到新版本中删除了一些定义
您能解释一下这一选择背后的原因吗?
因为我配置了所涉及寄存器的位域、所以在我的工程中有必要使用这些定义。
正在等待您的反馈
此致、
贝尼托
这些宏存在于 C2000Ware v3.04.00.00中
//########################################################################### // // FILE: f2838x_epwm_defines.h // // TITLE: #defines used in EPwm examples // //########################################################################### // $TI Release: F2838x Support Library v3.04.00.00 $ // $Release Date: Fri Feb 12 19:08:49 IST 2021 $ // $Copyright: // Copyright (C) 2021 Texas Instruments Incorporated - http://www.ti.com/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // // Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the // distribution. // // Neither the name of Texas Instruments Incorporated nor the names of // its contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // $ //##########################################################################
谢谢
贝尼托