你用什么牌子的?板支持包?Digilents的WF32板:http://micro..wikidot.com/.ony:.-labs的一个示例,因为我使用了BSP包,所以LED3可以称为BSP_LED_3I,可以从main.c app.c:BSP_LEDToggle(BSP_LED_3)调用app.c;我第一次经历的时候,我一直在想“这个状态机的东西是什么,我只想切换LED”。稍后,当试图保持一切正常时,状态机很有意义,所以就跟着流程走。我犯的其它错误是没有使用BSP。没有定义任何内容,并且我试图强制使用pin,所以直到我想到和谐定义(喜欢右键单击名称以查看调用映射)时,它才令人沮丧!售价69美元的WF32板是一个不错的介绍板。让我们知道你使用的开发板,所以我们可以使用相同的BSP命名。
以上来自于百度翻译
以下为原文
What board are you using? Board Support Package?
An example with Digilents's WF32 board:
http://microchip.wikidot.com/harmony:intro-labs
Since I used the BSP package, LED3 can be called BSP_LED_3
I can call app.c from main.c
app.c:
BSP_LEDToggle(BSP_LED_3);
Read through the entry labs. First time I went through I kept thinking "what is with this state machine stuff,
I just want to toggle the LED's". Later the state machine makes a lot of sense when trying to keep everything straight, so just go with the flow.
Other mistake I made was NOT using a BSP. Nothing was defined and I was attempting to force a pin, so it was
frustrating until I thought in terms of Harmony definitions (love that right click over a name to see the call map!)
The
WF32 board for $69 is a decent intro boards.
Let us know what
development board you are using, so we can use he same BSP naming.
你用什么牌子的?板支持包?Digilents的WF32板:http://micro..wikidot.com/.ony:.-labs的一个示例,因为我使用了BSP包,所以LED3可以称为BSP_LED_3I,可以从main.c app.c:BSP_LEDToggle(BSP_LED_3)调用app.c;我第一次经历的时候,我一直在想“这个状态机的东西是什么,我只想切换LED”。稍后,当试图保持一切正常时,状态机很有意义,所以就跟着流程走。我犯的其它错误是没有使用BSP。没有定义任何内容,并且我试图强制使用pin,所以直到我想到和谐定义(喜欢右键单击名称以查看调用映射)时,它才令人沮丧!售价69美元的WF32板是一个不错的介绍板。让我们知道你使用的开发板,所以我们可以使用相同的BSP命名。
以上来自于百度翻译
以下为原文
What board are you using? Board Support Package?
An example with Digilents's WF32 board:
http://microchip.wikidot.com/harmony:intro-labs
Since I used the BSP package, LED3 can be called BSP_LED_3
I can call app.c from main.c
app.c:
BSP_LEDToggle(BSP_LED_3);
Read through the entry labs. First time I went through I kept thinking "what is with this state machine stuff,
I just want to toggle the LED's". Later the state machine makes a lot of sense when trying to keep everything straight, so just go with the flow.
Other mistake I made was NOT using a BSP. Nothing was defined and I was attempting to force a pin, so it was
frustrating until I thought in terms of Harmony definitions (love that right click over a name to see the call map!)
The
WF32 board for $69 is a decent intro boards.
Let us know what
development board you are using, so we can use he same BSP naming.
举报