bitter 发表于 2023-5-11 20:53

【英飞凌PSOC 62S4 PIONEER KIT 测评】——硬件管理

<div class='showpostmsg'><p><b>【</b><b>英飞凌PSOC 62S4 PIONEER KIT</b><b>&nbsp;测评】&mdash;&mdash;硬件管理</b></p>

<p >一、主要API介绍</p>

<p >1.硬件管理初始化cyhal_hwmgr_init()</p>

<p align="center" > &nbsp;</p>

<ol start="2">
        <li >保留特定资源cyhal_hwmgr_reserve()</li>
</ol>

<p align="center" > &nbsp;</p>

<p >注意:对同一个对象再次调用此函数将导致错误。</p>

<ol start="3">
        <li >释放特定资源cyhal_hwmgr_free()</li>
</ol>

<p align="center" > &nbsp;</p>

<ol start="4">
        <li >分配指定类型块cyhal_hwmgr_allocate()</li>
</ol>

<p align="center" > &nbsp;</p>

<p >其中,cyhal_resource_t枚举为</p>

<p align="center" > &nbsp;</p>

<p >注意:此函数内部调用cyhal_hwmgr_reserve(),不用再次调用cyhal_hwmgr_reserve()。</p>

<p >&nbsp;</p>
</div><script>                                        var loginstr = '<div class="locked">查看本帖全部内容,请<a href="javascript:;"   style="color:#e60000" class="loginf">登录</a>或者<a href="https://bbs.eeworld.com.cn/member.php?mod=register_eeworld.php&action=wechat" style="color:#e60000" target="_blank">注册</a></div>';
                                       
                                        if(parseInt(discuz_uid)==0){
                                                                                                (function($){
                                                        var postHeight = getTextHeight(400);
                                                        $(".showpostmsg").html($(".showpostmsg").html());
                                                        $(".showpostmsg").after(loginstr);
                                                        $(".showpostmsg").css({height:postHeight,overflow:"hidden"});
                                                })(jQuery);
                                        }                </script><script type="text/javascript">(function(d,c){var a=d.createElement("script"),m=d.getElementsByTagName("script"),eewurl="//counter.eeworld.com.cn/pv/count/";a.src=eewurl+c;m.parentNode.insertBefore(a,m)})(document,523)</script>

Jacktang 发表于 2023-5-30 07:27

<p>对同一个对象再次调用此函数将导致错误的原因是,函数内部调用cyhal_hwmgr_reserve()了</p>

<p>是个注意事项,谢谢</p>
页: [1]
查看完整版本: 【英飞凌PSOC 62S4 PIONEER KIT 测评】——硬件管理