{"id":50578,"date":"2025-08-10T10:49:50","date_gmt":"2025-08-10T02:49:50","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/50578.html"},"modified":"2025-08-10T10:49:50","modified_gmt":"2025-08-10T02:49:50","slug":"ti%e7%9a%84m0%e7%9a%84g3507%e6%9d%bf%e5%ad%90%e7%94%a8%e7%9a%84keil5-%e5%ae%98%e6%96%b9%e7%9a%84dl_timer-h%e9%87%8c%e8%bf%90%e8%a1%8c%e4%bc%9a%e6%8a%a5%e8%ad%a6%e5%91%8a%ef%bc%8c%e8%af%b4%e8%b6%85","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/50578.html","title":{"rendered":"Ti\u7684M0\u7684G3507\u677f\u5b50\u7528\u7684keil5 \u5b98\u65b9\u7684dl_timer.h\u91cc\u8fd0\u884c\u4f1a\u62a5\u8b66\u544a\uff0c\u8bf4\u8d85\u51fa\u4e86int\u7684\u8303\u56f4\uff0c\u8981\u600e\u4e48\u624d\u80fd\u6d88\u9664\u8fd9\u4e2a\u8b66\u544a\uff1f"},"content":{"rendered":"<p>&#x1f3c6;\u672c\u6587\u6536\u5f55\u4e8e \u300a\u5168\u6808Bug\u8c03\u4f18(\u5b9e\u6218\u7248)\u300b \u4e13\u680f&#xff0c;\u8be5\u4e13\u680f\u4e13\u6ce8\u4e8e\u5206\u4eab\u6211\u5728\u771f\u5b9e\u9879\u76ee\u5f00\u53d1\u4e2d\u9047\u5230\u7684\u5404\u7c7b\u7591\u96beBug\u53ca\u5176\u6df1\u5c42\u6210\u56e0&#xff0c;\u5e76\u7cfb\u7edf\u63d0\u4f9b\u9ad8\u6548\u3001\u53ef\u590d\u73b0\u7684\u89e3\u51b3\u601d\u8def\u548c\u5b9e\u64cd\u65b9\u6848\u3002\u65e0\u8bba\u4f60\u662f\u521a\u5165\u884c\u7684\u65b0\u624b\u5f00\u53d1\u8005&#xff0c;\u8fd8\u662f\u62e5\u6709\u591a\u5e74\u9879\u76ee\u7ecf\u9a8c\u7684\u8d44\u6df1\u5de5\u7a0b\u5e08&#xff0c;\u672c\u4e13\u680f\u90fd\u5c06\u4e3a\u4f60\u63d0\u4f9b\u4e00\u6761\u7cfb\u7edf\u5316\u3001\u9ad8\u8d28\u91cf\u7684\u95ee\u9898\u6392\u67e5\u4e0e\u4f18\u5316\u8def\u5f84&#xff0c;\u52a9\u529b\u4f60\u52a0\u901f\u6210\u957f&#xff0c;\u653b\u514b\u6280\u672f\u58c1\u5792&#xff0c;\u8fc8\u5411\u6280\u672f\u4ef7\u503c\u6700\u5927\u5316\u4e0e\u804c\u4e1a\u53d1\u5c55\u7684\u66f4\u9ad8\u5cf0&#x1f680;&#xff01; \u2003\u2003 &#x1f4cc; \u7279\u522b\u8bf4\u660e&#xff1a; \u6587\u4e2d\u90e8\u5206\u6280\u672f\u95ee\u9898\u6765\u6e90\u4e8e\u771f\u5b9e\u751f\u4ea7\u73af\u5883\u53ca\u7f51\u7edc\u516c\u5f00\u6848\u4f8b&#xff0c;\u5747\u7ecf\u8fc7\u7cbe\u6311\u7ec6\u9009\u4e0e\u7cfb\u7edf\u5316\u6574\u7406&#xff0c;\u5e76\u7ed3\u5408\u591a\u4f4d\u4e00\u7ebf\u8d44\u6df1\u67b6\u6784\u5e08\u548c\u5de5\u7a0b\u5e08\u591a\u5e74\u5b9e\u6218\u7ecf\u9a8c\u6c89\u6dc0&#xff0c;\u63d0\u70bc\u51fa\u591a\u79cd\u7ecf\u8fc7\u9a8c\u8bc1\u7684\u9ad8\u53ef\u884c\u6027\u89e3\u51b3\u65b9\u6848&#xff0c;\u4f9b\u5f00\u53d1\u8005\u4eec\u53c2\u8003\u4e0e\u501f\u9274\u3002 \u2003\u2003 \u6b22\u8fce \u5173\u6ce8\u3001\u6536\u85cf\u5e76\u8ba2\u9605\u672c\u4e13\u680f&#xff0c;\u6301\u7eed\u66f4\u65b0\u7684\u5e72\u8d27\u5185\u5bb9\u5c06\u4e0e\u60a8\u540c\u884c&#xff0c;\u8ba9\u6211\u4eec\u643a\u624b\u7cbe\u8fdb&#xff0c;\u6280\u672f\u8dc3\u8fc1&#xff0c;\u6b65\u6b65\u9ad8\u5347&#xff01;<\/p>\n<p> <img decoding=\"async\" width=\"180\" height=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810024948-689808ccb5cd7.png\" \/><\/p>\n<h4>\u5168\u6587\u76ee\u5f55&#xff1a;<\/h4>\n<ul>\n<li>\n<ul>\n<li>&#x1f4e2; \u95ee\u9898\u63cf\u8ff0<\/li>\n<li>&#x1f4e3; \u8bf7\u77e5\u6089&#xff1a;\u5982\u4e0b\u65b9\u6848\u4e0d\u4fdd\u8bc1\u4e00\u5b9a\u9002\u914d\u4f60\u7684\u95ee\u9898&#xff01;<\/li>\n<li>\n<ul>\n<li>\u2705\ufe0f\u95ee\u9898\u7406\u89e3<\/li>\n<li>\n<ul>\n<li>\u9519\u8bef\u672c\u8d28\u5206\u6790&#xff1a;<\/li>\n<li>\u95ee\u9898\u5b9a\u4f4d&#xff1a;<\/li>\n<li>ARM Cortex-M0\u7279\u6b8a\u6027&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<li>\u2705\ufe0f\u95ee\u9898\u89e3\u51b3\u65b9\u6848<\/li>\n<li>\n<ul>\n<li>&#x1f527; \u7acb\u5373\u89e3\u51b3\u65b9\u6848&#xff08;5\u79cd\u65b9\u6cd5&#xff09;<\/li>\n<li>\n<ul>\n<li>\u65b9\u6cd5\u4e00&#xff1a;\u7f16\u8bd1\u5668\u8bbe\u7f6e\u7981\u7528\u7279\u5b9a\u8b66\u544a&#xff08;\u63a8\u8350&#xff09;<\/li>\n<li>\u65b9\u6cd5\u4e8c&#xff1a;Keil5\u9879\u76ee\u914d\u7f6e\u65b9\u6cd5<\/li>\n<li>\u65b9\u6cd5\u4e09&#xff1a;\u4fee\u6539\u679a\u4e3e\u5b9a\u4e49\u65b9\u5f0f<\/li>\n<li>\u65b9\u6cd5\u56db&#xff1a;\u521b\u5efa\u5305\u88c5\u5934\u6587\u4ef6<\/li>\n<li>\u65b9\u6cd5\u4e94&#xff1a;\u4f7f\u7528\u6761\u4ef6\u7f16\u8bd1\u5904\u7406<\/li>\n<\/ul>\n<\/li>\n<li>&#x1f6e0;\ufe0f \u8be6\u7ec6\u9879\u76ee\u914d\u7f6e\u6b65\u9aa4<\/li>\n<li>\n<ul>\n<li>Keil5 MDK\u8be6\u7ec6\u914d\u7f6e&#xff1a;<\/li>\n<li>\u5b8c\u6574\u7684main.c\u793a\u4f8b&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u2705\ufe0f\u95ee\u9898\u5ef6\u4f38<\/li>\n<li>\n<ul>\n<li>&#x1f504; ARM\u7f16\u8bd1\u5668\u8b66\u544a\u7ba1\u7406\u6700\u4f73\u5b9e\u8df5<\/li>\n<li>&#x1f4cb; \u5e38\u89c1ARM\u7f16\u8bd1\u5668\u8b66\u544a\u5904\u7406<\/li>\n<\/ul>\n<\/li>\n<li>\u2705\ufe0f\u95ee\u9898\u9884\u6d4b<\/li>\n<li>\n<ul>\n<li>\u26a0\ufe0f \u6f5c\u5728\u95ee\u9898\u548c\u98ce\u9669\u9884\u8b66<\/li>\n<li>&#x1f3af; \u957f\u671f\u89e3\u51b3\u65b9\u6848\u67b6\u6784<\/li>\n<\/ul>\n<\/li>\n<li>\u2705\ufe0f\u5c0f\u7ed3<\/li>\n<li>\n<ul>\n<li>&#x1f4cb; \u95ee\u9898\u6838\u5fc3\u603b\u7ed3<\/li>\n<li>&#x1f680; \u89e3\u51b3\u65b9\u6848\u4f18\u5148\u7ea7<\/li>\n<li>&#x1f4a1; \u7acb\u5373\u884c\u52a8\u5efa\u8bae<\/li>\n<li>&#x1f50d; \u9a8c\u8bc1\u6210\u529f\u6807\u51c6<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>&#x1f9e7;&#x1f9e7; \u6587\u672b\u798f\u5229&#xff0c;\u7b49\u4f60\u6765\u62ff&#xff01;&#x1f9e7;&#x1f9e7;<\/li>\n<li>&#x1faf5; Who am I?<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>&#x1f4e2; \u95ee\u9898\u63cf\u8ff0<\/h3>\n<p>\u95ee\u9898\u6765\u6e90&#xff1a;https:\/\/ask.csdn.net\/questions\/xxx<\/p>\n<p>\u95ee\u9898\u63cf\u8ff0&#xff1a;Ti\u7684M0\u7684G3507\u677f\u5b50 \u7528\u7684keil5\u8fdb\u884c\u7f16\u8bd1\u7684 \u5b98\u65b9\u7684dl_timer.h\u91cc\u8fd0\u884c\u4f1a\u62a5\u8b66\u544a \u8bf4\u8d85\u51fa\u4e86int\u7684\u8303\u56f4 \u8981\u600e\u4e48\u624d\u80fd\u6d88\u9664\u8fd9\u4e2a\u8b66\u544a\u554a?<\/p>\n<p><span class=\"token range operator\">..<\/span><span class=\"token operator\">\/<\/span><span class=\"token range operator\">..<\/span><span class=\"token operator\">\/<\/span>source<span class=\"token operator\">\/<\/span>ti<span class=\"token operator\">\/<\/span>driverlib<span class=\"token operator\">\/<\/span>dl_comp<span class=\"token punctuation\">.<\/span><span class=\"token function\">h<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">229<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span> warning<span class=\"token punctuation\">:<\/span> #<span class=\"token number\">66<\/span><span class=\"token operator\">&#8211;<\/span>D<span class=\"token punctuation\">:<\/span> enumeration <span class=\"token keyword\">value<\/span> <span class=\"token keyword\">is<\/span> <span class=\"token keyword\">out<\/span> of <span class=\"token string\">&#034;int&#034;<\/span> range<\/p>\n<p>\u62a5\u9519\u7684\u662f\u8fd9\u4e2a\u51fd\u6570<\/p>\n<p><span class=\"token constant\">DL_COMP_ENABLE_CHANNEL_POS_NEG<\/span> <span class=\"token operator\">&#061;<\/span><br \/>\n    <span class=\"token punctuation\">(<\/span><span class=\"token constant\">COMP_CTL0_IPEN_ENABLE<\/span> <span class=\"token operator\">|<\/span> <span class=\"token constant\">COMP_CTL0_IMEN_ENABLE<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token constant\">DL_TIMER_SEC_COMP_DOWN_EVT_SEL_CC4<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token constant\">GPTIMER_CCCTL_01_CC2SELD_SEL_CCD4<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>#define <span class=\"token constant\">GPTIMER_CCCTL_01_CC2SELD_SEL_CCD4<\/span>        <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span>uint32_t<span class=\"token punctuation\">)<\/span><span class=\"token number\">0<\/span>x80000000U<span class=\"token punctuation\">)<\/span>         <span class=\"token comment\">\/* !&lt; Selects CCD from CC4. *\/<\/span><br \/>\n#define <span class=\"token constant\">GPTIMER_CCCTL_01_CC2SELD_SEL_CCD5<\/span>        <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span>uint32_t<span class=\"token punctuation\">)<\/span><span class=\"token number\">0<\/span>xA0000000U<span class=\"token punctuation\">)<\/span>         <span class=\"token comment\">\/* !&lt; Selects CCD from CC5. *\/<\/span><br \/>\n#define <span class=\"token constant\">COMP_CTL0_IMEN_MASK<\/span>                      <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span>uint32_t<span class=\"token punctuation\">)<\/span><span class=\"token number\">0<\/span>x80000000U<span class=\"token punctuation\">)<\/span><br \/>\n#define <span class=\"token constant\">COMP_CTL0_IMEN_ENABLE<\/span>                    <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span>uint32_t<span class=\"token punctuation\">)<\/span><span class=\"token number\">0<\/span>x80000000U<span class=\"token punctuation\">)<\/span><\/p>\n<p> <img decoding=\"async\" width=\"150\" height=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810024948-689808ccdd7b6.jpg\" \/> <\/p>\n<h3>&#x1f4e3; \u8bf7\u77e5\u6089&#xff1a;\u5982\u4e0b\u65b9\u6848\u4e0d\u4fdd\u8bc1\u4e00\u5b9a\u9002\u914d\u4f60\u7684\u95ee\u9898&#xff01;<\/h3>\n<p>\u2003\u2003\u5982\u4e0b\u662f\u9488\u5bf9\u4e0a\u8ff0\u95ee\u9898\u8fdb\u884c\u4e13\u4e1a\u89d2\u5ea6\u5256\u6790\u7b54\u7591&#xff0c;\u4e0d\u559c\u52ff\u55b7&#xff0c;\u4ec5\u4f9b\u53c2\u8003&#xff1a;<\/p>\n<p> <img decoding=\"async\" width=\"150\" height=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810024948-689808cceca36.png\" \/> <\/p>\n<h4>\u2705\ufe0f\u95ee\u9898\u7406\u89e3<\/h4>\n<p>\u8fd9\u662f\u4e00\u4e2a\u5178\u578b\u7684ARM Cortex-M0\u7f16\u8bd1\u5668\u679a\u4e3e\u503c\u6ea2\u51fa\u8b66\u544a\u95ee\u9898\u3002\u8ba9\u6211\u6df1\u5ea6\u5206\u6790\u95ee\u9898\u6839\u6e90&#xff1a;<\/p>\n<h5>\u9519\u8bef\u672c\u8d28\u5206\u6790&#xff1a;<\/h5>\n<ul>\n<li>\u8b66\u544a\u7c7b\u578b&#xff1a;#66-D: enumeration value is out of &#034;int&#034; range<\/li>\n<li>\u6839\u672c\u539f\u56e0&#xff1a;\u679a\u4e3e\u503c0x80000000U&#xff08;2,147,483,648&#xff09;\u8d85\u51fa\u4e8632\u4f4d\u6709\u7b26\u53f7\u6574\u6570\u7684\u6700\u5927\u503c&#xff08;2,147,483,647&#xff09;<\/li>\n<li>\u6280\u672f\u80cc\u666f&#xff1a;C\u8bed\u8a00\u6807\u51c6\u4e2d&#xff0c;\u679a\u4e3e\u9ed8\u8ba4\u4f7f\u7528int\u7c7b\u578b\u5b58\u50a8&#xff0c;\u4f46\u8fd9\u4e9b\u5bc4\u5b58\u5668\u4f4d\u63a9\u7801\u503c\u9700\u8981\u4f7f\u7528\u6700\u9ad8\u4f4d<\/li>\n<\/ul>\n<h5>\u95ee\u9898\u5b9a\u4f4d&#xff1a;<\/h5>\n<p><span class=\"token comment\">\/\/ \u95ee\u9898\u4ee3\u7801\u5206\u6790<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">COMP_CTL0_IMEN_ENABLE<\/span>    <span class=\"token expression\"><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">uint32_t<\/span><span class=\"token punctuation\">)<\/span><span class=\"token number\">0x80000000U<\/span><span class=\"token punctuation\">)<\/span>  <\/span><span class=\"token comment\">\/\/ \u7b2c31\u4f4d &#061; 2^31<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">GPTIMER_CCCTL_01_CC2SELD_SEL_CCD4<\/span>  <span class=\"token expression\"><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">uint32_t<\/span><span class=\"token punctuation\">)<\/span><span class=\"token number\">0x80000000U<\/span><span class=\"token punctuation\">)<\/span><\/span><\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u5728\u679a\u4e3e\u4e2d\u4f7f\u7528\u65f6<\/span><br \/>\n<span class=\"token keyword\">typedef<\/span> <span class=\"token keyword\">enum<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    DL_COMP_ENABLE_CHANNEL_POS_NEG <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span>COMP_CTL0_IPEN_ENABLE <span class=\"token operator\">|<\/span> COMP_CTL0_IMEN_ENABLE<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    DL_TIMER_SEC_COMP_DOWN_EVT_SEL_CC4 <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span>GPTIMER_CCCTL_01_CC2SELD_SEL_CCD4<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">}<\/span> <span class=\"token class-name\">some_enum_t<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h5>ARM Cortex-M0\u7279\u6b8a\u6027&#xff1a;<\/h5>\n<ul>\n<li>M0\u5904\u7406\u5668\u4e3a32\u4f4d\u67b6\u6784&#xff0c;\u4f46\u679a\u4e3e\u9ed8\u8ba4\u6309C\u6807\u51c6\u4f7f\u7528int<\/li>\n<li>TI\u7684\u5bc4\u5b58\u5668\u5b9a\u4e49\u7ecf\u5e38\u4f7f\u7528\u6700\u9ad8\u4f4d&#xff08;\u7b2c31\u4f4d&#xff09;\u4f5c\u4e3a\u4f7f\u80fd\u4f4d<\/li>\n<li>Keil5\u7f16\u8bd1\u5668\u4e25\u683c\u9075\u5faaC\u6807\u51c6&#xff0c;\u4ea7\u751f\u6b64\u8b66\u544a<\/li>\n<\/ul>\n<h4>\u2705\ufe0f\u95ee\u9898\u89e3\u51b3\u65b9\u6848<\/h4>\n<h5>&#x1f527; \u7acb\u5373\u89e3\u51b3\u65b9\u6848&#xff08;5\u79cd\u65b9\u6cd5&#xff09;<\/h5>\n<h6>\u65b9\u6cd5\u4e00&#xff1a;\u7f16\u8bd1\u5668\u8bbe\u7f6e\u7981\u7528\u7279\u5b9a\u8b66\u544a&#xff08;\u63a8\u8350&#xff09;<\/h6>\n<p><span class=\"token comment\">\/\/ \u5728\u9879\u76ee\u8bbe\u7f6e\u4e2d\u6dfb\u52a0\u7f16\u8bd1\u5668\u9009\u9879<\/span><br \/>\n<span class=\"token comment\">\/\/ \u6216\u5728\u4ee3\u7801\u6587\u4ef6\u5f00\u5934\u6dfb\u52a0&#xff1a;<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">diag_suppress <span class=\"token number\">66<\/span>  <\/span><span class=\"token comment\">\/\/ \u7981\u7528\u679a\u4e3e\u6ea2\u51fa\u8b66\u544a<\/span><\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u6216\u8005\u4f7f\u7528\u63a8\u9001\/\u5f39\u51fa\u65b9\u5f0f&#xff08;\u66f4\u7cbe\u786e&#xff09;<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">diag_push<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">diag_suppress <span class=\"token number\">66<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&#034;dl_timer.h&#034;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&#034;dl_comp.h&#034;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">diag_pop<\/span><\/span><\/p>\n<h6>\u65b9\u6cd5\u4e8c&#xff1a;Keil5\u9879\u76ee\u914d\u7f6e\u65b9\u6cd5<\/h6>\n<p><span class=\"token comment\"># \u5728Keil5 MDK\u4e2d&#xff1a;<\/span><br \/>\n<span class=\"token comment\"># 1. \u53f3\u952e\u9879\u76ee -&gt; Options for Target<\/span><br \/>\n<span class=\"token comment\"># 2. C\/C&#043;&#043;\u9009\u9879\u5361 -&gt; Misc Controls<\/span><br \/>\n<span class=\"token comment\"># 3. \u6dfb\u52a0&#xff1a;&#8211;diag_suppress&#061;66<\/span><br \/>\n<span class=\"token comment\"># 4. \u6216\u8005\u5728Define\u6846\u4e2d\u6dfb\u52a0&#xff1a;__ARMCC_WARNING_DISABLE(66)<\/span><\/p>\n<h6>\u65b9\u6cd5\u4e09&#xff1a;\u4fee\u6539\u679a\u4e3e\u5b9a\u4e49\u65b9\u5f0f<\/h6>\n<p><span class=\"token comment\">\/\/ \u539f\u6709\u95ee\u9898\u4ee3\u7801<\/span><br \/>\n<span class=\"token keyword\">typedef<\/span> <span class=\"token keyword\">enum<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    DL_COMP_ENABLE_CHANNEL_POS_NEG <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span>COMP_CTL0_IPEN_ENABLE <span class=\"token operator\">|<\/span> COMP_CTL0_IMEN_ENABLE<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">}<\/span> <span class=\"token class-name\">dl_comp_config_t<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u89e3\u51b3\u65b9\u6848&#xff1a;\u4f7f\u7528\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362<\/span><br \/>\n<span class=\"token keyword\">typedef<\/span> <span class=\"token keyword\">enum<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    DL_COMP_ENABLE_CHANNEL_POS_NEG <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token keyword\">int<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">(<\/span>COMP_CTL0_IPEN_ENABLE <span class=\"token operator\">|<\/span> COMP_CTL0_IMEN_ENABLE<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">}<\/span> <span class=\"token class-name\">dl_comp_config_t<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u6216\u8005\u4f7f\u7528\u5b8f\u5b9a\u4e49\u66ff\u4ee3\u679a\u4e3e<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">DL_COMP_ENABLE_CHANNEL_POS_NEG<\/span>  <span class=\"token expression\"><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">uint32_t<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">(<\/span>COMP_CTL0_IPEN_ENABLE <span class=\"token operator\">|<\/span> COMP_CTL0_IMEN_ENABLE<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">DL_TIMER_SEC_COMP_DOWN_EVT_SEL_CC4<\/span>  <span class=\"token expression\"><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">uint32_t<\/span><span class=\"token punctuation\">)<\/span>GPTIMER_CCCTL_01_CC2SELD_SEL_CCD4<span class=\"token punctuation\">)<\/span><\/span><\/span><\/p>\n<h6>\u65b9\u6cd5\u56db&#xff1a;\u521b\u5efa\u5305\u88c5\u5934\u6587\u4ef6<\/h6>\n<p><span class=\"token comment\">\/\/ custom_dl_wrapper.h<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">ifndef<\/span> <span class=\"token expression\">CUSTOM_DL_WRAPPER_H<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">CUSTOM_DL_WRAPPER_H<\/span><\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u7981\u7528\u8b66\u544a\u540e\u5305\u542b\u539f\u59cb\u5934\u6587\u4ef6<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">diag_push<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">diag_suppress <span class=\"token number\">66<\/span><\/span><\/span><\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&#034;dl_timer.h&#034;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&#034;dl_comp.h&#034;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&#034;dl_gpio.h&#034;<\/span><\/span><br \/>\n<span class=\"token comment\">\/\/ \u5305\u542b\u5176\u4ed6\u53ef\u80fd\u6709\u95ee\u9898\u7684TI\u5934\u6587\u4ef6<\/span><\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">diag_pop<\/span><\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u5982\u9700\u8981&#xff0c;\u53ef\u4ee5\u5728\u8fd9\u91cc\u91cd\u65b0\u5b9a\u4e49\u6709\u95ee\u9898\u7684\u679a\u4e3e<\/span><br \/>\n<span class=\"token keyword\">typedef<\/span> <span class=\"token class-name\">uint32_t<\/span> <span class=\"token class-name\">dl_comp_config_extended_t<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">DL_COMP_ENABLE_CHANNEL_POS_NEG_EXT<\/span>  <span class=\"token expression\"><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">dl_comp_config_extended_t<\/span><span class=\"token punctuation\">)<\/span><span class=\"token number\">0x80000000UL<\/span><span class=\"token punctuation\">)<\/span><\/span><\/span><\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">endif<\/span> <span class=\"token comment\">\/\/ CUSTOM_DL_WRAPPER_H<\/span><\/span><\/p>\n<h6>\u65b9\u6cd5\u4e94&#xff1a;\u4f7f\u7528\u6761\u4ef6\u7f16\u8bd1\u5904\u7406<\/h6>\n<p><span class=\"token comment\">\/\/ dl_timer_fixed.h &#8211; \u4fee\u590d\u7248\u672c<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">ifndef<\/span> <span class=\"token expression\">DL_TIMER_FIXED_H<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">DL_TIMER_FIXED_H<\/span><\/span><\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">ifdef<\/span> <span class=\"token expression\">__ARMCC_VERSION  <\/span><span class=\"token comment\">\/\/ Keil\u7f16\u8bd1\u5668<\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">diag_suppress <span class=\"token number\">66<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">elif<\/span> <span class=\"token expression\"><span class=\"token function\">defined<\/span><span class=\"token punctuation\">(<\/span>__GNUC__<span class=\"token punctuation\">)<\/span>  <\/span><span class=\"token comment\">\/\/ GCC\u7f16\u8bd1\u5668<\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">GCC diagnostic push<\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">GCC diagnostic ignored <\/span><span class=\"token string\">&#034;-Woverflow&#034;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">endif<\/span><\/span><\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&#034;dl_timer.h&#034;<\/span><\/span><\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">ifdef<\/span> <span class=\"token expression\">__ARMCC_VERSION<\/span><\/span><br \/>\n    <span class=\"token comment\">\/\/ Keil\u7279\u5b9a\u5904\u7406<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">elif<\/span> <span class=\"token expression\"><span class=\"token function\">defined<\/span><span class=\"token punctuation\">(<\/span>__GNUC__<span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">GCC diagnostic pop<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">endif<\/span><\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u91cd\u65b0\u5b9a\u4e49\u6709\u95ee\u9898\u7684\u5e38\u91cf&#xff08;\u5982\u679c\u9700\u8981&#xff09;<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">ifndef<\/span> <span class=\"token expression\">DL_TIMER_FIXED_CONSTANTS<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">DL_TIMER_FIXED_CONSTANTS<\/span><\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u4f7f\u7528\u663e\u5f0fuint32_t\u7c7b\u578b<\/span><br \/>\n<span class=\"token keyword\">static<\/span> <span class=\"token keyword\">const<\/span> <span class=\"token class-name\">uint32_t<\/span> DL_TIMER_CC4_SELECT <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0x80000000UL<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">static<\/span> <span class=\"token keyword\">const<\/span> <span class=\"token class-name\">uint32_t<\/span> DL_COMP_ENABLE_MASK <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0x80000000UL<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">endif<\/span><\/span><\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">endif<\/span> <span class=\"token comment\">\/\/ DL_TIMER_FIXED_H<\/span><\/span><\/p>\n<h5>&#x1f6e0;\ufe0f \u8be6\u7ec6\u9879\u76ee\u914d\u7f6e\u6b65\u9aa4<\/h5>\n<h6>Keil5 MDK\u8be6\u7ec6\u914d\u7f6e&#xff1a;<\/h6>\n<p><span class=\"token comment\">\/\/ \u6b65\u9aa41: \u9879\u76ee\u7ea7\u522b\u8bbe\u7f6e<\/span><br \/>\n<span class=\"token comment\">\/*<br \/>\n1. \u53f3\u952e\u9879\u76ee\u540d -&gt; &#034;Options for Target&#8230;&#034;<br \/>\n2. \u9009\u62e9&#034;C\/C&#043;&#043;&#034;\u9009\u9879\u5361<br \/>\n3. \u5728&#034;Misc Controls&#034;\u6846\u4e2d\u6dfb\u52a0&#xff1a;<br \/>\n   &#8211;diag_suppress&#061;66<\/p>\n<p>4. \u6216\u8005\u5728&#034;Define&#034;\u6846\u4e2d\u6dfb\u52a0&#xff1a;<br \/>\n   SUPPRESS_ENUM_WARNING&#061;1<br \/>\n*\/<\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u6b65\u9aa42: \u4ee3\u7801\u7ea7\u522b\u5904\u7406<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">ifdef<\/span> <span class=\"token expression\">SUPPRESS_ENUM_WARNING<\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">diag_suppress <span class=\"token number\">66<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">endif<\/span><\/span><\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&#034;dl_timer.h&#034;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&#034;dl_comp.h&#034;<\/span><\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u6b65\u9aa43: \u9a8c\u8bc1\u8bbe\u7f6e<\/span><br \/>\n<span class=\"token keyword\">void<\/span> <span class=\"token function\">verify_timer_config<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">void<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token comment\">\/\/ \u6d4b\u8bd5\u679a\u4e3e\u503c\u662f\u5426\u6b63\u5e38\u5de5\u4f5c<\/span><br \/>\n    <span class=\"token class-name\">uint32_t<\/span> timer_config <span class=\"token operator\">&#061;<\/span> DL_TIMER_SEC_COMP_DOWN_EVT_SEL_CC4<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token class-name\">uint32_t<\/span> comp_config <span class=\"token operator\">&#061;<\/span> DL_COMP_ENABLE_CHANNEL_POS_NEG<span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;Timer Config: 0x%08lX\\\\n&#034;<\/span><span class=\"token punctuation\">,<\/span> timer_config<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;Comp Config: 0x%08lX\\\\n&#034;<\/span><span class=\"token punctuation\">,<\/span> comp_config<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h6>\u5b8c\u6574\u7684main.c\u793a\u4f8b&#xff1a;<\/h6>\n<p><span class=\"token comment\">\/\/ main.c &#8211; \u5b8c\u6574\u89e3\u51b3\u65b9\u6848\u793a\u4f8b<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;stdint.h&gt;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;stdio.h&gt;<\/span><\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u65b9\u6cd51&#xff1a;\u4f7f\u7528pragma\u7981\u7528\u8b66\u544a<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">diag_suppress <span class=\"token number\">66<\/span><\/span><\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u5305\u542bTI\u5b98\u65b9\u5934\u6587\u4ef6<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&#034;ti_msp_dl_config.h&#034;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&#034;dl_timer.h&#034;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&#034;dl_comp.h&#034;<\/span><\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u6216\u8005\u65b9\u6cd52&#xff1a;\u91cd\u65b0\u5b9a\u4e49\u5e38\u91cf&#xff08;\u53ef\u9009&#xff09;<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">TIMER_CC4_SELECT_SAFE<\/span>    <span class=\"token expression\"><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">uint32_t<\/span><span class=\"token punctuation\">)<\/span><span class=\"token number\">0x80000000UL<\/span><span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">COMP_ENABLE_SAFE<\/span>         <span class=\"token expression\"><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">uint32_t<\/span><span class=\"token punctuation\">)<\/span><span class=\"token number\">0x80000000UL<\/span><span class=\"token punctuation\">)<\/span><\/span><\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u521d\u59cb\u5316\u51fd\u6570<\/span><br \/>\n<span class=\"token keyword\">void<\/span> <span class=\"token function\">timer_init_with_fixed_config<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">void<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token comment\">\/\/ \u4f7f\u7528\u539f\u59cb\u679a\u4e3e\u503c&#xff08;\u8b66\u544a\u5df2\u88ab\u6291\u5236&#xff09;<\/span><br \/>\n    <span class=\"token class-name\">uint32_t<\/span> timer_sel <span class=\"token operator\">&#061;<\/span> DL_TIMER_SEC_COMP_DOWN_EVT_SEL_CC4<span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u914d\u7f6e\u5b9a\u65f6\u5668<\/span><br \/>\n    <span class=\"token function\">DL_TimerG_reset<\/span><span class=\"token punctuation\">(<\/span>TIMER_0_INST<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token function\">DL_TimerG_enableClock<\/span><span class=\"token punctuation\">(<\/span>TIMER_0_INST<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u8bbe\u7f6e\u6bd4\u8f83\u5668\u914d\u7f6e<\/span><br \/>\n    <span class=\"token class-name\">uint32_t<\/span> comp_config <span class=\"token operator\">&#061;<\/span> DL_COMP_ENABLE_CHANNEL_POS_NEG<span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u5e94\u7528\u914d\u7f6e<\/span><br \/>\n    <span class=\"token comment\">\/\/ &#8230; \u5176\u4ed6\u914d\u7f6e\u4ee3\u7801<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">int<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">void<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token comment\">\/\/ \u7cfb\u7edf\u521d\u59cb\u5316<\/span><br \/>\n    <span class=\"token function\">SYSCFG_DL_init<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u521d\u59cb\u5316\u5b9a\u65f6\u5668&#xff08;\u73b0\u5728\u4e0d\u4f1a\u6709\u8b66\u544a&#xff09;<\/span><br \/>\n    <span class=\"token function\">timer_init_with_fixed_config<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token keyword\">while<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token comment\">\/\/ \u4e3b\u5faa\u73af<\/span><br \/>\n        <span class=\"token function\">__WFI<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/\/ \u7b49\u5f85\u4e2d\u65ad<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>\u2705\ufe0f\u95ee\u9898\u5ef6\u4f38<\/h4>\n<h5>&#x1f504; ARM\u7f16\u8bd1\u5668\u8b66\u544a\u7ba1\u7406\u6700\u4f73\u5b9e\u8df5<\/h5>\n<p>  #mermaid-svg-DedRkamhTCwf1Yf2 {font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-DedRkamhTCwf1Yf2 .error-icon{fill:#552222;}#mermaid-svg-DedRkamhTCwf1Yf2 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-DedRkamhTCwf1Yf2 .edge-thickness-normal{stroke-width:2px;}#mermaid-svg-DedRkamhTCwf1Yf2 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-DedRkamhTCwf1Yf2 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-DedRkamhTCwf1Yf2 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-DedRkamhTCwf1Yf2 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-DedRkamhTCwf1Yf2 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-DedRkamhTCwf1Yf2 .marker.cross{stroke:#333333;}#mermaid-svg-DedRkamhTCwf1Yf2 svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-DedRkamhTCwf1Yf2 .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-DedRkamhTCwf1Yf2 .cluster-label text{fill:#333;}#mermaid-svg-DedRkamhTCwf1Yf2 .cluster-label span{color:#333;}#mermaid-svg-DedRkamhTCwf1Yf2 .label text,#mermaid-svg-DedRkamhTCwf1Yf2 span{fill:#333;color:#333;}#mermaid-svg-DedRkamhTCwf1Yf2 .node rect,#mermaid-svg-DedRkamhTCwf1Yf2 .node circle,#mermaid-svg-DedRkamhTCwf1Yf2 .node ellipse,#mermaid-svg-DedRkamhTCwf1Yf2 .node polygon,#mermaid-svg-DedRkamhTCwf1Yf2 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-DedRkamhTCwf1Yf2 .node .label{text-align:center;}#mermaid-svg-DedRkamhTCwf1Yf2 .node.clickable{cursor:pointer;}#mermaid-svg-DedRkamhTCwf1Yf2 .arrowheadPath{fill:#333333;}#mermaid-svg-DedRkamhTCwf1Yf2 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-DedRkamhTCwf1Yf2 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-DedRkamhTCwf1Yf2 .edgeLabel{background-color:#e8e8e8;text-align:center;}#mermaid-svg-DedRkamhTCwf1Yf2 .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#mermaid-svg-DedRkamhTCwf1Yf2 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-DedRkamhTCwf1Yf2 .cluster text{fill:#333;}#mermaid-svg-DedRkamhTCwf1Yf2 .cluster span{color:#333;}#mermaid-svg-DedRkamhTCwf1Yf2 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-DedRkamhTCwf1Yf2 :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<\/p>\n<p>         <span id=\"L-L-A-B\" class=\"edgeLabel L-LS-A&#039; L-LE-B\"><\/span><\/p>\n<p>         <span id=\"L-L-B-C\" class=\"edgeLabel L-LS-B&#039; L-LE-C\"><\/span><\/p>\n<p>         <span id=\"L-L-C-D\" class=\"edgeLabel L-LS-C&#039; L-LE-D\">\u5173\u952e\u9519\u8bef<\/span><\/p>\n<p>         <span id=\"L-L-C-E\" class=\"edgeLabel L-LS-C&#039; L-LE-E\">\u5e73\u53f0\u7279\u5b9a<\/span><\/p>\n<p>         <span id=\"L-L-C-F\" class=\"edgeLabel L-LS-C&#039; L-LE-F\">\u5e93\u6587\u4ef6\u95ee\u9898<\/span><\/p>\n<p>         <span id=\"L-L-D-G\" class=\"edgeLabel L-LS-D&#039; L-LE-G\"><\/span><\/p>\n<p>         <span id=\"L-L-E-H\" class=\"edgeLabel L-LS-E&#039; L-LE-H\"><\/span><\/p>\n<p>         <span id=\"L-L-F-I\" class=\"edgeLabel L-LS-F&#039; L-LE-I\"><\/span><\/p>\n<p>         <span id=\"L-L-G-J\" class=\"edgeLabel L-LS-G&#039; L-LE-J\"><\/span><\/p>\n<p>         <span id=\"L-L-H-J\" class=\"edgeLabel L-LS-H&#039; L-LE-J\"><\/span><\/p>\n<p>         <span id=\"L-L-I-J\" class=\"edgeLabel L-LS-I&#039; L-LE-J\"><\/span><\/p>\n<p>          \u7f16\u8bd1\u5668\u8b66\u544a<\/p>\n<p>          \u5206\u6790\u8b66\u544a\u7c7b\u578b<\/p>\n<p>          \u8b66\u544a\u5206\u7c7b<\/p>\n<p>          \u5fc5\u987b\u4fee\u590d<\/p>\n<p>          \u6761\u4ef6\u6291\u5236<\/p>\n<p>          \u5c40\u90e8\u6291\u5236<\/p>\n<p>          \u4fee\u6539\u4ee3\u7801\u903b\u8f91<\/p>\n<p>          \u7f16\u8bd1\u5668\u914d\u7f6e<\/p>\n<p>          pragma\u6307\u4ee4<\/p>\n<p>          \u9a8c\u8bc1\u4fee\u590d<\/p>\n<h5>&#x1f4cb; \u5e38\u89c1ARM\u7f16\u8bd1\u5668\u8b66\u544a\u5904\u7406<\/h5>\n<p>1. \u679a\u4e3e\u76f8\u5173\u8b66\u544a\u5904\u7406\u8868<\/p>\n<table>\n<tr>\u8b66\u544a\u7f16\u53f7\u63cf\u8ff0\u89e3\u51b3\u65b9\u6848\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>#66-D<\/td>\n<td>\u679a\u4e3e\u503c\u8d85\u51faint\u8303\u56f4<\/td>\n<td>#pragma diag_suppress 66<\/td>\n<td>\u5bc4\u5b58\u5668\u4f4d\u63a9\u7801<\/td>\n<\/tr>\n<tr>\n<td>#68-D<\/td>\n<td>\u6574\u6570\u8f6c\u6362\u4e22\u5931\u7cbe\u5ea6<\/td>\n<td>\u663e\u5f0f\u7c7b\u578b\u8f6c\u6362<\/td>\n<td>\u6570\u636e\u7c7b\u578b\u8f6c\u6362<\/td>\n<\/tr>\n<tr>\n<td>#177-D<\/td>\n<td>\u53d8\u91cf\u672a\u4f7f\u7528<\/td>\n<td>__attribute__((unused))<\/td>\n<td>\u8c03\u8bd5\u53d8\u91cf<\/td>\n<\/tr>\n<tr>\n<td>#550-D<\/td>\n<td>\u53d8\u91cf\u672a\u521d\u59cb\u5316<\/td>\n<td>\u521d\u59cb\u5316\u53d8\u91cf<\/td>\n<td>\u5b89\u5168\u7f16\u7a0b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>2. TI MSP432 G3507\u7279\u5b9a\u914d\u7f6e<\/p>\n<p><span class=\"token comment\">\/\/ msp432_g3507_config.h &#8211; \u5e73\u53f0\u7279\u5b9a\u914d\u7f6e<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">ifndef<\/span> <span class=\"token expression\">MSP432_G3507_CONFIG_H<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">MSP432_G3507_CONFIG_H<\/span><\/span><\/p>\n<p><span class=\"token comment\">\/\/ G3507\u7279\u5b9a\u7684\u7f16\u8bd1\u5668\u8bbe\u7f6e<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">ifdef<\/span> <span class=\"token expression\">__TI_COMPILER_VERSION__<\/span><\/span><br \/>\n    <span class=\"token comment\">\/\/ TI\u7f16\u8bd1\u5668\u8bbe\u7f6e<\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">diag_suppress <span class=\"token number\">66<\/span><\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">diag_suppress <span class=\"token number\">68<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">elif<\/span> <span class=\"token expression\"><span class=\"token function\">defined<\/span><span class=\"token punctuation\">(<\/span>__ARMCC_VERSION<span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n    <span class=\"token comment\">\/\/ Keil ARM\u7f16\u8bd1\u5668\u8bbe\u7f6e<\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">diag_suppress <span class=\"token number\">66<\/span><\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">diag_suppress <span class=\"token number\">68<\/span><\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">diag_suppress <span class=\"token number\">177<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">endif<\/span><\/span><\/p>\n<p><span class=\"token comment\">\/\/ G3507\u786c\u4ef6\u76f8\u5173\u5e38\u91cf\u91cd\u5b9a\u4e49<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">G3507_TIMER_CC4_SEL<\/span>     <span class=\"token expression\"><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">uint32_t<\/span><span class=\"token punctuation\">)<\/span><span class=\"token number\">0x80000000UL<\/span><span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">G3507_COMP_ENABLE<\/span>       <span class=\"token expression\"><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">uint32_t<\/span><span class=\"token punctuation\">)<\/span><span class=\"token number\">0x80000000UL<\/span><span class=\"token punctuation\">)<\/span><\/span><\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u5b89\u5168\u7684\u5bc4\u5b58\u5668\u64cd\u4f5c\u5b8f<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name function\">SET_BIT_SAFE<\/span><span class=\"token expression\"><span class=\"token punctuation\">(<\/span>reg<span class=\"token punctuation\">,<\/span> bit<span class=\"token punctuation\">)<\/span>   <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span>reg<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">|&#061;<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token class-name\">uint32_t<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">(<\/span>bit<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name function\">CLEAR_BIT_SAFE<\/span><span class=\"token expression\"><span class=\"token punctuation\">(<\/span>reg<span class=\"token punctuation\">,<\/span> bit<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span>reg<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&amp;&#061;<\/span> <span class=\"token operator\">~<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">uint32_t<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">(<\/span>bit<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name function\">READ_BIT_SAFE<\/span><span class=\"token expression\"><span class=\"token punctuation\">(<\/span>reg<span class=\"token punctuation\">,<\/span> bit<span class=\"token punctuation\">)<\/span>  <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span>reg<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&amp;<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token class-name\">uint32_t<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">(<\/span>bit<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">!&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><\/span><\/span><\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">endif<\/span> <span class=\"token comment\">\/\/ MSP432_G3507_CONFIG_H<\/span><\/span><\/p>\n<p>3. \u591a\u7f16\u8bd1\u5668\u517c\u5bb9\u6027\u5904\u7406<\/p>\n<p><span class=\"token comment\">\/\/ compiler_compat.h &#8211; \u7f16\u8bd1\u5668\u517c\u5bb9\u6027\u5904\u7406<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">ifndef<\/span> <span class=\"token expression\">COMPILER_COMPAT_H<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">COMPILER_COMPAT_H<\/span><\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u68c0\u6d4b\u7f16\u8bd1\u5668\u7c7b\u578b<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">if<\/span> <span class=\"token expression\"><span class=\"token function\">defined<\/span><span class=\"token punctuation\">(<\/span>__ARMCC_VERSION<span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">COMPILER_KEIL_ARM<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">elif<\/span> <span class=\"token expression\"><span class=\"token function\">defined<\/span><span class=\"token punctuation\">(<\/span>__GNUC__<span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">COMPILER_GCC<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">elif<\/span> <span class=\"token expression\"><span class=\"token function\">defined<\/span><span class=\"token punctuation\">(<\/span>__TI_COMPILER_VERSION__<span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">COMPILER_TI<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">elif<\/span> <span class=\"token expression\"><span class=\"token function\">defined<\/span><span class=\"token punctuation\">(<\/span>_MSC_VER<span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">COMPILER_MSVC<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">endif<\/span><\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u7f16\u8bd1\u5668\u7279\u5b9a\u7684\u8b66\u544a\u6291\u5236<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">ifdef<\/span> <span class=\"token expression\">COMPILER_KEIL_ARM<\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">SUPPRESS_ENUM_WARNING<\/span>    <span class=\"token expression\"><span class=\"token function\">_Pragma<\/span><span class=\"token punctuation\">(<\/span><\/span><span class=\"token string\">&#034;diag_suppress 66&#034;<\/span><span class=\"token expression\"><span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">SUPPRESS_UNUSED_WARNING<\/span>  <span class=\"token expression\"><span class=\"token function\">_Pragma<\/span><span class=\"token punctuation\">(<\/span><\/span><span class=\"token string\">&#034;diag_suppress 177&#034;<\/span><span class=\"token expression\"><span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">elif<\/span> <span class=\"token expression\"><span class=\"token function\">defined<\/span><span class=\"token punctuation\">(<\/span>COMPILER_GCC<span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">SUPPRESS_ENUM_WARNING<\/span>    <span class=\"token expression\"><span class=\"token function\">_Pragma<\/span><span class=\"token punctuation\">(<\/span><\/span><span class=\"token string\">&#034;GCC diagnostic ignored \\\\&#034;-Woverflow\\\\&#034;&#034;<\/span><span class=\"token expression\"><span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">SUPPRESS_UNUSED_WARNING<\/span>  <span class=\"token expression\"><span class=\"token function\">_Pragma<\/span><span class=\"token punctuation\">(<\/span><\/span><span class=\"token string\">&#034;GCC diagnostic ignored \\\\&#034;-Wunused-variable\\\\&#034;&#034;<\/span><span class=\"token expression\"><span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">elif<\/span> <span class=\"token expression\"><span class=\"token function\">defined<\/span><span class=\"token punctuation\">(<\/span>COMPILER_TI<span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">SUPPRESS_ENUM_WARNING<\/span>    <span class=\"token expression\"><span class=\"token function\">_Pragma<\/span><span class=\"token punctuation\">(<\/span><\/span><span class=\"token string\">&#034;diag_suppress 66&#034;<\/span><span class=\"token expression\"><span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">SUPPRESS_UNUSED_WARNING<\/span>  <span class=\"token expression\"><span class=\"token function\">_Pragma<\/span><span class=\"token punctuation\">(<\/span><\/span><span class=\"token string\">&#034;diag_suppress 177&#034;<\/span><span class=\"token expression\"><span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">else<\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">SUPPRESS_ENUM_WARNING<\/span><\/span><br \/>\n    <span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">SUPPRESS_UNUSED_WARNING<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">endif<\/span><\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u4f7f\u7528\u793a\u4f8b<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name function\">INCLUDE_TI_HEADERS<\/span><span class=\"token expression\"><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <\/span><span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token expression\"><span class=\"token keyword\">do<\/span> <span class=\"token punctuation\">{<\/span> <\/span><span class=\"token punctuation\">\\\\<\/span><br \/>\n        <span class=\"token expression\">SUPPRESS_ENUM_WARNING <\/span><span class=\"token punctuation\">\\\\<\/span><br \/>\n        <span class=\"token expression\"><span class=\"token function\">_Pragma<\/span><span class=\"token punctuation\">(<\/span><\/span><span class=\"token string\">&#034;GCC diagnostic push&#034;<\/span><span class=\"token expression\"><span class=\"token punctuation\">)<\/span> <\/span><span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token expression\"><span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">while<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><\/span><\/span><\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name function\">END_TI_HEADERS<\/span><span class=\"token expression\"><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <\/span><span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token expression\"><span class=\"token keyword\">do<\/span> <span class=\"token punctuation\">{<\/span> <\/span><span class=\"token punctuation\">\\\\<\/span><br \/>\n        <span class=\"token expression\"><span class=\"token function\">_Pragma<\/span><span class=\"token punctuation\">(<\/span><\/span><span class=\"token string\">&#034;GCC diagnostic pop&#034;<\/span><span class=\"token expression\"><span class=\"token punctuation\">)<\/span> <\/span><span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token expression\"><span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">while<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><\/span><\/span><\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">endif<\/span> <span class=\"token comment\">\/\/ COMPILER_COMPAT_H<\/span><\/span><\/p>\n<h4>\u2705\ufe0f\u95ee\u9898\u9884\u6d4b<\/h4>\n<h5>\u26a0\ufe0f \u6f5c\u5728\u95ee\u9898\u548c\u98ce\u9669\u9884\u8b66<\/h5>\n<p>1. \u5bc4\u5b58\u5668\u4f4d\u64cd\u4f5c\u5b89\u5168\u6027<\/p>\n<ul>\n<li>\u98ce\u9669&#xff1a;\u5f3a\u5236\u6291\u5236\u8b66\u544a\u53ef\u80fd\u63a9\u76d6\u771f\u6b63\u7684\u6570\u636e\u7c7b\u578b\u95ee\u9898<\/li>\n<li>\u9884\u9632&#xff1a;\u5efa\u7acb\u4e25\u683c\u7684\u5bc4\u5b58\u5668\u64cd\u4f5c\u5c01\u88c5\u51fd\u6570<\/li>\n<\/ul>\n<p><span class=\"token comment\">\/\/ \u5b89\u5168\u7684\u5bc4\u5b58\u5668\u64cd\u4f5c\u5c01\u88c5<\/span><br \/>\n<span class=\"token keyword\">typedef<\/span> <span class=\"token keyword\">struct<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">volatile<\/span> <span class=\"token class-name\">uint32_t<\/span> <span class=\"token operator\">*<\/span>reg_addr<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token class-name\">uint32_t<\/span> bit_mask<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token class-name\">uint8_t<\/span> bit_pos<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span> <span class=\"token class-name\">reg_bit_desc_t<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">static<\/span> <span class=\"token keyword\">inline<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token function\">safe_set_reg_bit<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">const<\/span> <span class=\"token class-name\">reg_bit_desc_t<\/span> <span class=\"token operator\">*<\/span>desc<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token operator\">*<\/span>desc<span class=\"token operator\">-&gt;<\/span>reg_addr <span class=\"token operator\">|&#061;<\/span> desc<span class=\"token operator\">-&gt;<\/span>bit_mask<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">static<\/span> <span class=\"token keyword\">inline<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token function\">safe_clear_reg_bit<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">const<\/span> <span class=\"token class-name\">reg_bit_desc_t<\/span> <span class=\"token operator\">*<\/span>desc<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token operator\">*<\/span>desc<span class=\"token operator\">-&gt;<\/span>reg_addr <span class=\"token operator\">&amp;&#061;<\/span> <span class=\"token operator\">~<\/span>desc<span class=\"token operator\">-&gt;<\/span>bit_mask<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">static<\/span> <span class=\"token keyword\">inline<\/span> bool <span class=\"token function\">safe_read_reg_bit<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">const<\/span> <span class=\"token class-name\">reg_bit_desc_t<\/span> <span class=\"token operator\">*<\/span>desc<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token operator\">*<\/span>desc<span class=\"token operator\">-&gt;<\/span>reg_addr <span class=\"token operator\">&amp;<\/span> desc<span class=\"token operator\">-&gt;<\/span>bit_mask<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">!&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>2. \u56fa\u4ef6\u5347\u7ea7\u517c\u5bb9\u6027<\/p>\n<ul>\n<li>\u98ce\u9669&#xff1a;TI SDK\u66f4\u65b0\u53ef\u80fd\u5f15\u5165\u65b0\u7684\u8b66\u544a\u7c7b\u578b<\/li>\n<li>\u9884\u9632&#xff1a;\u7248\u672c\u5316\u7684\u8b66\u544a\u6291\u5236\u914d\u7f6e<\/li>\n<\/ul>\n<p>3. \u591a\u4eba\u534f\u4f5c\u4e2d\u7684\u8b66\u544a\u7ba1\u7406<\/p>\n<ul>\n<li>\u98ce\u9669&#xff1a;\u4e0d\u540c\u5f00\u53d1\u8005\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u8b66\u544a\u5904\u7406\u7b56\u7565<\/li>\n<li>\u9884\u9632&#xff1a;\u7edf\u4e00\u7684\u9879\u76ee\u914d\u7f6e\u6587\u4ef6<\/li>\n<\/ul>\n<h5>&#x1f3af; \u957f\u671f\u89e3\u51b3\u65b9\u6848\u67b6\u6784<\/h5>\n<p>  #mermaid-svg-OpHu8Y8RbTNcgQHp {font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-OpHu8Y8RbTNcgQHp .error-icon{fill:#552222;}#mermaid-svg-OpHu8Y8RbTNcgQHp .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-OpHu8Y8RbTNcgQHp .edge-thickness-normal{stroke-width:2px;}#mermaid-svg-OpHu8Y8RbTNcgQHp .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-OpHu8Y8RbTNcgQHp .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-OpHu8Y8RbTNcgQHp .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-OpHu8Y8RbTNcgQHp .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-OpHu8Y8RbTNcgQHp .marker{fill:#333333;stroke:#333333;}#mermaid-svg-OpHu8Y8RbTNcgQHp .marker.cross{stroke:#333333;}#mermaid-svg-OpHu8Y8RbTNcgQHp svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-OpHu8Y8RbTNcgQHp .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-OpHu8Y8RbTNcgQHp .cluster-label text{fill:#333;}#mermaid-svg-OpHu8Y8RbTNcgQHp .cluster-label span{color:#333;}#mermaid-svg-OpHu8Y8RbTNcgQHp .label text,#mermaid-svg-OpHu8Y8RbTNcgQHp span{fill:#333;color:#333;}#mermaid-svg-OpHu8Y8RbTNcgQHp .node rect,#mermaid-svg-OpHu8Y8RbTNcgQHp .node circle,#mermaid-svg-OpHu8Y8RbTNcgQHp .node ellipse,#mermaid-svg-OpHu8Y8RbTNcgQHp .node polygon,#mermaid-svg-OpHu8Y8RbTNcgQHp .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-OpHu8Y8RbTNcgQHp .node .label{text-align:center;}#mermaid-svg-OpHu8Y8RbTNcgQHp .node.clickable{cursor:pointer;}#mermaid-svg-OpHu8Y8RbTNcgQHp .arrowheadPath{fill:#333333;}#mermaid-svg-OpHu8Y8RbTNcgQHp .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-OpHu8Y8RbTNcgQHp .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-OpHu8Y8RbTNcgQHp .edgeLabel{background-color:#e8e8e8;text-align:center;}#mermaid-svg-OpHu8Y8RbTNcgQHp .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#mermaid-svg-OpHu8Y8RbTNcgQHp .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-OpHu8Y8RbTNcgQHp .cluster text{fill:#333;}#mermaid-svg-OpHu8Y8RbTNcgQHp .cluster span{color:#333;}#mermaid-svg-OpHu8Y8RbTNcgQHp div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-OpHu8Y8RbTNcgQHp :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<\/p>\n<p>         <span id=\"L-L-A-B\" class=\"edgeLabel L-LS-A&#039; L-LE-B\"><\/span><\/p>\n<p>         <span id=\"L-L-B-C\" class=\"edgeLabel L-LS-B&#039; L-LE-C\"><\/span><\/p>\n<p>         <span id=\"L-L-C-D\" class=\"edgeLabel L-LS-C&#039; L-LE-D\"><\/span><\/p>\n<p>         <span id=\"L-L-B-B1\" class=\"edgeLabel L-LS-B&#039; L-LE-B1\"><\/span><\/p>\n<p>         <span id=\"L-L-B-B2\" class=\"edgeLabel L-LS-B&#039; L-LE-B2\"><\/span><\/p>\n<p>         <span id=\"L-L-C-C1\" class=\"edgeLabel L-LS-C&#039; L-LE-C1\"><\/span><\/p>\n<p>         <span id=\"L-L-C-C2\" class=\"edgeLabel L-LS-C&#039; L-LE-C2\"><\/span><\/p>\n<p>         <span id=\"L-L-D-D1\" class=\"edgeLabel L-LS-D&#039; L-LE-D1\"><\/span><\/p>\n<p>         <span id=\"L-L-D-D2\" class=\"edgeLabel L-LS-D&#039; L-LE-D2\"><\/span><\/p>\n<p>          \u5f53\u524d\u8b66\u544a<\/p>\n<p>          \u77ed\u671f\u6291\u5236<\/p>\n<p>          \u4e2d\u671f\u5c01\u88c5<\/p>\n<p>          \u957f\u671f\u6807\u51c6\u5316<\/p>\n<p>          pragma\u6307\u4ee4<\/p>\n<p>          \u7f16\u8bd1\u5668\u8bbe\u7f6e<\/p>\n<p>          \u5305\u88c5\u51fd\u6570<\/p>\n<p>          \u7c7b\u578b\u5b89\u5168\u63a5\u53e3<\/p>\n<p>          HAL\u6807\u51c6\u5316<\/p>\n<p>          CMSIS\u517c\u5bb9<\/p>\n<h4>\u2705\ufe0f\u5c0f\u7ed3<\/h4>\n<h5>&#x1f4cb; \u95ee\u9898\u6838\u5fc3\u603b\u7ed3<\/h5>\n<li>\u6839\u672c\u539f\u56e0&#xff1a;TI\u5b98\u65b9\u5e93\u4e2d\u7684\u679a\u4e3e\u503c0x80000000\u8d85\u51fa32\u4f4d\u6709\u7b26\u53f7\u6574\u6570\u8303\u56f4&#xff0c;\u89e6\u53d1Keil5\u7f16\u8bd1\u5668\u8b66\u544a<\/li>\n<li>\u5f71\u54cd\u8303\u56f4&#xff1a;\u4e3b\u8981\u5f71\u54cd\u7f16\u8bd1\u8fc7\u7a0b&#xff0c;\u4e0d\u5f71\u54cd\u5b9e\u9645\u529f\u80fd\u6267\u884c<\/li>\n<li>\u89e3\u51b3\u5173\u952e&#xff1a;\u4f7f\u7528\u9002\u5f53\u7684\u7f16\u8bd1\u5668pragma\u6307\u4ee4\u6291\u5236\u7279\u5b9a\u8b66\u544a\u7c7b\u578b<\/li>\n<h5>&#x1f680; \u89e3\u51b3\u65b9\u6848\u4f18\u5148\u7ea7<\/h5>\n<table>\n<tr>\u65b9\u6cd5\u5b9e\u65bd\u96be\u5ea6\u7ef4\u62a4\u6027\u63a8\u8350\u5ea6\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>pragma\u6291\u5236\u8b66\u544a<\/td>\n<td>\u2b50<\/td>\n<td>\u2b50\u2b50\u2b50\u2b50<\/td>\n<td>\u2b50\u2b50\u2b50\u2b50\u2b50<\/td>\n<td>\u6240\u6709\u60c5\u51b5<\/td>\n<\/tr>\n<tr>\n<td>\u7f16\u8bd1\u5668\u8bbe\u7f6e<\/td>\n<td>\u2b50\u2b50<\/td>\n<td>\u2b50\u2b50\u2b50\u2b50\u2b50<\/td>\n<td>\u2b50\u2b50\u2b50\u2b50<\/td>\n<td>\u9879\u76ee\u7ea7\u522b<\/td>\n<\/tr>\n<tr>\n<td>\u5305\u88c5\u5934\u6587\u4ef6<\/td>\n<td>\u2b50\u2b50\u2b50<\/td>\n<td>\u2b50\u2b50\u2b50<\/td>\n<td>\u2b50\u2b50\u2b50<\/td>\n<td>\u5927\u578b\u9879\u76ee<\/td>\n<\/tr>\n<tr>\n<td>\u91cd\u65b0\u5b9a\u4e49\u5e38\u91cf<\/td>\n<td>\u2b50\u2b50\u2b50\u2b50<\/td>\n<td>\u2b50\u2b50<\/td>\n<td>\u2b50\u2b50<\/td>\n<td>\u7279\u6b8a\u9700\u6c42<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>&#x1f4a1; \u7acb\u5373\u884c\u52a8\u5efa\u8bae<\/h5>\n<li>\u5feb\u901f\u4fee\u590d&#xff1a;\u5728\u76f8\u5173\u6e90\u6587\u4ef6\u5f00\u5934\u6dfb\u52a0#pragma diag_suppress 66<\/li>\n<li>\u9879\u76ee\u914d\u7f6e&#xff1a;\u5728Keil5\u9879\u76ee\u8bbe\u7f6e\u4e2d\u6dfb\u52a0&#8211;diag_suppress&#061;66\u7f16\u8bd1\u9009\u9879<\/li>\n<li>\u957f\u671f\u89c4\u5212&#xff1a;\u5efa\u7acb\u7edf\u4e00\u7684\u7f16\u8bd1\u5668\u8b66\u544a\u7ba1\u7406\u7b56\u7565<\/li>\n<li>\u6587\u6863\u8bb0\u5f55&#xff1a;\u8bb0\u5f55\u8b66\u544a\u6291\u5236\u7684\u539f\u56e0\u548c\u5f71\u54cd\u8303\u56f4<\/li>\n<h5>&#x1f50d; \u9a8c\u8bc1\u6210\u529f\u6807\u51c6<\/h5>\n<ul>\n<li>\u2705 \u7f16\u8bd1\u8fc7\u7a0b\u65e0#66-D\u8b66\u544a\u8f93\u51fa<\/li>\n<li>\u2705 \u7a0b\u5e8f\u529f\u80fd\u6b63\u5e38\u8fd0\u884c<\/li>\n<li>\u2705 \u5bc4\u5b58\u5668\u64cd\u4f5c\u6309\u9884\u671f\u5de5\u4f5c<\/li>\n<li>\u2705 \u56e2\u961f\u6210\u5458\u7edf\u4e00\u4f7f\u7528\u76f8\u540c\u914d\u7f6e<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u89e3\u51b3\u65b9\u6848&#xff0c;\u53ef\u4ee5\u5f7b\u5e95\u6d88\u9664TI G3507\u677f\u5b50\u4e0a\u7684\u679a\u4e3e\u8b66\u544a\u95ee\u9898&#xff0c;\u786e\u4fdd\u5f00\u53d1\u6d41\u7a0b\u987a\u7545\u8fdb\u884c\u3002<\/p>\n<p>\u2003\u2003\u5e0c\u671b\u5982\u4e0a\u63aa\u65bd\u53ca\u89e3\u51b3\u65b9\u6848\u80fd\u591f\u5e2e\u5230\u6709\u9700\u8981\u7684\u4f60\u3002<\/p>\n<p>\u2003\u2003PS&#xff1a;\u5982\u82e5\u9047\u5230\u91c7\u7eb3\u5982\u4e0b\u65b9\u6848\u8fd8\u662f\u672a\u89e3\u51b3\u7684\u540c\u5b66&#xff0c;\u5e0c\u671b\u4e0d\u8981\u62b1\u6028&amp;&amp;\u6025\u8e81&#xff0c;\u6bd5\u7adf\u5f71\u54cd\u56e0\u7d20\u4f17\u591a&#xff0c;\u6211\u5199\u51fa\u6765\u4e5f\u662f\u5e0c\u671b\u80fd\u591f\u5c3d\u6700\u5927\u52aa\u529b\u5e2e\u52a9\u5230\u540c\u7c7b\u4f3c\u95ee\u9898\u7684\u5c0f\u4f19\u4f34&#xff0c;\u5373\u628a\u4f60\u672a\u89e3\u51b3\u6216\u8005\u4ea7\u751f\u65b0Bug\u9ecf\u8d34\u5728\u8bc4\u8bba\u533a&#xff0c;\u6211\u4eec\u5927\u5bb6\u4e00\u8d77\u6765\u52aa\u529b&#xff0c;\u4e00\u8d77\u5e2e\u4f60\u770b\u770b&#xff0c;\u53ef\u4ee5\u4e0d\u54af\u3002<\/p>\n<p>\u2003\u2003\u82e5\u6709\u5bf9\u5f53\u524dBug\u6709\u4e0e\u5982\u4e0b\u63d0\u4f9b\u7684\u65b9\u6cd5\u4e0d\u4e00\u81f4&#xff0c;\u6709\u4e2a\u4e0d\u60c5\u4e4b\u8bf7&#xff0c;\u5e0c\u671b\u4f60\u80fd\u628a\u4f60\u7684\u65b0\u601d\u8def\u6216\u65b0\u65b9\u6cd5\u5206\u4eab\u5230\u8bc4\u8bba\u533a&#xff0c;\u4e00\u8d77\u5b66\u4e60&#xff0c;\u76ee\u7684\u5c31\u662f\u5e2e\u52a9\u66f4\u591a\u6240\u9700\u8981\u7684\u540c\u5b66&#xff0c;\u6b63\u6240\u8c13\u300c\u8d60\u4eba\u73ab\u7470&#xff0c;\u624b\u7559\u4f59\u9999\u300d\u3002<\/p>\n<h3>&#x1f9e7;&#x1f9e7; \u6587\u672b\u798f\u5229&#xff0c;\u7b49\u4f60\u6765\u62ff&#xff01;&#x1f9e7;&#x1f9e7;<\/h3>\n<p>\u2003\u2003\u5982\u4e0a\u95ee\u9898\u6709\u7684\u6765\u81ea\u6211\u81ea\u8eab\u9879\u76ee\u5f00\u53d1&#xff0c;\u6709\u7684\u6536\u96c6\u7f51\u7ad9&#xff0c;\u6709\u7684\u6765\u81ea\u8bfb\u8005\u2026\u5982\u6709\u4fb5\u6743&#xff0c;\u7acb\u9a6c\u5220\u9664\u3002\u518d\u8005&#xff0c;\u9488\u5bf9\u6b64\u4e13\u680f\u4e2d\u90e8\u5206\u95ee\u9898\u53ca\u5176\u95ee\u9898\u7684\u89e3\u7b54\u601d\u8def\u6216\u6b65\u9aa4\u7b49&#xff0c;\u5b58\u5728\u5c11\u90e8\u5206\u641c\u96c6\u4e8e\u5168\u7f51\u793e\u533a\u53ca\u4eba\u5de5\u667a\u80fd\u95ee\u7b54\u7b49\u6e20\u9053&#xff0c;\u82e5\u6700\u540e\u5b9e\u5728\u662f\u6ca1\u80fd\u5e2e\u52a9\u5230\u4f60&#xff0c;\u8fd8\u671b\u89c1\u8c05&#xff01;\u5e76\u975e\u6240\u6709\u7684\u89e3\u7b54\u90fd\u80fd\u89e3\u51b3\u6bcf\u4e2a\u4eba\u7684\u95ee\u9898&#xff0c;\u5728\u6b64\u5e0c\u671b\u5c4f\u5e55\u524d\u7684\u4f60\u80fd\u591f\u7ed9\u4e88\u5b9d\u8d35\u7684\u7406\u89e3&#xff0c;\u800c\u4e0d\u662f\u7acb\u523b\u6307\u8d23\u6216\u8005\u62b1\u6028&#xff01;\u5982\u679c\u4f60\u6709\u66f4\u4f18\u89e3&#xff0c;\u90a3\u5efa\u8bae\u4f60\u51fa\u6559\u7a0b\u5199\u65b9\u6848&#xff0c;\u4e00\u540c\u5b66\u4e60&#xff01;\u5171\u540c\u8fdb\u6b65\u3002<\/p>\n<p>\u2003\u2003ok&#xff0c;\u4ee5\u4e0a\u5c31\u662f\u6211\u8fd9\u671f\u7684Bug\u4fee\u590d\u5185\u5bb9\u5566&#xff0c;\u5982\u679c\u8fd8\u60f3\u67e5\u627e\u66f4\u591a\u89e3\u51b3\u65b9\u6848&#xff0c;\u4f60\u53ef\u4ee5\u770b\u770b\u6211\u4e13\u95e8\u6536\u96c6Bug\u53ca\u63d0\u4f9b\u89e3\u51b3\u65b9\u6848\u7684\u4e13\u680f\u300a\u5168\u6808Bug\u8c03\u4f18(\u5b9e\u6218\u7248)\u300b&#xff0c;\u90fd\u662f\u5b9e\u6218\u4e2d\u78b0\u5230\u7684Bug&#xff0c;\u5e0c\u671b\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002\u5230\u6b64&#xff0c;\u54b1\u4eec\u4e0b\u671f\u62dc\u62dc\u3002<\/p>\n<p>\u7801\u5b57\u4e0d\u6613&#xff0c;\u5982\u679c\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9&#xff0c;\u5e2e\u5fd9\u7ed9 bug\u83cc \u6765\u4e2a\u4e00\u952e\u4e09\u8fde(\u5173\u6ce8\u3001\u70b9\u8d5e\u3001\u6536\u85cf) &#xff0c;\u60a8\u7684\u652f\u6301\u5c31\u662f\u6211\u575a\u6301\u5199\u4f5c\u5206\u4eab\u77e5\u8bc6\u70b9\u4f20\u64ad\u6280\u672f\u7684\u6700\u5927\u52a8\u529b\u3002<\/p>\n<p>\u540c\u65f6\u4e5f\u63a8\u8350\u5927\u5bb6\u5173\u6ce8\u6211\u7684\u786c\u6838\u516c\u4f17\u53f7:\u300c\u733f\u5708\u5947\u5999\u5c4b\u300d &#xff1b;\u4ee5\u7b2c\u4e00\u624b\u5b66\u4e60bug\u83cc\u7684\u9996\u53d1\u5e72\u8d27&#xff0c;\u4e0d\u4ec5\u80fd\u5b66\u4e60\u66f4\u591a\u6280\u672f\u786c\u8d27&#xff0c;\u8fd8\u53ef\u767d\u5ad6\u6700\u65b0BAT\u5927\u5382\u9762\u8bd5\u771f\u9898\u30014000G Pdf\u6280\u672f\u4e66\u7c4d\u3001\u4e07\u4efd\u7b80\u5386\/PPT\u6a21\u677f\u3001\u6280\u672f\u6587\u7ae0Markdown\u6587\u6863\u7b49\u6d77\u91cf\u8d44\u6599&#xff0c;\u4f60\u60f3\u8981\u7684\u6211\u90fd\u6709&#xff01;<\/p>\n<h3>&#x1faf5; Who am I?<\/h3>\n<p>\u6211\u662fbug\u83cc&#xff0c;CSDN | \u6398\u91d1 | InfoQ | 51CTO | \u534e\u4e3a\u4e91 | \u963f\u91cc\u4e91 | \u817e\u8baf\u4e91 \u7b49\u793e\u533a\u535a\u5ba2\u4e13\u5bb6&#xff0c;C\u7ad9\u535a\u5ba2\u4e4b\u661fTop30&#xff0c;\u534e\u4e3a\u4e91\u591a\u5e74\u5ea6\u5341\u4f73\u535a\u4e3b&#xff0c;\u6398\u91d1\u591a\u5e74\u5ea6\u4eba\u6c14\u4f5c\u8005Top40&#xff0c;\u6398\u91d1\u7b49\u5404\u5927\u793e\u533a\u5e73\u53f0\u7b7e\u7ea6\u4f5c\u8005&#xff0c;51CTO\u5e74\u5ea6\u535a\u4e3bTop12&#xff0c;\u6398\u91d1\/InfoQ\/51CTO\u7b49\u793e\u533a\u4f18\u8d28\u521b\u4f5c\u8005&#xff1b;\u5168\u7f51\u7c89\u4e1d\u5408\u8ba1 30w&#043;&#xff1b;\u66f4\u591a\u7cbe\u5f69\u798f\u5229\u70b9\u51fb\u8fd9\u91cc&#xff1b;\u786c\u6838\u5fae\u4fe1\u516c\u4f17\u53f7\u300c\u733f\u5708\u5947\u5999\u5c4b\u300d&#xff0c;\u6b22\u8fce\u4f60\u7684\u52a0\u5165&#xff01;\u514d\u8d39\u767d\u5ad6\u6700\u65b0BAT\u4e92\u8054\u7f51\u516c\u53f8\u9762\u8bd5\u771f\u9898\u30014000G PDF\u7535\u5b50\u4e66\u7c4d\u3001\u7b80\u5386\u6a21\u677f\u7b49\u6d77\u91cf\u8d44\u6599&#xff0c;\u4f60\u60f3\u8981\u7684\u6211\u90fd\u6709&#xff0c;\u5173\u952e\u662f\u4f60\u4e0d\u6765\u62ff\u3002<\/p>\n<p> <img decoding=\"async\" width=\"780\" height=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810024949-689808cd14378.png\" \/> <\/p>\n<p>-End-<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb105\u6b21\u3002\ud83c\udfc6\u672c\u6587\u6536\u5f55\u4e8e \u300a\u5168\u6808Bug\u8c03\u4f18(\u5b9e\u6218\u7248)\u300b \u4e13\u680f\uff0c\u8be5\u4e13\u680f\u4e13\u6ce8\u4e8e\u5206\u4eab\u6211\u5728\u771f\u5b9e\u9879\u76ee\u5f00\u53d1\u4e2d\u9047\u5230\u7684\u5404\u7c7b\u7591\u96beBug\u53ca\u5176\u6df1\u5c42\u6210\u56e0\uff0c\u5e76\u7cfb\u7edf\u63d0\u4f9b\u9ad8\u6548\u3001\u53ef\u590d\u73b0\u7684\u89e3\u51b3\u601d\u8def\u548c\u5b9e\u64cd\u65b9\u6848\u3002\u65e0\u8bba\u4f60\u662f\u521a\u5165\u884c\u7684\u65b0\u624b\u5f00\u53d1\u8005\uff0c\u8fd8\u662f\u62e5\u6709\u591a\u5e74\u9879\u76ee\u7ecf\u9a8c\u7684\u8d44\u6df1\u5de5\u7a0b\u5e08\uff0c\u672c\u4e13\u680f\u90fd\u5c06\u4e3a\u4f60\u63d0\u4f9b\u4e00\u6761\u7cfb\u7edf\u5316\u3001\u9ad8\u8d28\u91cf\u7684\u95ee\u9898\u6392\u67e5\u4e0e\u4f18\u5316\u8def\u5f84\uff0c\u52a9\u529b\u4f60\u52a0\u901f\u6210\u957f\uff0c\u653b\u514b\u6280\u672f\u58c1\u5792\uff0c\u8fc8\u5411\u6280\u672f\u4ef7\u503c\u6700\u5927\u5316\u4e0e\u804c\u4e1a\u53d1\u5c55\u7684\u66f4\u9ad8\u5cf0\ud83d\ude80\uff01<\/p>\n","protected":false},"author":2,"featured_media":50574,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[4478,4938,4936,4937,4935,4934,4939],"topic":[],"class_list":["post-50578","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-bug","tag-dl_timer-h","tag-g3507","tag-keil5","tag-m0","tag-ti","tag-int"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ti\u7684M0\u7684G3507\u677f\u5b50\u7528\u7684keil5 \u5b98\u65b9\u7684dl_timer.h\u91cc\u8fd0\u884c\u4f1a\u62a5\u8b66\u544a\uff0c\u8bf4\u8d85\u51fa\u4e86int\u7684\u8303\u56f4\uff0c\u8981\u600e\u4e48\u624d\u80fd\u6d88\u9664\u8fd9\u4e2a\u8b66\u544a\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/50578.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ti\u7684M0\u7684G3507\u677f\u5b50\u7528\u7684keil5 \u5b98\u65b9\u7684dl_timer.h\u91cc\u8fd0\u884c\u4f1a\u62a5\u8b66\u544a\uff0c\u8bf4\u8d85\u51fa\u4e86int\u7684\u8303\u56f4\uff0c\u8981\u600e\u4e48\u624d\u80fd\u6d88\u9664\u8fd9\u4e2a\u8b66\u544a\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb105\u6b21\u3002\ud83c\udfc6\u672c\u6587\u6536\u5f55\u4e8e \u300a\u5168\u6808Bug\u8c03\u4f18(\u5b9e\u6218\u7248)\u300b \u4e13\u680f\uff0c\u8be5\u4e13\u680f\u4e13\u6ce8\u4e8e\u5206\u4eab\u6211\u5728\u771f\u5b9e\u9879\u76ee\u5f00\u53d1\u4e2d\u9047\u5230\u7684\u5404\u7c7b\u7591\u96beBug\u53ca\u5176\u6df1\u5c42\u6210\u56e0\uff0c\u5e76\u7cfb\u7edf\u63d0\u4f9b\u9ad8\u6548\u3001\u53ef\u590d\u73b0\u7684\u89e3\u51b3\u601d\u8def\u548c\u5b9e\u64cd\u65b9\u6848\u3002\u65e0\u8bba\u4f60\u662f\u521a\u5165\u884c\u7684\u65b0\u624b\u5f00\u53d1\u8005\uff0c\u8fd8\u662f\u62e5\u6709\u591a\u5e74\u9879\u76ee\u7ecf\u9a8c\u7684\u8d44\u6df1\u5de5\u7a0b\u5e08\uff0c\u672c\u4e13\u680f\u90fd\u5c06\u4e3a\u4f60\u63d0\u4f9b\u4e00\u6761\u7cfb\u7edf\u5316\u3001\u9ad8\u8d28\u91cf\u7684\u95ee\u9898\u6392\u67e5\u4e0e\u4f18\u5316\u8def\u5f84\uff0c\u52a9\u529b\u4f60\u52a0\u901f\u6210\u957f\uff0c\u653b\u514b\u6280\u672f\u58c1\u5792\uff0c\u8fc8\u5411\u6280\u672f\u4ef7\u503c\u6700\u5927\u5316\u4e0e\u804c\u4e1a\u53d1\u5c55\u7684\u66f4\u9ad8\u5cf0\ud83d\ude80\uff01\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/50578.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-10T02:49:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810024948-689808ccb5cd7.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/50578.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/50578.html\",\"name\":\"Ti\u7684M0\u7684G3507\u677f\u5b50\u7528\u7684keil5 \u5b98\u65b9\u7684dl_timer.h\u91cc\u8fd0\u884c\u4f1a\u62a5\u8b66\u544a\uff0c\u8bf4\u8d85\u51fa\u4e86int\u7684\u8303\u56f4\uff0c\u8981\u600e\u4e48\u624d\u80fd\u6d88\u9664\u8fd9\u4e2a\u8b66\u544a\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-10T02:49:50+00:00\",\"dateModified\":\"2025-08-10T02:49:50+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/50578.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/50578.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/50578.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ti\u7684M0\u7684G3507\u677f\u5b50\u7528\u7684keil5 \u5b98\u65b9\u7684dl_timer.h\u91cc\u8fd0\u884c\u4f1a\u62a5\u8b66\u544a\uff0c\u8bf4\u8d85\u51fa\u4e86int\u7684\u8303\u56f4\uff0c\u8981\u600e\u4e48\u624d\u80fd\u6d88\u9664\u8fd9\u4e2a\u8b66\u544a\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ti\u7684M0\u7684G3507\u677f\u5b50\u7528\u7684keil5 \u5b98\u65b9\u7684dl_timer.h\u91cc\u8fd0\u884c\u4f1a\u62a5\u8b66\u544a\uff0c\u8bf4\u8d85\u51fa\u4e86int\u7684\u8303\u56f4\uff0c\u8981\u600e\u4e48\u624d\u80fd\u6d88\u9664\u8fd9\u4e2a\u8b66\u544a\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/50578.html","og_locale":"zh_CN","og_type":"article","og_title":"Ti\u7684M0\u7684G3507\u677f\u5b50\u7528\u7684keil5 \u5b98\u65b9\u7684dl_timer.h\u91cc\u8fd0\u884c\u4f1a\u62a5\u8b66\u544a\uff0c\u8bf4\u8d85\u51fa\u4e86int\u7684\u8303\u56f4\uff0c\u8981\u600e\u4e48\u624d\u80fd\u6d88\u9664\u8fd9\u4e2a\u8b66\u544a\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb105\u6b21\u3002\ud83c\udfc6\u672c\u6587\u6536\u5f55\u4e8e \u300a\u5168\u6808Bug\u8c03\u4f18(\u5b9e\u6218\u7248)\u300b \u4e13\u680f\uff0c\u8be5\u4e13\u680f\u4e13\u6ce8\u4e8e\u5206\u4eab\u6211\u5728\u771f\u5b9e\u9879\u76ee\u5f00\u53d1\u4e2d\u9047\u5230\u7684\u5404\u7c7b\u7591\u96beBug\u53ca\u5176\u6df1\u5c42\u6210\u56e0\uff0c\u5e76\u7cfb\u7edf\u63d0\u4f9b\u9ad8\u6548\u3001\u53ef\u590d\u73b0\u7684\u89e3\u51b3\u601d\u8def\u548c\u5b9e\u64cd\u65b9\u6848\u3002\u65e0\u8bba\u4f60\u662f\u521a\u5165\u884c\u7684\u65b0\u624b\u5f00\u53d1\u8005\uff0c\u8fd8\u662f\u62e5\u6709\u591a\u5e74\u9879\u76ee\u7ecf\u9a8c\u7684\u8d44\u6df1\u5de5\u7a0b\u5e08\uff0c\u672c\u4e13\u680f\u90fd\u5c06\u4e3a\u4f60\u63d0\u4f9b\u4e00\u6761\u7cfb\u7edf\u5316\u3001\u9ad8\u8d28\u91cf\u7684\u95ee\u9898\u6392\u67e5\u4e0e\u4f18\u5316\u8def\u5f84\uff0c\u52a9\u529b\u4f60\u52a0\u901f\u6210\u957f\uff0c\u653b\u514b\u6280\u672f\u58c1\u5792\uff0c\u8fc8\u5411\u6280\u672f\u4ef7\u503c\u6700\u5927\u5316\u4e0e\u804c\u4e1a\u53d1\u5c55\u7684\u66f4\u9ad8\u5cf0\ud83d\ude80\uff01","og_url":"https:\/\/www.wsisp.com\/helps\/50578.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-10T02:49:50+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810024948-689808ccb5cd7.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"10 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/50578.html","url":"https:\/\/www.wsisp.com\/helps\/50578.html","name":"Ti\u7684M0\u7684G3507\u677f\u5b50\u7528\u7684keil5 \u5b98\u65b9\u7684dl_timer.h\u91cc\u8fd0\u884c\u4f1a\u62a5\u8b66\u544a\uff0c\u8bf4\u8d85\u51fa\u4e86int\u7684\u8303\u56f4\uff0c\u8981\u600e\u4e48\u624d\u80fd\u6d88\u9664\u8fd9\u4e2a\u8b66\u544a\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-10T02:49:50+00:00","dateModified":"2025-08-10T02:49:50+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/50578.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/50578.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/50578.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Ti\u7684M0\u7684G3507\u677f\u5b50\u7528\u7684keil5 \u5b98\u65b9\u7684dl_timer.h\u91cc\u8fd0\u884c\u4f1a\u62a5\u8b66\u544a\uff0c\u8bf4\u8d85\u51fa\u4e86int\u7684\u8303\u56f4\uff0c\u8981\u600e\u4e48\u624d\u80fd\u6d88\u9664\u8fd9\u4e2a\u8b66\u544a\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/50578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=50578"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/50578\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/50574"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=50578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=50578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=50578"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=50578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}