{"id":57364,"date":"2023-10-21T04:52:14","date_gmt":"2023-10-20T20:52:14","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=57364"},"modified":"2023-10-21T04:52:14","modified_gmt":"2023-10-20T20:52:14","slug":"qczdbzhkdjj","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/57364.html","title":{"rendered":"\u6e05\u9664\u4e2d\u65ad\u6807\u5fd7\uff1aHal\u5e93\u7684\u7b80\u4ecb"},"content":{"rendered":"
\u4e2d\u65ad\uff08interrupt\uff09\u662f\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u4e00\u79cd\u975e\u5e38\u91cd\u8981\u7684\u6982\u5ff5\uff0c\u5b83\u80fd\u591f\u5e2e\u52a9\u8ba1\u7b97\u673a\u7cfb\u7edf\u66f4\u597d\u5730\u5904\u7406\u5916\u90e8\u8bbe\u5907\u53d1\u51fa\u7684\u4fe1\u53f7\uff0c\u4ece\u800c\u63d0\u9ad8\u7cfb\u7edf\u7684\u6548\u7387\u548c\u53ef\u9760\u6027\u3002Hal\u5e93\u662f\u4e00\u79cd\u7528\u4e8e\u6e05\u9664\u4e2d\u65ad\u6807\u5fd7\u7684\u7f16\u7a0b\u5e93\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u597d\u5730\u5904\u7406\u4e2d\u65ad\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u5b9e\u73b0\u7cfb\u7edf\u529f\u80fd\u3002\u672c\u6587\u5c06\u4ecb\u7ecdHal\u5e93\u7684\u57fa\u7840\u77e5\u8bc6\uff0c\u5e76\u8be6\u7ec6\u8ba8\u8bbaHal\u5e93\u6e05\u9664\u4e2d\u65ad\u6807\u5fd7\u7684\u5177\u4f53\u65b9\u6cd5\u3002<\/p>\n
Hal\u5e93\uff08Hardware Abstraction Layer Library\uff09\u662f\u4e00\u4e2a\u7528\u4e8e\u62bd\u8c61\u786c\u4ef6\u8bbe\u5907\u7684\u7f16\u7a0b\u5e93\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u597d\u5730\u5904\u7406\u786c\u4ef6\u8bbe\u5907\uff0c\u4ece\u800c\u63d0\u9ad8\u7cfb\u7edf\u7684\u53ef\u9760\u6027\u548c\u6027\u80fd\u3002Hal\u5e93\u7684\u4e3b\u8981\u529f\u80fd\u662f\u62bd\u8c61\u786c\u4ef6\u8bbe\u5907\uff0c\u4f7f\u5f00\u53d1\u8005\u53ea\u9700\u8981\u5173\u6ce8\u5e94\u7528\u5c42\u7684\u4e1a\u52a1\u903b\u8f91\uff0c\u800c\u4e0d\u7528\u8003\u8651\u5e95\u5c42\u786c\u4ef6\u7684\u5b9e\u73b0\u7ec6\u8282\u3002Hal\u5e93\u53ef\u4ee5\u62bd\u8c61\u51fa\u786c\u4ef6\u8bbe\u5907\u7684\u5171\u6027\uff0c\u4f7f\u5f00\u53d1\u8005\u53ef\u4ee5\u8f7b\u677e\u5730\u7f16\u5199\u51fa\u53ef\u79fb\u690d\u7684\u4ee3\u7801\uff0c\u4ece\u800c\u63d0\u9ad8\u7cfb\u7edf\u7684\u53ef\u79fb\u690d\u6027\u548c\u53ef\u6269\u5c55\u6027\u3002<\/p>\n
Hal\u5e93\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u6e05\u9664\u4e2d\u65ad\u6807\u5fd7\uff0c\u4ece\u800c\u66f4\u597d\u5730\u5904\u7406\u4e2d\u65ad\u3002Hal\u5e93\u6e05\u9664\u4e2d\u65ad\u6807\u5fd7\u7684\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n
\u9996\u5148\uff0c\u5f00\u53d1\u8005\u9700\u8981\u83b7\u53d6\u4e2d\u65ad\u53f7\uff0c\u4ee5\u4fbf\u6e05\u9664\u4e2d\u65ad\u6807\u5fd7\u3002Hal\u5e93\u63d0\u4f9b\u4e86\u4e00\u4e2a\u51fd\u6570hal_interrupt_get_number\uff0c\u53ef\u4ee5\u83b7\u53d6\u4e2d\u65ad\u53f7\u3002<\/p>\n
\u7136\u540e\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528hal_interrupt_clear_flag\u51fd\u6570\u6765\u6e05\u9664\u4e2d\u65ad\u6807\u5fd7\u3002\u8fd9\u4e2a\u51fd\u6570\u63a5\u6536\u4e00\u4e2a\u53c2\u6570\uff0c\u5373\u4e2d\u65ad\u53f7\uff0c\u5e76\u5c06\u4e2d\u65ad\u6807\u5fd7\u7f6e\u4e3a0\uff0c\u4ece\u800c\u6e05\u9664\u4e2d\u65ad\u6807\u5fd7\u3002<\/p>\n
\u6700\u540e\uff0c\u5f00\u53d1\u8005\u9700\u8981\u6839\u636e\u4e2d\u65ad\u53f7\u6765\u5904\u7406\u4e2d\u65ad\uff0c\u4ee5\u5b9e\u73b0\u7cfb\u7edf\u529f\u80fd\u3002Hal\u5e93\u63d0\u4f9b\u4e86\u51e0\u4e2a\u51fd\u6570\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u597d\u5730\u5904\u7406\u4e2d\u65ad\uff0c\u4ece\u800c\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u597d\u5730\u5b9e\u73b0\u7cfb\u7edf\u529f\u80fd\u3002<\/p>\n
Hal\u5e93\u662f\u4e00\u79cd\u7528\u4e8e\u62bd\u8c61\u786c\u4ef6\u8bbe\u5907\u7684\u7f16\u7a0b\u5e93\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u597d\u5730\u5904\u7406\u786c\u4ef6\u8bbe\u5907\uff0c\u4ece\u800c\u63d0\u9ad8\u7cfb\u7edf\u7684\u53ef\u9760\u6027\u548c\u6027\u80fd\u3002<\/strong>\u6b64\u5916\uff0cHal\u5e93\u8fd8\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u6e05\u9664\u4e2d\u65ad\u6807\u5fd7\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u5904\u7406\u4e2d\u65ad\uff0c\u63d0\u9ad8\u7cfb\u7edf\u7684\u6548\u7387\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u4e2d\u65ad\uff08interrupt\uff09\u662f\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u4e00\u79cd\u975e\u5e38\u91cd\u8981\u7684\u6982\u5ff5\uff0c\u5b83\u80fd\u591f\u5e2e\u52a9\u8ba1\u7b97\u673a\u7cfb\u7edf\u66f4\u597d\u5730\u5904\u7406\u5916\u90e8\u8bbe\u5907\u53d1\u51fa\u7684\u4fe1\u53f7\uff0c\u4ece\u800c\u63d0\u9ad8\u7cfb\u7edf\u7684\u6548\u7387\u548c\u53ef\u9760\u6027\u3002Hal\u5e93\u662f\u4e00\u79cd\u7528\u4e8e\u6e05\u9664\u4e2d\u65ad\u6807\u5fd7\u7684<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[305],"class_list":["post-57364","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/57364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=57364"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/57364\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=57364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=57364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=57364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}