亲爱的OpthuSukes和图腾非常感谢你的快速和极好的建议。我理解“file”命令。& & & gt;“Add”:将内容添加到一个列表中,在需要向任何文件添加一些内容时,大部分都是需要的。我有一个关于“Add”命令的问题。我在“C:Microchip HealthV2Y03BFrasegfxCONFIGGFX.HCOFIGG”中遇到了Bel-Add命令。Nb除以“/Frrase/GFx/COFIG/GFXII..C.FTL ”;“//初始化GFX硬件抽象层GFXIIALLIALIZE();在下面的GFXIIN .C.FTL中。但是我不能很清楚地找到“ClaseStimeSuthOnITyCySysSimulalIZEIZION驱动程序”。芯片和声 V2Y03B实用程序 MHC模板AppStaseSCOFIGStReSy.In.C.FTL“如果ListSyStaseSuthIntCySysSimialIsIZEL驱动程序是什么?”HasyClult& Gt&L.@ MHCLExpand清单列表= ListSythSooSynIncCySysIrimalIZIZEL驱动程序/GT;“list SythOnthInthCySysIrasialZeIsAuthJuffic”是上面的意思。还是其他地方存在一个列表?下面是SysLo.I.C.FTL。任何建议都会让人满意。
以上来自于百度翻译
以下为原文
Dear optimus_jack and Totem
Thank you very much for quick and excellent advise. I understand "file" command well.
>>"add" : Adds content to a list, mostly needed when you need to add some content to any file.
I have one questions concerning "add" command.
I encountered bellow add command in "C:microchipharmonyv2_03bframeworkgfxconfiggfx.hconfig".
...
...
ifblock USE_GFX_STACK
add "<#include "/framework/gfx/config/gfx_init.c.ftl">" to list SYSTEM_INIT_C_SYS_INITIALIZE_DRIVERS
...
...
It seems that "<#include "/framework/gfx/config/gfx_init.c.ftl">" means
// initialize the GFX hardware abstraction layer
GFX_Initialize();
in below gfx_init.c.ftl.
<#--
/*******************************************************************************
GFX HGC Initialization File
File Name:
gfx_hgc_init.c
Summary:
This file contains source code necessary to initialize the system.
Description:
This file contains source code necessary to initialize the system. It
implements the "SYS_Initialize" function, configuration bits, and allocates
any necessary global system resources, such as the systemObjects structure
that contains the object handles to all the MPLAB Harmony module objects in
the system.
*******************************************************************************/
/*******************************************************************************
Copyright (c) 2013-2014 released Microchip Technology Inc. All rights reserved.
Microchip licenses to you the right to use, modify, copy and distribute
Software only when embedded on a Microchip microcontroller or digital signal
controller that is integrated into your product or third party product
(pursuant to the sublicense terms in the accompanying license agreement).
You should refer to the license agreement accompanying this Software for
additional information regarding your rights and obligations.
SOFTWARE AND DOCUMENTATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
(INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
*******************************************************************************/
-->
// initialize the GFX hardware abstraction layer
GFX_Initialize();
<#--
/*******************************************************************************
End of File
*/
-->
But I cannot find clearly "list SYSTEM_INIT_C_SYS_INITIALIZE_DRIVERS".
I found something like "list SYSTEM_INIT_C_SYS_INITIALIZE_DRIVERS" in
"C:microchipharmonyv2_03butilitiesmhctemplatesappsystem_configsystem_init.c.ftl"
Something is
<#if LIST_SYSTEM_INIT_C_SYS_INITIALIZE_DRIVERS?has_content>
<@mhc_expand_list list=LIST_SYSTEM_INIT_C_SYS_INITIALIZE_DRIVERS/>
"list SYSTEM_INIT_C_SYS_INITIALIZE_DRIVERS" means above.
Is this right ?
Or a list exists elsewhere ?
Below is system_init.c.ftl.
/*******************************************************************************
System Initialization File
File Name:
system_init.c
Summary:
This file contains source code necessary to initialize the system.
Description:
This file contains source code necessary to initialize the system. It
implements the "SYS_Initialize" function, defines the configuration bits,
and allocates any necessary global system resources, such as the
sysObj structure that contains the object handles to all the MPLAB Harmony
module objects in the system.
*******************************************************************************/
// DOM-IGNORE-BEGIN
/*******************************************************************************
Copyright (c) 2013-2015 released Microchip Technology Inc. All rights reserved.
Microchip licenses to you the right to use, modify, copy and distribute
Software only when embedded on a Microchip microcontroller or digital signal
controller that is integrated into your product or third party product
(pursuant to the sublicense terms in the accompanying license agreement).
You should refer to the license agreement accompanying this Software for
additional information regarding your rights and obligations.
SOFTWARE AND DOCUMENTATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
(INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
*******************************************************************************/
// DOM-IGNORE-END
<#include "/utilities/mhc/templates/freemarker_functions.ftl">
// *****************************************************************************
// *****************************************************************************
// Section: Included Files
// *****************************************************************************
// *****************************************************************************
#include "system_config.h"
#include "system_definitions.h"
// ****************************************************************************
// ****************************************************************************
// Section: Configuration Bits
// ****************************************************************************
// ****************************************************************************
<#if LIST_SYSTEM_INIT_C_CONFIG_BITS_INITIALIZATION?has_content>
<@mhc_expand_list list=LIST_SYSTEM_INIT_C_CONFIG_BITS_INITIALIZATION/>
#if>
//
/*** DEVCFG0 ***/
<#if CONFIG_DEBUG?has_content>
#pragma config DEBUG = ${CONFIG_DEBUG}
#if>
<#if CONFIG_JTAGEN?has_content>
#pragma config JTAGEN = ${CONFIG_JTAGEN}
#if>
<#if CONFIG_ICESEL?has_content>
#pragma config ICESEL = ${CONFIG_ICESEL}
#if>
<#if CONFIG_TRCEN?has_content>
#pragma config TRCEN = ${CONFIG_TRCEN}
...
...
...
...
/* Initialize Drivers */
<#if LIST_SYSTEM_INIT_C_SYS_INITIALIZE_DEPENDENT_DRIVERS?has_content>
<@mhc_expand_list list=LIST_SYSTEM_INIT_C_SYS_INITIALIZE_DEPENDENT_DRIVERS/>
#if>
<#if LIST_SYSTEM_INIT_C_SYS_INITIALIZE_DRIVERS?has_content> // <----------- Here !!
<@mhc_expand_list list=LIST_SYSTEM_INIT_C_SYS_INITIALIZE_DRIVERS/> // <----------- Here !!
#if>
/* Initialize System Services */
<#if LIST_SYSTEM_INIT_C_INITIALIZE_SYSTEM_SERVICES?has_content>
<@mhc_expand_list list=LIST_SYSTEM_INIT_C_INITIALIZE_SYSTEM_SERVICES/>
#if>
/* Initialize Middleware */
<#if LIST_SYSTEM_INIT_C_INITIALIZE_MIDDLEWARE?has_content>
<@mhc_expand_list list=LIST_SYSTEM_INIT_C_INITIALIZE_MIDDLEWARE/>
#if>
<#if CONFIG_USE_SYS_INT == true && !CONFIG_USE_3RDPARTY_RTOS>
/* Enable Global Interrupts */
SYS_INT_Enable();
#if>
/* Initialize the Application */
<#if LIST_SYSTEM_INIT_C_SYS_INITIALIZE_APP?has_content>
<@mhc_expand_list list=LIST_SYSTEM_INIT_C_SYS_INITIALIZE_APP/>
#if>
<#if CONFIG_APP_IDX_0?has_content>
${CONFIG_APP_NAME_0?upper_case}_Initialize();
<#else>
App_Initialize();
#if>
<#if CONFIG_APP_IDX_1?has_content>
<#if CONFIG_APP_IDX_1 == true>
${CONFIG_APP_NAME_1?upper_case}_Initialize();
#if>
<#if CONFIG_APP_IDX_2 == true>
${CONFIG_APP_NAME_2?upper_case}_Initialize();
#if>
<#if CONFIG_APP_IDX_3 == true>
${CONFIG_APP_NAME_3?upper_case}_Initialize();
#if>
<#if CONFIG_APP_IDX_4 == true>
${CONFIG_APP_NAME_4?upper_case}_Initialize();
#if>
<#if CONFIG_APP_IDX_5 == true>
${CONFIG_APP_NAME_5?upper_case}_Initialize();
#if>
<#if CONFIG_APP_IDX_6 == true>
${CONFIG_APP_NAME_6?upper_case}_Initialize();
#if>
<#if CONFIG_APP_IDX_7 == true>
${CONFIG_APP_NAME_7?upper_case}_Initialize();
#if>
<#if CONFIG_APP_IDX_8 == true>
${CONFIG_APP_NAME_8?upper_case}_Initialize();
#if>
<#if CONFIG_APP_IDX_9 == true>
${CONFIG_APP_NAME_9?upper_case}_Initialize();
#if>
#if>
<#if CONFIG_USE_TEST_HARNESS == true>
<#include "/framework/test/templates/system_init.c.call.ftl">
#if>
}
/*******************************************************************************
End of File
*/
Any advice make pleased pleased.
ysaito
亲爱的OpthuSukes和图腾非常感谢你的快速和极好的建议。我理解“file”命令。& & & gt;“Add”:将内容添加到一个列表中,在需要向任何文件添加一些内容时,大部分都是需要的。我有一个关于“Add”命令的问题。我在“C:Microchip HealthV2Y03BFrasegfxCONFIGGFX.HCOFIGG”中遇到了Bel-Add命令。Nb除以“/Frrase/GFx/COFIG/GFXII..C.FTL ”;“//初始化GFX硬件抽象层GFXIIALLIALIZE();在下面的GFXIIN .C.FTL中。但是我不能很清楚地找到“ClaseStimeSuthOnITyCySysSimulalIZEIZION驱动程序”。芯片和声 V2Y03B实用程序 MHC模板AppStaseSCOFIGStReSy.In.C.FTL“如果ListSyStaseSuthIntCySysSimialIsIZEL驱动程序是什么?”HasyClult& Gt&L.@ MHCLExpand清单列表= ListSythSooSynIncCySysIrimalIZIZEL驱动程序/GT;“list SythOnthInthCySysIrasialZeIsAuthJuffic”是上面的意思。还是其他地方存在一个列表?下面是SysLo.I.C.FTL。任何建议都会让人满意。
以上来自于百度翻译
以下为原文
Dear optimus_jack and Totem
Thank you very much for quick and excellent advise. I understand "file" command well.
>>"add" : Adds content to a list, mostly needed when you need to add some content to any file.
I have one questions concerning "add" command.
I encountered bellow add command in "C:microchipharmonyv2_03bframeworkgfxconfiggfx.hconfig".
...
...
ifblock USE_GFX_STACK
add "<#include "/framework/gfx/config/gfx_init.c.ftl">" to list SYSTEM_INIT_C_SYS_INITIALIZE_DRIVERS
...
...
It seems that "<#include "/framework/gfx/config/gfx_init.c.ftl">" means
// initialize the GFX hardware abstraction layer
GFX_Initialize();
in below gfx_init.c.ftl.
<#--
/*******************************************************************************
GFX HGC Initialization File
File Name:
gfx_hgc_init.c
Summary:
This file contains source code necessary to initialize the system.
Description:
This file contains source code necessary to initialize the system. It
implements the "SYS_Initialize" function, configuration bits, and allocates
any necessary global system resources, such as the systemObjects structure
that contains the object handles to all the MPLAB Harmony module objects in
the system.
*******************************************************************************/
/*******************************************************************************
Copyright (c) 2013-2014 released Microchip Technology Inc. All rights reserved.
Microchip licenses to you the right to use, modify, copy and distribute
Software only when embedded on a Microchip microcontroller or digital signal
controller that is integrated into your product or third party product
(pursuant to the sublicense terms in the accompanying license agreement).
You should refer to the license agreement accompanying this Software for
additional information regarding your rights and obligations.
SOFTWARE AND DOCUMENTATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
(INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
*******************************************************************************/
-->
// initialize the GFX hardware abstraction layer
GFX_Initialize();
<#--
/*******************************************************************************
End of File
*/
-->
But I cannot find clearly "list SYSTEM_INIT_C_SYS_INITIALIZE_DRIVERS".
I found something like "list SYSTEM_INIT_C_SYS_INITIALIZE_DRIVERS" in
"C:microchipharmonyv2_03butilitiesmhctemplatesappsystem_configsystem_init.c.ftl"
Something is
<#if LIST_SYSTEM_INIT_C_SYS_INITIALIZE_DRIVERS?has_content>
<@mhc_expand_list list=LIST_SYSTEM_INIT_C_SYS_INITIALIZE_DRIVERS/>
"list SYSTEM_INIT_C_SYS_INITIALIZE_DRIVERS" means above.
Is this right ?
Or a list exists elsewhere ?
Below is system_init.c.ftl.
/*******************************************************************************
System Initialization File
File Name:
system_init.c
Summary:
This file contains source code necessary to initialize the system.
Description:
This file contains source code necessary to initialize the system. It
implements the "SYS_Initialize" function, defines the configuration bits,
and allocates any necessary global system resources, such as the
sysObj structure that contains the object handles to all the MPLAB Harmony
module objects in the system.
*******************************************************************************/
// DOM-IGNORE-BEGIN
/*******************************************************************************
Copyright (c) 2013-2015 released Microchip Technology Inc. All rights reserved.
Microchip licenses to you the right to use, modify, copy and distribute
Software only when embedded on a Microchip microcontroller or digital signal
controller that is integrated into your product or third party product
(pursuant to the sublicense terms in the accompanying license agreement).
You should refer to the license agreement accompanying this Software for
additional information regarding your rights and obligations.
SOFTWARE AND DOCUMENTATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
(INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
*******************************************************************************/
// DOM-IGNORE-END
<#include "/utilities/mhc/templates/freemarker_functions.ftl">
// *****************************************************************************
// *****************************************************************************
// Section: Included Files
// *****************************************************************************
// *****************************************************************************
#include "system_config.h"
#include "system_definitions.h"
// ****************************************************************************
// ****************************************************************************
// Section: Configuration Bits
// ****************************************************************************
// ****************************************************************************
<#if LIST_SYSTEM_INIT_C_CONFIG_BITS_INITIALIZATION?has_content>
<@mhc_expand_list list=LIST_SYSTEM_INIT_C_CONFIG_BITS_INITIALIZATION/>
#if>
//
/*** DEVCFG0 ***/
<#if CONFIG_DEBUG?has_content>
#pragma config DEBUG = ${CONFIG_DEBUG}
#if>
<#if CONFIG_JTAGEN?has_content>
#pragma config JTAGEN = ${CONFIG_JTAGEN}
#if>
<#if CONFIG_ICESEL?has_content>
#pragma config ICESEL = ${CONFIG_ICESEL}
#if>
<#if CONFIG_TRCEN?has_content>
#pragma config TRCEN = ${CONFIG_TRCEN}
...
...
...
...
/* Initialize Drivers */
<#if LIST_SYSTEM_INIT_C_SYS_INITIALIZE_DEPENDENT_DRIVERS?has_content>
<@mhc_expand_list list=LIST_SYSTEM_INIT_C_SYS_INITIALIZE_DEPENDENT_DRIVERS/>
#if>
<#if LIST_SYSTEM_INIT_C_SYS_INITIALIZE_DRIVERS?has_content> // <----------- Here !!
<@mhc_expand_list list=LIST_SYSTEM_INIT_C_SYS_INITIALIZE_DRIVERS/> // <----------- Here !!
#if>
/* Initialize System Services */
<#if LIST_SYSTEM_INIT_C_INITIALIZE_SYSTEM_SERVICES?has_content>
<@mhc_expand_list list=LIST_SYSTEM_INIT_C_INITIALIZE_SYSTEM_SERVICES/>
#if>
/* Initialize Middleware */
<#if LIST_SYSTEM_INIT_C_INITIALIZE_MIDDLEWARE?has_content>
<@mhc_expand_list list=LIST_SYSTEM_INIT_C_INITIALIZE_MIDDLEWARE/>
#if>
<#if CONFIG_USE_SYS_INT == true && !CONFIG_USE_3RDPARTY_RTOS>
/* Enable Global Interrupts */
SYS_INT_Enable();
#if>
/* Initialize the Application */
<#if LIST_SYSTEM_INIT_C_SYS_INITIALIZE_APP?has_content>
<@mhc_expand_list list=LIST_SYSTEM_INIT_C_SYS_INITIALIZE_APP/>
#if>
<#if CONFIG_APP_IDX_0?has_content>
${CONFIG_APP_NAME_0?upper_case}_Initialize();
<#else>
App_Initialize();
#if>
<#if CONFIG_APP_IDX_1?has_content>
<#if CONFIG_APP_IDX_1 == true>
${CONFIG_APP_NAME_1?upper_case}_Initialize();
#if>
<#if CONFIG_APP_IDX_2 == true>
${CONFIG_APP_NAME_2?upper_case}_Initialize();
#if>
<#if CONFIG_APP_IDX_3 == true>
${CONFIG_APP_NAME_3?upper_case}_Initialize();
#if>
<#if CONFIG_APP_IDX_4 == true>
${CONFIG_APP_NAME_4?upper_case}_Initialize();
#if>
<#if CONFIG_APP_IDX_5 == true>
${CONFIG_APP_NAME_5?upper_case}_Initialize();
#if>
<#if CONFIG_APP_IDX_6 == true>
${CONFIG_APP_NAME_6?upper_case}_Initialize();
#if>
<#if CONFIG_APP_IDX_7 == true>
${CONFIG_APP_NAME_7?upper_case}_Initialize();
#if>
<#if CONFIG_APP_IDX_8 == true>
${CONFIG_APP_NAME_8?upper_case}_Initialize();
#if>
<#if CONFIG_APP_IDX_9 == true>
${CONFIG_APP_NAME_9?upper_case}_Initialize();
#if>
#if>
<#if CONFIG_USE_TEST_HARNESS == true>
<#include "/framework/test/templates/system_init.c.call.ftl">
#if>
}
/*******************************************************************************
End of File
*/
Any advice make pleased pleased.
ysaito
举报