Microchip
直播中

冯超

8年用户 192经验值
私信 关注
[问答]

harmony驱动程序init代码在哪里?

大家好,我正在努力开始使用和声,我正在尝试理解一些概念。我找不到一些参数的初始化代码在哪里,我的意思是,例如,我把输出引脚设置为LeDIAH,并且最初设置为高和低,但是我不定义定义T的代码。他的初始状态。例如,我加载了一个CueNeoTurnTebug示例,但是在提供的代码中找不到任何这些初始化函数的引用:

以上来自于百度翻译


      以下为原文

    Hi everyone,

I am struggling to start getting use to HARMony and I am trying to understand  some concepts.

I can't find where is the initialization code of some parameters, I mean, for instance:

I set output pins as LED_AH, and initially set to High and some LOW, but I don't fin the code that defines this initial state.
Also for example, I load a CHANgeNotification example, but I can't find any reference to any of these initialitation functions in the provided code:
PLIB_PORTS_ChangeNoticeEnable(MY_PORTS_INSTANCE);
// Enabling weak pull-ups for the change notification PIN 10
PLIB_PORTS_ChangeNoticePullUpEnable(MY_PORTS_INSTANCE, PORTS_CHANGE_NOTICE_PIN_10);
// Enabling change notification on PIN 10
PLIB_PORTS_PinChangeNoticeEnable(MY_PORTS_INSTANCE, PORTS_CHANGE_NOTICE_PIN_10);

By the way, how can I write normally once I have pasted text from other editor, I can't make this sentence look normally  

回帖(7)

王焕树

2019-3-11 10:57:02
将“[/COD]”标记移到想要再次放置正常文本的点之前。

以上来自于百度翻译


      以下为原文

   
Move the "[/code]" tag to BEFORE the point where you want to put normal text again.


 
举报

刘德凤

2019-3-11 11:08:39
谢谢!关于代码的任何想法,D??

以上来自于百度翻译


      以下为原文

    Thanks!, any idea regarding the code ;D ??
举报

程娇

2019-3-11 11:23:15
当我想找到我想要跟随的东西时(这是哪里?)我按住“CTRL”键,然后左键点击符号上的鼠标按钮,然后取(通常)到定义。

以上来自于百度翻译


      以下为原文

    When I want to find something I want to follow (where is this?) I hold down the 'ctrl' key and left click the mouse button on the symbol and I am taken (usually) to the definition.
举报

李皓圳

2019-3-11 11:30:22
我不知道他们在例子中是怎么做的,但是在Meal.C中,函数主体()调用了SysIsPrimalIZE()。在Syt.init .c中,函数SysSimulalIsIZE()调用了SysSpReStIpIrimalIZE()。在SysPosisSty.c中,这个函数使用StulyOffice配置文件的定义。两个文件系统.init .c和StulyOffice。通常你不会触摸这些自动生成的文件除非你有一些非常特殊的需要。相反,你可以通过使用MPLA-和谐配置器(MHC)来改变一切。看看PIN设置选项卡。

以上来自于百度翻译


      以下为原文

    I don't know how they do it in the example, but:
 
In main.c the function main() calls SYS_Initialize(). In system.init.c the function SYS_Initialize() is calling SYS_PORTS_Initialize(). In sys_ports_static.c this function is using defines from system_config.h.
 
Both files system.init.c and system_config.h should be located in the system_config subfolder for your project configuration. Usually you do not touch these auto-generated files unless you have some very special needs. Instead you can change everything by using MPLAB Harmony Configurator (MHC). Have a look at the Pin Settings tab.
 
举报

更多回帖

发帖
×
20
完善资料,
赚取积分