{"id":74531,"date":"2026-02-10T00:17:37","date_gmt":"2026-02-09T16:17:37","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/74531.html"},"modified":"2026-02-10T00:17:37","modified_gmt":"2026-02-09T16:17:37","slug":"%e8%93%9d%e7%89%99%e9%81%a5%e6%8e%a7%e7%9a%84%e7%94%b5%e5%ad%90%e5%b0%8f%e7%8b%97%ef%bc%81%e3%80%901-2-%e5%9f%ba%e4%ba%8e%e7%91%9e%e8%90%a8ra4m2%e5%8d%95%e7%89%87%e6%9c%ba%e8%ae%be%e8%ae%a1%e7%9a%84","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/74531.html","title":{"rendered":"\u84dd\u7259\u9065\u63a7\u7684\u7535\u5b50\u5c0f\u72d7\uff01\u30101.2 \u57fa\u4e8e\u745e\u8428RA4M2\u5355\u7247\u673a\u8bbe\u8ba1\u7684\u4fdd\u59c6\u7ea7\u6559\u7a0b\u3011"},"content":{"rendered":"<p>\u00a0 \u00a0 \u00a0 \u00a0 \u5728\u672c\u7bc7\u6587\u7ae0\u4e2d&#xff0c;\u4f5c\u8005\u5c06\u4ece\u96f6\u5f00\u59cb\u5e26\u9886\u5927\u5bb6\u5229\u7528\u745e\u8428RA4M2\u7cfb\u5217\u5355\u7247\u673a\u8bbe\u8ba1\u4e00\u6b3e\u5c5e\u4e8e\u81ea\u5df1\u7684\u84dd\u7259\u9065\u63a7\u5c0f\u72d7\u3002\u4ec0\u4e48&#xff1f;\u8fde\u521b\u5efa\u5de5\u7a0b\u90fd\u4e0d\u4f1a&#xff01;\u6ca1\u5173\u7cfb&#xff0c;\u4f5c\u8005\u5e26\u7740\u4f60\u4ece\u521b\u5efa\u5de5\u7a0b\u5f00\u59cb&#xff0c;\u6025\u901f\u901a\u5173&#xff01;<\/p>\n<h2 style=\"background-color:transparent\">\u4e00\u3001\u786c\u4ef6\u51c6\u5907<\/h2>\n<p>1.\u745e\u8428RA4M2\u7cfb\u5217\u5355\u7247\u673a<\/p>\n<p>2.\u4e00\u5757\u9762\u5305\u677f\u6216\u8005\u4ee5\u53ca\u753b\u597d\u7684PCB\u677f&#xff08;\u4f5c\u8005\u4f1a\u9644\u4e0a\u81ea\u5df1\u7684PCB\u5236\u677f\u6587\u4ef6\u4e0e\u5de5\u7a0b\u6587\u4ef6&#xff09;<\/p>\n<p>3.\u675c\u90a6\u7ebf\u82e5\u5e72<\/p>\n<p>4.\u53ef\u8f93\u51fa3.3v\u548c5v\u7684\u7535\u6e90\u6a21\u5757&#xff0c;3.3v\u4e3a\u5355\u7247\u673a\u548c\u8235\u673a\u4f9b\u7535&#xff0c;5v\u4e3a\u84dd\u7259\u6a21\u5757\u4f9b\u7535<\/p>\n<p>5.5\u4e2a\u53ef\u75313.3v\u7535\u538b\u9a71\u52a8\u7684SG90\u8235\u673a\u6a21\u5757<\/p>\n<p>6.DX-BT24\u84dd\u7259\u6a21\u5757&#xff08;\u4f4e\u529f\u8017\u84dd\u7259\u900f\u4f20\u6a21\u5757&#xff09;<\/p>\n<h2 style=\"background-color:transparent\">\u4e8c\u3001\u8f6f\u4ef6\u51c6\u5907<\/h2>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u5728\u6b63\u5f0f\u5f00\u59cb\u4e4b\u524d&#xff0c;\u5927\u5bb6\u9700\u8981\u51c6\u5907\u597d\u6700\u57fa\u7840\u7684\u4e24\u4e2a\u8f6f\u4ef6<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;1&#xff09;e2 studio&#xff1a;\u8fd9\u662f\u745e\u8428\u7535\u5b50&#xff08;Renesas Electronics&#xff09;\u63a8\u51fa\u7684\u4e00\u6b3e\u96c6\u6210\u5f00\u53d1\u73af\u5883&#xff08;IDE&#xff09;&#xff0c;\u4e13\u95e8\u7528\u4e8e\u745e\u8428\u5fae\u63a7\u5236\u5668&#xff08;MCU&#xff09;\u7684\u5d4c\u5165\u5f0f\u8f6f\u4ef6\u5f00\u53d1\u3002\u6211\u4eec\u9700\u8981\u7528\u5b83\u6765\u8fdb\u884c\u7a0b\u5e8f\u7684\u7f16\u5199\u3002<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;2&#xff09;Renesas Flash Programmer &#xff1a;\u8fd9\u662f\u745e\u8428\u7535\u5b50\u5b98\u65b9\u63d0\u4f9b\u7684\u4e00\u6b3e\u72ec\u7acb\u7684\u95ea\u5b58\u7f16\u7a0b\u5de5\u5177&#xff0c;\u4e13\u95e8\u7528\u4e8e\u5bf9\u745e\u8428\u5fae\u63a7\u5236\u5668&#xff08;MCU&#xff09;\u7684\u5185\u7f6e\u95ea\u5b58\u8fdb\u884c\u7f16\u7a0b&#xff08;\u70e7\u5f55&#xff09;\u548c\u64e6\u9664\u3002\u6211\u4eec\u9700\u8981\u7528\u5b83\u6765\u8fdb\u884c\u7a0b\u5e8f\u7684\u70e7\u5f55\u3002<\/p>\n<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161724-698a08948ad34.png\" \/><\/p>\n<h2>\u4e09\u3001\u5de5\u7a0b\u521b\u5efa<\/h2>\n<h3 style=\"background-color:transparent\">1.\u9009\u53d6\u5de5\u4f5c\u7a7a\u95f4<\/h3>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u6211\u4eec\u53cc\u51fb\u6253\u5f00 e2 studio&#xff0c;\u4f1a\u8df3\u51fa\u4e00\u4e2a\u5f39\u7a97\u8981\u6c42\u6211\u4eec\u9009\u53d6\u5de5\u4f5c\u7a7a\u95f4&#xff0c;\u7b2c\u4e00\u6b21\u4f7f\u7528e2 studio\u7684\u540c\u5b66\u4eec\u53ef\u4ee5\u5148\u5728C\u76d8\u6216\u8005D\u76d8\u4e2d\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939&#xff0c;\u8d77\u540d\u4e3ae2s_workspace\u4f5c\u4e3a\u5de5\u4f5c\u7a7a\u95f4&#xff0c;\u4e5f\u5c31\u662f\u540e\u7eed\u5f00\u53d1\u4e2d\u6211\u4eec\u5de5\u7a0b\u6587\u4ef6\u5b58\u653e\u7684\u5730\u65b9&#xff0c;\u521b\u5efa\u5b8c\u6210\u540e&#xff0c;\u6211\u4eec\u56de\u5230\u6b64\u9875\u9762\u70b9\u51fb\u6d4f\u89c8&#xff0c;\u9009\u62e9\u81ea\u5df1\u521a\u521a\u521b\u5efa\u7684\u6587\u4ef6\u5939\u4f5c\u4e3a\u5de5\u4f5c\u7a7a\u95f4&#xff0c;\u968f\u540e\u6211\u4eec\u70b9\u51fb\u542f\u52a8\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161724-698a0894d9898.png\" \/><\/p>\n<h3>2.\u521b\u5efa\u65b0\u5de5\u7a0b<\/h3>\n<h4>2.1\u65b0\u5efa\u9879\u76ee<\/h4>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u8fdb\u5165e2 studio\u540e&#xff0c;\u6211\u4eec\u70b9\u51fb\u5de6\u4e0a\u89d2\u7684\u6587\u4ef6&#xff0c;\u9009\u62e9\u65b0\u5efa&#xff0c;\u63a5\u7740\u9009\u62e9\u745e\u8428C\/C&#043;&#043;\u9879\u76ee&#xff0c;\u6700\u540e\u70b9\u51fbRenesas RA<img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161724-698a0894ef997.png\" \/><\/p>\n<h4 style=\"background-color:transparent\">\u00a02.2\u9009\u53d6\u5de5\u7a0b\u6a21\u677f<\/h4>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u8fdb\u5165\u9879\u76ee\u6a21\u677f\u7a97\u53e3\u540e\u6211\u4eec\u9009\u62e9\u7b2c\u4e00\u4e2a\u4f5c\u4e3a\u9879\u76ee\u6a21\u677f&#xff0c;\u70b9\u51fb\u4e0b\u4e00\u6b65<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161725-698a089526001.png\" \/><\/p>\n<h4 style=\"background-color:transparent\">2.3\u786e\u5b9a\u9879\u76ee\u540d\u79f0<\/h4>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u63a5\u4e0b\u6765\u4e3a\u6211\u4eec\u7684\u9879\u76ee\u8d77\u4e00\u4e2a\u81ea\u5df1\u559c\u6b22\u7684\u540d\u5b57&#xff0c;\u6bd4\u5982\u4f5c\u8005\u8d77\u7684\u9879\u76ee\u540d\u5c31\u662fDog&#xff0c;\u8d77\u5b8c\u540d\u540e\u70b9\u51fb\u4e0b\u4e00\u6b65<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161725-698a08954145f.png\" \/><\/p>\n<h4>2.4\u8bbe\u5907\u4e0e\u5de5\u5177\u9009\u62e9<\/h4>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u63a5\u4e0b\u6765\u7684\u914d\u7f6e\u81f3\u5173\u91cd\u8981&#xff1a;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;1&#xff09;\u786e\u8ba4FSP\u7248\u672c&#xff1a;\u4f5c\u8005\u4f7f\u7528\u7684\u7248\u672c\u4e3a5.9.0&#xff0c;\u4e0d\u540c\u7248\u672c\u4e4b\u95f4&#xff0c;\u51fd\u6570\u7684\u4f7f\u7528\u53ef\u80fd\u5b58\u5728\u4e00\u4e9b\u5dee\u5f02\u3002<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;2&#xff09;\u9009\u53d6\u5355\u7247\u673a\u578b\u53f7&#xff1a;\u5728Device\u4e00\u680f\u4e2d\u9009\u53d6\u6211\u4eec\u7684\u5355\u7247\u673a\u578b\u53f7&#xff0c;\u4f5c\u8005\u9009\u7528\u7684\u662f R7FA4M2AD3CFL<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;3&#xff09;\u8c03\u8bd5\u5668\u9009\u53d6&#xff1a;\u4f7f\u7528USB-typec\u7ebf\u5411\u5355\u7247\u673a\u4e2d\u70e7\u5f55\u7a0b\u5e8f\u7684\u540c\u5b66\u5c06\u8c03\u8bd5\u5668\u914d\u7f6e\u4e3aJ-Llink ARM<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;4&#xff09;\u5de5\u5177\u94fe\u9009\u53d6&#xff1a;\u9009\u62e9\u7b2c\u4e8c\u4e2aGNU ARM Embedded \u5de5\u5177\u94fe&#xff0c;\u8fd9\u662f\u4e00\u5957\u7531 ARM \u5b98\u65b9\u7ef4\u62a4\u548c\u652f\u6301\u7684\u3001\u7528\u4e8e\u5f00\u53d1 ARM Cortex-M \u548c Cortex-R \u7cfb\u5217\u5fae\u63a7\u5236\u5668\u7684\u514d\u8d39\u3001\u5f00\u6e90\u7f16\u8bd1\u5de5\u5177\u96c6\u5408\u3002<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;5&#xff09;\u70b9\u51fb\u4e0b\u4e00\u6b65\u00a0 \u00a0 \u00a0 \u00a0<img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161725-698a08957ee97.png\" \/><\/p>\n<p style=\"text-align:center\">\n<h4>2.5\u5176\u4ed6\u914d\u7f6e<\/h4>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u5728\u5b8c\u6210\u4e0a\u4e00\u6b65\u914d\u7f6e\u4e4b\u540e&#xff0c;\u63a5\u4e0b\u6765\u5f39\u51fa\u7684\u914d\u7f6e\u9875\u9762\u6211\u4eec\u5168\u90e8\u4fdd\u6301\u9ed8\u8ba4\u9009\u9879&#xff0c;\u4e00\u76f4\u70b9\u51fb\u4e0b\u4e00\u6b65&#xff0c;\u76f4\u5230\u51fa\u73b0\u5b8c\u6210&#xff0c;\u70b9\u51fb\u5b8c\u6210\u3002\u8fd9\u6837\u6211\u4eec\u5c31\u6210\u529f\u521b\u5efa\u4e86\u4e00\u4e2a\u65b0\u5de5\u7a0b&#xff01;\u6b64\u65f6\u6211\u4eec\u8fdb\u5165\u4e86\u56fe\u5f62\u5316\u914d\u7f6e\u754c\u9762\u3002<\/p>\n<h3>\u56db\u3001\u56fe\u5f62\u5316\u914d\u7f6e<\/h3>\n<h4>1.\u6253\u5f00\u56fe\u5f62\u5316\u914d\u7f6e<\/h4>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u4e00\u822c\u6765\u8bf4\u5728\u521b\u5efa\u5b8c\u5de5\u7a0b\u540e\u7cfb\u7edf\u4f1a\u76f4\u63a5\u6253\u5f00\u56fe\u5f62\u5316\u914d\u7f6e\u754c\u9762&#xff0c;\u4f46\u5f53\u6211\u4eec\u8bef\u5173\u95ed\u56fe\u5f62\u5316\u914d\u7f6e\u65f6&#xff0c;\u6211\u4eec\u53ef\u4ee5\u5728\u5de6\u4fa7\u7684\u9879\u76ee\u8d44\u6e90\u7ba1\u7406\u5668\u4e2d\u91cd\u65b0\u627e\u5230\u5e76\u6253\u5f00\u5b83\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161725-698a0895e69a3.png\" \/><\/p>\n<h4 style=\"background-color:transparent\">2.\u65f6\u949f\u6811\u914d\u7f6e<\/h4>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u5728\u56fe\u5f62\u5316\u914d\u7f6e\u6700\u4e0b\u65b9\u7684\u83dc\u5355\u680f\u4e2d\u9009\u62e9Clocks\u6253\u5f00\u65f6\u949f\u6811&#xff0c;\u5982\u56fe\u8fdb\u884c\u914d\u7f6e&#xff0c;\u5c06\u65f6\u949f\u4e3b\u9891\u63a7\u5236\u5728\u5408\u9002\u7684\u8303\u56f4\u5185&#xff0c;\u6709stm32\u57fa\u7840\u7684\u540c\u5b66\u53ef\u4ee5\u6309\u81ea\u5df1\u7684\u9700\u6c42\u4fee\u6539\u3002\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161726-698a0896067b5.png\" \/><\/p>\n<h4>3.\u8c03\u8bd5\u5f15\u811a\u914d\u7f6e<\/h4>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5728\u5355\u7247\u673a\u4e2dPin\u5c31\u662f\u5f15\u811a\u7684\u610f\u601d&#xff0c;\u6211\u4eec\u70b9\u51fb\u6700\u4e0b\u65b9\u83dc\u5355\u680f\u4e2d\u7684Pins\u6253\u5f00\u5f15\u811a\u914d\u7f6e\u754c\u9762\u3002\u5728\u5de6\u4fa7\u9009\u62e9\u7cfb\u7edf\u8c03\u8bd5\u9009\u9879&#xff0c;\u7136\u540e\u5c06\u8c03\u8bd5\u6a21\u5f0f\u6539\u4e3aSWD&#xff08;Serial Wire Debug&#xff09;&#xff0c;\u518d\u5c06\u5f15\u811a\u5982\u56fe\u5206\u522b\u914d\u7f6e\u4e3aP300\u548cP108\u3002\u5982\u679c\u81ea\u5904\u9ed8\u8ba4\u914d\u7f6e\u4e3aSWD\u7684\u540c\u5b66\u5219\u53ef\u4ee5\u4e0d\u6539\u3002<img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161726-698a08967053e.png\" \/><\/p>\n<h4>4.\u5b9a\u65f6\u5668\u914d\u7f6e<\/h4>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u5728\u672c\u9879\u76ee\u4e2d\u9700\u8981\u7528PWM\u6ce2\u6765\u9a71\u52a8\u8235\u673a\u65cb\u8f6c&#xff0c;\u6240\u4ee5\u6211\u4eec\u9700\u8981\u5c06\u5b9a\u65f6\u5668\u914d\u7f6e\u4e3aPWM\u6ce2\u751f\u6210\u6a21\u5f0f&#xff0c;\u5176\u5b9ePWM\u6ce2\u5c31\u662f\u7531\u5355\u7247\u673a\u4ea7\u751f\u7684\u56fa\u5b9a\u9891\u7387\u548c\u5360\u7a7a\u6bd4\u7684\u65b9\u6ce2&#xff0c;\u60f3\u8981\u4e86\u89e3PWM\u548c\u8235\u673a\u9a71\u52a8\u65b9\u5f0f\u7684\u540c\u5b66\u53ef\u4ee5\u53bb\u770b\u4f5c\u8005\u53e6\u5916\u4e00\u7bc7\u5173\u4e8e\u667a\u80fd\u5783\u573e\u6876\u8bbe\u8ba1\u7684\u6587\u7ae0&#xff0c;\u91cc\u9762\u505a\u4e86\u8be6\u7ec6\u7684\u4ecb\u7ecd&#xff0c;\u63a5\u4e0b\u6765\u6211\u4eec\u5f00\u59cb\u914d\u7f6e:<\/p>\n<h5>4.1\u521b\u5efa\u7ec4\u4ef6<\/h5>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u70b9\u51fb\u6700\u4e0b\u65b9\u83dc\u5355\u680f\u91cc\u7684Stacks\u8fdb\u5165\u8f6f\u4ef6\u7ec4\u4ef6\u4e0e\u9a71\u52a8\u6a21\u5757\u914d\u7f6e&#xff0c;\u8fdb\u5165\u8be5\u754c\u9762\u540e\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684<\/p>\n<p>New Stacks\u9009\u9879&#xff0c;\u5728\u5176\u4e2d\u9009\u62e9Timers&#xff0c;\u968f\u540e\u9009\u62e9PWM\u751f\u6210\u6a21\u5f0f\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161726-698a0896e9a5e.jpg\" \/><\/p>\n<h5>4.2\u5c5e\u6027\u914d\u7f6e<\/h5>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u521b\u5efa\u5b8c\u6210\u540e\u6211\u4eec\u9009\u4e2d\u521a\u521a\u521b\u5efa\u7684\u7ec4\u4ef6&#xff0c;\u8fdb\u884c\u5c5e\u6027\u914d\u7f6e\u3002<\/p>\n<p>&#xff08;1&#xff09;\u4fee\u6539\u5b9a\u65f6\u5668\u7684\u540d\u5b57&#xff0c;\u8fd9\u91cc\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u8fdb\u884c\u4fee\u6539&#xff0c;\u6839\u672c\u76ee\u7684\u662f\u4e3a\u4e86\u63d0\u9ad8\u540e\u7eed\u4ee3\u7801\u7684\u53ef\u8bfb\u6027&#xff0c;\u8981\u4e0d\u7136\u5230\u65f6\u5019\u5199\u7740\u5199\u7740\u90fd\u4e0d\u77e5\u9053\u81ea\u5df1\u8fd9\u4e2a\u5b9a\u65f6\u5668\u662f\u5e72\u5565\u7684\u4e86&#xff0c;\u6bd4\u5982\u4f5c\u8005\u5c06\u8981\u4f7f\u7528\u8fd9\u4e2a\u5b9a\u65f6\u5668\u751f\u6210PWM\u6765\u9a71\u52a8\u7535\u5b50\u5c0f\u72d7\u7684\u53f3\u524d\u817f&#xff0c;\u5c31\u53ef\u4ee5\u628a\u540d\u5b57\u6539\u6210R_Front_Foot<\/p>\n<p>&#xff08;2&#xff09;\u9009\u53d6\u5b9a\u65f6\u5668\u901a\u9053&#xff0c;\u4e0d\u540c\u578b\u53f7\u7684\u5355\u7247\u673a\u81ea\u5e26\u7684\u5b9a\u65f6\u5668\u901a\u9053\u53ef\u80fd\u6709\u6240\u5dee\u5f02&#xff0c;\u5177\u4f53\u6709\u54ea\u4e9b\u5b9a\u65f6\u5668\u901a\u9053&#xff0c;\u611f\u5174\u8da3\u7684\u53ef\u4ee5\u53bb\u67e5\u9605\u624b\u518c&#xff0c;\u4e0d\u786e\u5b9a\u7684\u5c31\u6309\u7167\u4f5c\u8005\u7684\u914d\u7f6e\u65b9\u6cd5\u8fdb\u884c\u914d\u7f6e<\/p>\n<p>&#xff08;3&#xff09;<span style=\"color:#000000\">\u5c06Mode\u8bbe\u4e3a <\/span><span style=\"color:#000000\">Periodic<\/span><span style=\"color:#000000\">&#xff0c;\u8868\u793a\u8be5\u5b9a\u65f6\u5668\u5de5\u4f5c\u5728\u5468\u671f\u6a21\u5f0f&#xff0c;\u5c06\u5728\u8bbe\u5b9a\u5468\u671f\u5185\u91cd\u590d\u8fd0\u884c<\/span><\/p>\n<p><span style=\"color:#000000\">&#xff08;4&#xff09;\u5c06Period\u8bbe\u7f6e\u4e3a50&#xff0c;\u5e76\u628aPeriod Unit\u8bbe\u7f6e\u4e3a50HZ&#xff0c;\u56e0\u4e3aSG90\u8235\u673a\u53ea\u80fd\u4f7f\u7528\u9891\u7387\u4e3a50hz\u7684PWM\u6ce2\u8fdb\u884c\u9a71\u52a8&#xff0c;\u5177\u4f53\u4e3a\u4ec0\u4e48\u53ef\u4ee5\u770b\u4f5c\u8005\u4e4b\u524d\u667a\u80fd\u5783\u573e\u6876\u90a3\u7bc7\u6587\u7ae0&#xff0c;\u91cc\u9762\u6709\u63d0\u53ca<\/span><\/p>\n<p><span style=\"color:#000000\">&#xff08;5&#xff09;\u521d\u59cb\u65f6\u5c06Duty Cycle Percent\u8bbe\u7f6e\u4e3a <\/span><span style=\"color:#000000\">50%<\/span><span style=\"color:#000000\">&#xff0c;\u8868\u793a <\/span><span style=\"color:#000000\">PWM <\/span><span style=\"color:#000000\">\u8f93\u51fa\u4fe1\u53f7\u7684\u9ad8\u7535\u5e73\u65f6\u95f4\u5360\u5468\u671f50%&#xff0c;\u4f46\u662f\u6211\u4eec\u540e\u9762\u63a7\u5236\u8235\u673a\u65f6\u4f1a\u6539\u53d8\u5360\u7a7a\u6bd4&#xff0c;\u8fd9\u91cc\u53ef\u4ee5\u8bbe\u7f6e\u6210\u522b\u7684\u6570<\/span><\/p>\n<p><span style=\"color:#000000\">&#xff08;6&#xff09;\u5c06GTIOCA Output Enabled\u8bbe\u7f6e\u4e3a <\/span><span style=\"color:#000000\">True<\/span><span style=\"color:#000000\">&#xff0c;\u542f\u7528 <\/span><span style=\"color:#000000\">GTIOCA<\/span><span style=\"color:#000000\">\u5f15\u811a\u7684\u8f93\u51fa\u529f\u80fd&#xff0c;\u8fd9\u6837\u6211\u4eec\u7684PWM\u4fe1\u53f7\u624d\u80fd\u901a\u8fc7\u5f15\u811a\u5411\u5916\u8f93\u51fa<\/span><\/p>\n<p>&#xff08;7&#xff09;\u5c06GTIOCA Stop Level\u8bbe\u4e3a Pin Level Low&#xff0c;\u8868\u793a\u5b9a\u65f6\u5668\u505c\u6b62\u65f6 GTIOCA \u8f93\u51fa\u4f4e\u7535\u5e73\u3002<\/p>\n<p>&#xff08;8&#xff09;\u6700\u540e\u6211\u4eec\u9009\u62e9\u5408\u9002\u7684\u8f93\u51fa\u5f15\u811a&#xff0c;\u8fd9\u91cc\u4f5c\u8005\u9009\u62e9\u7684\u662fP407<\/p>\n<h5><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161727-698a0897bb576.png\" \/>\u00a04.3\u5176\u4ed6\u5b9a\u65f6\u5668\u914d\u7f6e<\/h5>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u914d\u7f6e\u5b8c\u53f3\u524d\u817f\u540e\u6211\u4eec\u518d\u8fdb\u884c\u53e6\u5916\u56db\u4e2a\u5b9a\u65f6\u5668\u7684\u914d\u7f6e&#xff0c;\u5206\u522b\u63a7\u5236\u5269\u4e0b\u67654\u4e2a\u8235\u673a&#xff0c;\u5982\u6cd5\u70ae\u5236&#xff0c;\u6d41\u7a0b\u90fd\u662f\u4e00\u6837\u7684&#xff0c;\u8fd9\u91cc\u5c31\u4e0d\u518d\u8d58\u8ff0&#xff0c;\u76f4\u63a5\u653e\u4e0a\u914d\u7f6e\u56fe\u7247~<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161729-698a089992038.png\" \/><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161730-698a089ac58c7.png\" \/><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161732-698a089c0102b.png\" \/><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161733-698a089d3edd3.png\" \/><\/p>\n<h4>5.\u4e32\u53e3\u914d\u7f6e<\/h4>\n<h5>5.1\u521b\u5efa\u7ec4\u4ef6<\/h5>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u50cf\u5b9a\u65f6\u5668\u914d\u7f6e\u4e00\u6837&#xff0c;\u6211\u4eec\u9996\u5148\u521b\u5efa\u7ec4\u4ef6&#xff0c;\u5982\u56fe\u6309\u6b65\u9aa4\u8fdb\u884c\u914d\u7f6e&#xff0c;\u7167\u6837\u5148\u70b9\u51fbNew Stacks&#xff0c;\u968f\u540e\u9009\u62e9Connectivity&#xff0c;\u6700\u540e\u9009\u62e9UART&#xff08;r_sci_uart&#xff09;<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161734-698a089e787ba.jpg\" \/><\/p>\n<h5>5.2\u5c5e\u6027\u914d\u7f6e<\/h5>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u70b9\u51fb\u6211\u4eec\u521a\u521a\u521b\u5efa\u7684\u4e32\u53e3\u7ec4\u4ef6&#xff0c;\u6211\u4eec\u8fdb\u884c\u5c5e\u6027\u914d\u7f6e<\/p>\n<p>&#xff08;1&#xff09;\u7531\u4e8e\u6211\u4eec\u521b\u5efa\u7684\u4e32\u53e3\u7ec4\u4ef6\u5c06\u7528\u4e8e\u548c\u84dd\u7259\u6a21\u5757\u901a\u4fe1&#xff0c;\u6240\u4ee5\u6211\u4eec\u4e0d\u59a8\u5c06\u5b83\u7684\u540d\u5b57\u6539\u4e3aBlue_Tooth<\/p>\n<p>&#xff08;2&#xff09;\u9009\u62e9\u5408\u9002\u7684\u4e32\u53e3\u901a\u9053&#xff0c;\u5982\u679c\u9009\u62e9\u4e86\u9519\u8bef\u7684\u4e32\u53e3\u901a\u9053\u4f1a\u62a5\u9519<\/p>\n<p>&#xff08;3&#xff09;\u7531\u4e8e\u4f5c\u8005\u9009\u7528\u7684\u84dd\u7259\u6a21\u5757\u662fBT24&#xff0c;\u6240\u4ee5\u6570\u636e\u4f4d&#xff0c;\u6821\u9a8c\u4f4d\u548c\u505c\u6b62\u4f4d\u90fd\u4fdd\u6301\u9ed8\u8ba4&#xff0c;\u5982\u679c\u4f60\u9009\u7528\u7684\u662f\u5176\u4ed6\u84dd\u7259\u6a21\u5757\u9700\u8981\u6839\u636e\u6240\u9009\u84dd\u7259\u6a21\u5757\u7684\u53c2\u6570\u8fdb\u884c\u4fee\u6539<\/p>\n<p>&#xff08;4&#xff09;\u8bbe\u7f6e\u6ce2\u7279\u7387&#xff0c;BT24\u84dd\u7259\u6a21\u5757\u9700\u8981\u7684\u6ce2\u7279\u7387\u662f9600&#xff0c;\u53ea\u6709\u5f53\u6ce2\u7279\u7387\u76f8\u540c\u65f6&#xff0c;\u5355\u7247\u673a\u624d\u80fd\u548c\u84dd\u7259\u6a21\u5757\u5b9e\u73b0\u901a\u4fe1<\/p>\n<p>&#xff08;5&#xff09;\u6253\u5f00\u6ce2\u7279\u7387\u8c03\u5236\u6a21\u5f0f&#xff0c;\u5355\u7247\u673a\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u81ea\u9002\u5e94\u7684\u8c03\u5236\u6ce2\u7279\u7387<\/p>\n<p>&#xff08;6&#xff09;\u5f00\u542f\u4e32\u53e3\u7684\u4e2d\u65ad\u56de\u8c03\u6a21\u5f0f&#xff0c;\u521d\u59cb\u65f6Callback\u8fd9\u4e00\u884c\u4f1a\u663e\u793aNULL\u8868\u793a\u672a\u5f00\u542f&#xff0c;\u6211\u4eec\u7ed9\u5b83\u547d\u540d\u540e\u5219\u9ed8\u8ba4\u5f00\u59cb&#xff0c;\u6b64\u5904\u6700\u597d\u540e\u7f00\u52a0\u4e0acallback&#xff0c;\u5728\u540e\u7eed\u4ee3\u7801\u7f16\u5199\u4e2d\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u7684\u5206\u8fa8\u51fa\u8fd9\u662f\u4e2d\u65ad\u56de\u8c03\u51fd\u6570\u3002\u4e2d\u65ad\u56de\u8c03\u987e\u540d\u601d\u4e49&#xff0c;\u5f53\u6ee1\u8db3\u7279\u6b8a\u6761\u4ef6\u65f6\u5c06\u4f1a\u6253\u65ad\u4e3b\u7a0b\u5e8f\u800c\u53bb\u6267\u884c\u8be5\u51fd\u6570\u4e2d\u7684\u5185\u5bb9&#xff0c;\u6bd4\u5982\u5f53\u4e32\u53e3\u4fe1\u53f7\u63a5\u6536\u5b8c\u6210\u65f6\u4f1a\u89e6\u53d1\u4e2d\u65ad&#xff0c;\u5728Callback\u4e0b\u65b9\u6709\u5217\u4e3e\u89e6\u53d1\u4e2d\u65ad\u7684\u4e8b\u4ef6<\/p>\n<p>&#xff08;7&#xff09;\u4e2d\u65ad\u4e8b\u4ef6\u7684\u4f18\u5148\u7ea7\u53ef\u4ee5\u4fdd\u6301\u9ed8\u8ba4&#xff0c;\u56e0\u4e3a\u6211\u4eec\u7684\u7a0b\u5e8f\u4e0d\u662f\u5f88\u590d\u6742&#xff0c;\u5f53\u524d\u53ea\u6709\u8fd9\u4e00\u4e2a\u4e2d\u65ad<\/p>\n<p>&#xff08;8&#xff09;\u9009\u53d6\u5408\u9002\u7684\u5f15\u811a\u8fdb\u884c\u914d\u7f6e&#xff0c;TX\u662f\u5355\u7247\u673a\u53d1\u51fa\u4fe1\u53f7\u7684\u5f15\u811a&#xff0c;RX\u662f\u5355\u7247\u673a\u63a5\u6536\u4fe1\u53f7\u7684\u5f15\u811a&#xff0c;\u90a3\u4e48\u5230\u65f6\u5019\u5355\u7247\u673a\u7684TX\u5c31\u5f97\u548c\u84dd\u7259\u6a21\u5757\u7684RX\u8fdb\u884c\u8fde\u63a5&#xff0c;\u800c\u5355\u7247\u673a\u7684RX\u5219\u5f97\u548c\u84dd\u7259\u6a21\u5757\u7684TX\u8fdb\u884c\u8fde\u63a5\u3002<br \/>\n\u00a0<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161734-698a089ec7670.png\" \/><\/p>\n<\/p>\n<h4>6.Generate Project Content<\/h4>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u5728\u5b8c\u6210\u6240\u6709\u7684\u56fe\u5f62\u5316\u914d\u7f6e\u540e\u4e00\u5b9a\u8981\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684<span style=\"color:#6eaad7\">Generate Project Content<\/span><span style=\"color:#0d0016\">&#xff0c;<\/span>\u5b83\u7684\u6838\u5fc3\u4f5c\u7528\u662f\u5c06\u4f60\u5728 FSP \u914d\u7f6e\u89c6\u56fe\u4e2d\u8fdb\u884c\u7684\u6240\u6709\u56fe\u5f62\u5316\u8bbe\u7f6e&#xff0c;\u8f6c\u6362\u4e3a\u5b9e\u9645\u7684\u9879\u76ee\u6e90\u4ee3\u7801\u548c\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<h2>\u4e94\u3001\u4ee3\u7801\u7f16\u5199<\/h2>\n<h3>1.PWM\u9a71\u52a8\u7f16\u5199<\/h3>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;1&#xff09;\u5728\u8fd9\u90e8\u5206\u4e2d\u6211\u4eec\u4f1a\u7528\u5230\u8bb8\u591a\u4e0e\u5b9a\u65f6\u5668\u76f8\u5173\u7684\u51fd\u6570&#xff0c;\u4f46\u7531\u4e8e\u6211\u4eec\u8fd9\u662f\u901f\u6210\u6559\u7a0b&#xff0c;\u540c\u5b66\u4eec\u53ea\u9700\u8981\u5b66\u4f1a\u600e\u4e48\u79fb\u690d\u5c31\u884c\u4e86\u3002\u6240\u6709\u5e26_ctrl\u548c_cfg\u540e\u7f00\u7684\u90fd\u662f\u7cfb\u7edf\u5df2\u7ecf\u521b\u5efa\u597d\u7684\u7ed3\u6784\u4f53&#xff0c;\u6211\u4eec\u53ea\u9700\u8981\u5c06\u5b83\u4eec\u524d\u9762\u7684\u90e8\u5206\u6362\u6210\u81ea\u5df1\u521b\u5efa\u7684\u5b9a\u65f6\u5668\u7684\u540d\u5b57&#xff0c;\u81ea\u5b9a\u4e49\u51fd\u6570\u7684\u540d\u79f0\u4e5f\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u559c\u597d\u8fdb\u884c\u4fee\u6539\u3002<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;2&#xff09;\u63a5\u4e0b\u6765\u6211\u4eec\u9700\u8981\u5c06\u4f5c\u8005\u63d0\u4f9b\u7684\u4ee3\u7801\u642c\u8fd0\u5230\u81ea\u5df1\u7684\u5de5\u7a0b\u4e2d&#xff0c;\u6211\u4eec\u5728\u5de6\u4fa7\u7684\u9879\u76ee\u8d44\u6e90\u7ba1\u7406\u5668\u4e2d\u627e\u5230src\u6587\u4ef6\u5939&#xff0c;\u53f3\u952e&#xff0c;\u9009\u62e9\u65b0\u5efa&#xff0c;\u9009\u62e9\u65b0\u5efa\u6e90\u6587\u4ef6&#xff0c;\u8bb0\u4f4f\u4e3a\u65b0\u5efa\u6e90\u6587\u4ef6\u547d\u540d\u65f6\u4e00\u5b9a\u8981\u52a0\u4e0a.c\u540e\u7f00<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161735-698a089f6eefb.png\" \/><\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;3&#xff09;\u521b\u5efa\u5b8c\u6210\u540e\u5c06\u4e0b\u9762\u8fd9\u6bb5\u4ee3\u7801\u590d\u5236\u5230\u6e90\u6587\u4ef6\u4e2d&#xff0c;\u62a5\u9519\u5185\u5bb9\u5148\u4e0d\u8981\u7ba1<\/p>\n<p>#include &#034;pwm.h&#034;<\/p>\n<p>\/\/\u53f3\u524d\u817f\u521d\u59cb\u5316<br \/>\nvoid R_Front_Init(void)<br \/>\n{<br \/>\n    \/* \u521d\u59cb\u5316 GPT \u6a21\u5757 *\/<br \/>\n    R_GPT_Open(&amp;R_Front_Foot_ctrl, &amp;R_Front_Foot_cfg);<br \/>\n    \/* \u542f\u52a8 GPT \u5b9a\u65f6\u5668 *\/<br \/>\n    R_GPT_Start(&amp;R_Front_Foot_ctrl);<br \/>\n}<\/p>\n<p>\/\/\u5de6\u524d\u817f\u521d\u59cb\u5316<br \/>\nvoid L_Front_Init(void)<br \/>\n{<br \/>\n    \/* \u521d\u59cb\u5316 GPT \u6a21\u5757 *\/<br \/>\n    R_GPT_Open(&amp;L_Front_Foot_ctrl, &amp;L_Front_Foot_cfg);<br \/>\n    \/* \u542f\u52a8 GPT \u5b9a\u65f6\u5668 *\/<br \/>\n    R_GPT_Start(&amp;L_Front_Foot_ctrl);<br \/>\n}<br \/>\n\/\/\u53f3\u540e\u817f\u521d\u59cb\u5316<br \/>\nvoid R_Rear_Init(void)<br \/>\n{<br \/>\n    \/* \u521d\u59cb\u5316 GPT \u6a21\u5757 *\/<br \/>\n    R_GPT_Open(&amp;R_Rear_Foot_ctrl, &amp;R_Rear_Foot_cfg);<br \/>\n    \/* \u542f\u52a8 GPT \u5b9a\u65f6\u5668 *\/<br \/>\n    R_GPT_Start(&amp;R_Rear_Foot_ctrl);<br \/>\n}<br \/>\n\/\/\u5de6\u540e\u817f\u521d\u59cb\u5316<br \/>\nvoid L_Rear_Init(void)<br \/>\n{<br \/>\n    \/* \u521d\u59cb\u5316 GPT \u6a21\u5757 *\/<br \/>\n    R_GPT_Open(&amp;L_Rear_Foot_ctrl, &amp;L_Rear_Foot_cfg);<br \/>\n    \/* \u542f\u52a8 GPT \u5b9a\u65f6\u5668 *\/<br \/>\n    R_GPT_Start(&amp;L_Rear_Foot_ctrl);<br \/>\n}<br \/>\n\/\/\u5c3e\u5df4\u521d\u59cb\u5316<br \/>\nvoid Tail_Init(void)<br \/>\n{<br \/>\n    \/* \u521d\u59cb\u5316 GPT \u6a21\u5757 *\/<br \/>\n    R_GPT_Open(&amp;Tail_ctrl, &amp;Tail_cfg);<br \/>\n    \/* \u542f\u52a8 GPT \u5b9a\u65f6\u5668 *\/<br \/>\n    R_GPT_Start(&amp;Tail_ctrl);<br \/>\n}<\/p>\n<p>\/\/\u8bbe\u7f6e\u53f3\u524d\u817f\u7684\u5360\u7a7a\u6bd4<br \/>\nvoid R_Front_SetDuty(uint8_t duty)<br \/>\n{<br \/>\n    timer_info_t info1;<br \/>\n    uint32_t current_period_counts1;<br \/>\n    uint32_t duty_cycle_counts1;<\/p>\n<p>    if (duty &gt; 100)<br \/>\n        duty &#061; 100; \/\/\u9650\u5236\u5360\u7a7a\u6bd4\u8303\u56f4&#xff1a;0~100<\/p>\n<p>    \/* \u83b7\u5f97GPT\u7684\u4fe1\u606f *\/<br \/>\n    R_GPT_InfoGet(&amp;R_Front_Foot_ctrl, &amp;info1);<\/p>\n<p>    \/* \u83b7\u5f97\u8ba1\u65f6\u5668\u4e00\u4e2a\u5468\u671f\u9700\u8981\u7684\u8ba1\u6570\u6b21\u6570 *\/<br \/>\n    current_period_counts1 &#061; info1.period_counts;<\/p>\n<p>    \/* \u6839\u636e\u5360\u7a7a\u6bd4\u548c\u4e00\u4e2a\u5468\u671f\u7684\u8ba1\u6570\u6b21\u6570\u8ba1\u7b97GTCCR\u5bc4\u5b58\u5668\u7684\u503c *\/<br \/>\n    duty_cycle_counts1 &#061; (uint32_t)(((uint64_t) current_period_counts1 *(100 &#8211; duty)) \/ 100);<\/p>\n<p>    \/* \u6700\u540e\u8c03\u7528FSP\u5e93\u51fd\u6570\u8bbe\u7f6e\u5360\u7a7a\u6bd4 *\/<br \/>\n    R_GPT_DutyCycleSet(&amp;R_Front_Foot_ctrl, duty_cycle_counts1, GPT_IO_PIN_GTIOCA);<br \/>\n}<\/p>\n<p>\/\/\u8bbe\u7f6e\u5de6\u524d\u817f\u7684\u5360\u7a7a\u6bd4<br \/>\nvoid L_Front_SetDuty(uint8_t duty)<br \/>\n{<br \/>\n    timer_info_t info;<br \/>\n    uint32_t current_period_counts;<br \/>\n    uint32_t duty_cycle_counts;<\/p>\n<p>    if (duty &gt; 100)<br \/>\n        duty &#061; 100; \/\/\u9650\u5236\u5360\u7a7a\u6bd4\u8303\u56f4&#xff1a;0~100<\/p>\n<p>    \/* \u83b7\u5f97GPT\u7684\u4fe1\u606f *\/<br \/>\n    R_GPT_InfoGet(&amp;L_Front_Foot_ctrl, &amp;info);<\/p>\n<p>    \/* \u83b7\u5f97\u8ba1\u65f6\u5668\u4e00\u4e2a\u5468\u671f\u9700\u8981\u7684\u8ba1\u6570\u6b21\u6570 *\/<br \/>\n    current_period_counts &#061; info.period_counts;<\/p>\n<p>    \/* \u6839\u636e\u5360\u7a7a\u6bd4\u548c\u4e00\u4e2a\u5468\u671f\u7684\u8ba1\u6570\u6b21\u6570\u8ba1\u7b97GTCCR\u5bc4\u5b58\u5668\u7684\u503c *\/<br \/>\n    duty_cycle_counts &#061; (uint32_t)(((uint64_t) current_period_counts *(100 &#8211; duty)) \/ 100);<\/p>\n<p>    \/* \u6700\u540e\u8c03\u7528FSP\u5e93\u51fd\u6570\u8bbe\u7f6e\u5360\u7a7a\u6bd4 *\/<br \/>\n    R_GPT_DutyCycleSet(&amp;L_Front_Foot_ctrl, duty_cycle_counts, GPT_IO_PIN_GTIOCA);<br \/>\n}<\/p>\n<p>\/\/\u8bbe\u7f6e\u5de6\u540e\u817f\u7684\u5360\u7a7a\u6bd4<br \/>\nvoid L_Rear_SetDuty(uint8_t duty)<br \/>\n{<br \/>\n    timer_info_t info;<br \/>\n    uint32_t current_period_counts;<br \/>\n    uint32_t duty_cycle_counts;<\/p>\n<p>    if (duty &gt; 100)<br \/>\n        duty &#061; 100; \/\/\u9650\u5236\u5360\u7a7a\u6bd4\u8303\u56f4&#xff1a;0~100<\/p>\n<p>    \/* \u83b7\u5f97GPT\u7684\u4fe1\u606f *\/<br \/>\n    R_GPT_InfoGet(&amp;L_Rear_Foot_ctrl, &amp;info);<\/p>\n<p>    \/* \u83b7\u5f97\u8ba1\u65f6\u5668\u4e00\u4e2a\u5468\u671f\u9700\u8981\u7684\u8ba1\u6570\u6b21\u6570 *\/<br \/>\n    current_period_counts &#061; info.period_counts;<\/p>\n<p>    \/* \u6839\u636e\u5360\u7a7a\u6bd4\u548c\u4e00\u4e2a\u5468\u671f\u7684\u8ba1\u6570\u6b21\u6570\u8ba1\u7b97GTCCR\u5bc4\u5b58\u5668\u7684\u503c *\/<br \/>\n    duty_cycle_counts &#061; (uint32_t)(((uint64_t) current_period_counts *(100 &#8211; duty)) \/ 100);<\/p>\n<p>    \/* \u6700\u540e\u8c03\u7528FSP\u5e93\u51fd\u6570\u8bbe\u7f6e\u5360\u7a7a\u6bd4 *\/<br \/>\n    R_GPT_DutyCycleSet(&amp;L_Rear_Foot_ctrl, duty_cycle_counts, GPT_IO_PIN_GTIOCA);<br \/>\n}<br \/>\n\/\/\u8bbe\u7f6e\u53f3\u540e\u817f\u7684\u5360\u7a7a\u6bd4<br \/>\nvoid R_Rear_SetDuty(uint8_t duty)<br \/>\n{<br \/>\n    timer_info_t info;<br \/>\n    uint32_t current_period_counts;<br \/>\n    uint32_t duty_cycle_counts;<\/p>\n<p>    if (duty &gt; 100)<br \/>\n        duty &#061; 100; \/\/\u9650\u5236\u5360\u7a7a\u6bd4\u8303\u56f4&#xff1a;0~100<\/p>\n<p>    \/* \u83b7\u5f97GPT\u7684\u4fe1\u606f *\/<br \/>\n    R_GPT_InfoGet(&amp;R_Rear_Foot_ctrl, &amp;info);<\/p>\n<p>    \/* \u83b7\u5f97\u8ba1\u65f6\u5668\u4e00\u4e2a\u5468\u671f\u9700\u8981\u7684\u8ba1\u6570\u6b21\u6570 *\/<br \/>\n    current_period_counts &#061; info.period_counts;<\/p>\n<p>    \/* \u6839\u636e\u5360\u7a7a\u6bd4\u548c\u4e00\u4e2a\u5468\u671f\u7684\u8ba1\u6570\u6b21\u6570\u8ba1\u7b97GTCCR\u5bc4\u5b58\u5668\u7684\u503c *\/<br \/>\n    duty_cycle_counts &#061; (uint32_t)(((uint64_t) current_period_counts *(100 &#8211; duty)) \/ 100);<\/p>\n<p>    \/* \u6700\u540e\u8c03\u7528FSP\u5e93\u51fd\u6570\u8bbe\u7f6e\u5360\u7a7a\u6bd4 *\/<br \/>\n    R_GPT_DutyCycleSet(&amp;R_Rear_Foot_ctrl, duty_cycle_counts, GPT_IO_PIN_GTIOCA);<br \/>\n}<br \/>\n\/\/\u8bbe\u7f6e\u5c3e\u5df4\u7684\u5360\u7a7a\u6bd4<br \/>\nvoid Tail_SetDuty(uint8_t duty)<br \/>\n{<br \/>\n    timer_info_t info;<br \/>\n    uint32_t current_period_counts;<br \/>\n    uint32_t duty_cycle_counts;<\/p>\n<p>    if (duty &gt; 100)<br \/>\n        duty &#061; 100; \/\/\u9650\u5236\u5360\u7a7a\u6bd4\u8303\u56f4&#xff1a;0~100<\/p>\n<p>    \/* \u83b7\u5f97GPT\u7684\u4fe1\u606f *\/<br \/>\n    R_GPT_InfoGet(&amp;Tail_ctrl, &amp;info);<\/p>\n<p>    \/* \u83b7\u5f97\u8ba1\u65f6\u5668\u4e00\u4e2a\u5468\u671f\u9700\u8981\u7684\u8ba1\u6570\u6b21\u6570 *\/<br \/>\n    current_period_counts &#061; info.period_counts;<\/p>\n<p>    \/* \u6839\u636e\u5360\u7a7a\u6bd4\u548c\u4e00\u4e2a\u5468\u671f\u7684\u8ba1\u6570\u6b21\u6570\u8ba1\u7b97GTCCR\u5bc4\u5b58\u5668\u7684\u503c *\/<br \/>\n    duty_cycle_counts &#061; (uint32_t)(((uint64_t) current_period_counts *(100 &#8211; duty)) \/ 100);<\/p>\n<p>    \/* \u6700\u540e\u8c03\u7528FSP\u5e93\u51fd\u6570\u8bbe\u7f6e\u5360\u7a7a\u6bd4 *\/<br \/>\n    R_GPT_DutyCycleSet(&amp;Tail_ctrl, duty_cycle_counts, GPT_IO_PIN_GTIOCA);<br \/>\n}<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;4&#xff09;\u63a5\u7740\u6211\u4eec\u5982\u6cd5\u70ae\u5236&#xff0c;\u5728src\u6587\u4ef6\u5939\u65b0\u5efa\u4e00\u4e2a\u6e90\u6587\u4ef6&#xff0c;\u540c\u6837\u5728\u4e3a\u6e90\u6587\u4ef6\u547d\u540d\u65f6\u4e00\u5b9a\u8981\u52a0\u4e0a.h\u540e\u7f00&#xff0c;\u521b\u5efa\u5b8c\u6210\u540e\u5c06\u4f5c\u8005\u5173\u4e8ePWM\u9a71\u52a8\u6e90\u6587\u4ef6\u7684\u4ee3\u7801\u590d\u5236\u5230\u4f60\u6240\u521b\u5efa\u7684\u6e90\u6587\u4ef6\u4e2d<\/p>\n<p>#ifndef PWM_PWM_H_<br \/>\n#define PWM_PWM_H_<\/p>\n<p>#include &#034;hal_data.h&#034;<br \/>\n\/\/\u6a21\u5757\u521d\u59cb\u5316<br \/>\nvoid R_Front_Init(void);<br \/>\nvoid L_Front_Init(void);<br \/>\nvoid R_Rear_Init(void);<br \/>\nvoid L_Rear_Init(void);<br \/>\nvoid Tail_Init(void);<\/p>\n<p>\/\/\u5360\u7a7a\u6bd4\u8bbe\u7f6e<br \/>\nvoid R_Front_SetDuty(uint8_t duty);<br \/>\nvoid L_Front_SetDuty(uint8_t duty);<br \/>\nvoid R_Rear_SetDuty(uint8_t duty);<br \/>\nvoid L_Rear_SetDuty(uint8_t duty);<br \/>\nvoid Tail_SetDuty(uint8_t duty);<\/p>\n<p>#endif \/* PWM_PWM_H_ *\/<\/p>\n<h3>2.\u5c0f\u72d7\u52a8\u4f5c\u51fd\u6570\u7f16\u5199<\/h3>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;1&#xff09;\u63a7\u5236\u8235\u673a\u65f6\u53ea\u80fd\u7528\u9891\u7387\u4e3a50hz&#xff0c;\u5360\u7a7a\u6bd4\u4e3a2.5%\u523012.5%\u7684PWM\u6ce2\u63a7\u5236&#xff0c;\u6839\u636e\u4f5c\u8005\u521a\u521a\u5728PWM\u6e90\u6587\u4ef6\u4e2d\u4e3a\u5927\u5bb6\u63d0\u4f9b\u7684\u8bbe\u7f6e\u5360\u7a7a\u6bd4\u7684\u51fd\u6570&#xff0c;\u6211\u4eec\u53ea\u9700\u8981\u5728\u51fd\u6570\u4e2d\u586b\u51652~13\u4e4b\u95f4\u7684\u6574\u6570&#xff0c;\u5373\u53ef\u63a7\u5236\u8235\u673a\u57280~180\u5ea6\u4e4b\u95f4\u65cb\u8f6c\u3002<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;2&#xff09;\u7531\u6b64&#xff0c;\u6211\u4eec\u53ef\u4ee5\u8bbe\u8ba1\u51fa\u591a\u6837\u5316\u7684\u52a8\u4f5c&#xff0c;\u4e0b\u9762\u4f5c\u8005\u540c\u6837\u4e3a\u5927\u5bb6\u63d0\u4f9b\u4e86\u63a7\u5236\u52a8\u4f5c\u7684\u6e90\u6587\u4ef6\u4e0e\u5934\u6587\u4ef6&#xff0c;\u5f53\u7136\u4f5c\u8005\u7ed9\u51fa\u7684\u6570\u503c\u662f\u57fa\u4e8e\u4f5c\u8005\u8235\u673a\u7684\u6446\u653e\u4f4d\u7f6e\u6d4b\u7b97\u51fa\u6765\u7684\u5408\u9002\u6570\u503c&#xff0c;\u5982\u679c\u8235\u673a\u7684\u5b89\u653e\u4f4d\u7f6e\u4e0e\u4f5c\u8005\u4e0d\u540c&#xff0c;\u90a3\u4e48\u4f60\u9700\u8981\u81ea\u5df1\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8c03\u6574\u5360\u7a7a\u6bd4&#xff0c;\u60f3\u8981\u81ea\u5df1\u8bbe\u8ba1\u65b0\u7684\u52a8\u4f5c\u4e5f\u662f\u4e00\u4e2a\u9053\u7406\u3002<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;3&#xff09;\u4e0b\u56fe\u662f\u4f5c\u8005\u8235\u673a\u7684\u6446\u653e\u65b9\u4f4d&#xff08;\u7b2c\u4e8c\u957f\u56fe\u4ece\u5de6\u5f80\u53f3\u6570\u7b2c\u4e00\u4e2a\u8235\u673a\u662f\u5de6\u524d\u817f&#xff09;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"225\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161735-698a089f838a6.jpg\" width=\"300\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"225\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161735-698a089fd46fb.jpg\" width=\"300\" \/><\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;4&#xff09;\u4e0b\u9762\u662f\u52a8\u4f5c\u63a7\u5236\u7684\u6e90\u6587\u4ef6<\/p>\n<p>#include &#034;action.h&#034;<br \/>\n#include &#034;PWM.h&#034;<\/p>\n<p>void stand()\/\/\u7ad9\u8d77\u6765<br \/>\n{<br \/>\n    R_Front_SetDuty(7);<br \/>\n    L_Front_SetDuty(7);<br \/>\n    R_Rear_SetDuty(7);<br \/>\n    L_Rear_SetDuty(7);<\/p>\n<p>}<br \/>\nvoid sleep()\/\/\u8db4\u4e0b<br \/>\n{<br \/>\n    R_Front_SetDuty(3);<br \/>\n    L_Front_SetDuty(11);<br \/>\n    R_Rear_SetDuty(3);<br \/>\n    L_Rear_SetDuty(11);<\/p>\n<p>}<\/p>\n<p>void Forward()\/\/\u524d\u8fdb<br \/>\n{<br \/>\n    for(int i &#061; 0;i&lt;5;i&#043;&#043;)<br \/>\n    {<br \/>\n        R_Front_SetDuty(10);<br \/>\n        L_Rear_SetDuty(4);<br \/>\n        R_Rear_SetDuty(10);<br \/>\n        L_Front_SetDuty(4);<br \/>\n        R_BSP_SoftwareDelay(150, BSP_DELAY_UNITS_MILLISECONDS);<\/p>\n<p>        R_Front_SetDuty(7);<br \/>\n        L_Rear_SetDuty(7);<br \/>\n        R_Rear_SetDuty(10);<br \/>\n        L_Front_SetDuty(4);<br \/>\n        R_BSP_SoftwareDelay(150, BSP_DELAY_UNITS_MILLISECONDS);<\/p>\n<p>        R_Front_SetDuty(7);<br \/>\n        L_Rear_SetDuty(7);<br \/>\n        R_Rear_SetDuty(7);<br \/>\n        L_Front_SetDuty(7);<br \/>\n        R_BSP_SoftwareDelay(150, BSP_DELAY_UNITS_MILLISECONDS);<\/p>\n<p>        R_Front_SetDuty(10);<br \/>\n        L_Rear_SetDuty(4);<br \/>\n        R_Rear_SetDuty(7);<br \/>\n        L_Front_SetDuty(7);<br \/>\n        R_BSP_SoftwareDelay(150, BSP_DELAY_UNITS_MILLISECONDS);<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p>void Turn_Right()<br \/>\n{<br \/>\n    L_Front_SetDuty(10);<br \/>\n    for(int i &#061; 0;i&lt;5;i&#043;&#043;)<br \/>\n    {<br \/>\n        R_Front_SetDuty(4);<br \/>\n        R_Rear_SetDuty(10);<br \/>\n        L_Rear_SetDuty(10);<br \/>\n        R_BSP_SoftwareDelay(250, BSP_DELAY_UNITS_MILLISECONDS);<\/p>\n<p>        R_Front_SetDuty(10);<br \/>\n        R_Rear_SetDuty(4);<br \/>\n        L_Rear_SetDuty(4);<br \/>\n        R_BSP_SoftwareDelay(250, BSP_DELAY_UNITS_MILLISECONDS);<br \/>\n    }<br \/>\n}<\/p>\n<p>    void Turn_Left()<br \/>\n    {<br \/>\n        R_Front_SetDuty(10);<br \/>\n        for(int i &#061; 0;i&lt;5;i&#043;&#043;)<br \/>\n        {<br \/>\n            L_Front_SetDuty(4);<br \/>\n            R_Rear_SetDuty(10);<br \/>\n            L_Rear_SetDuty(10);<br \/>\n            R_BSP_SoftwareDelay(250, BSP_DELAY_UNITS_MILLISECONDS);<\/p>\n<p>            L_Front_SetDuty(10);<br \/>\n            R_Rear_SetDuty(4);<br \/>\n            L_Rear_SetDuty(4);<br \/>\n            R_BSP_SoftwareDelay(250, BSP_DELAY_UNITS_MILLISECONDS);<br \/>\n        }<br \/>\n    }<\/p>\n<p>    void Shake_Tail()<br \/>\n    {<br \/>\n        R_Front_SetDuty(3);<br \/>\n        L_Front_SetDuty(11);<br \/>\n        R_Rear_SetDuty(7);<br \/>\n        L_Rear_SetDuty(7);<br \/>\n        for(int i &#061; 0;i&lt;5;i&#043;&#043;)<br \/>\n        {<br \/>\n            Tail_SetDuty(3);<br \/>\n            R_BSP_SoftwareDelay(250, BSP_DELAY_UNITS_MILLISECONDS);<br \/>\n            Tail_SetDuty(11);<br \/>\n            R_BSP_SoftwareDelay(250, BSP_DELAY_UNITS_MILLISECONDS);<br \/>\n        }<br \/>\n    }<\/p>\n<p>    void Shake_Hand()<br \/>\n    {<br \/>\n        R_Rear_SetDuty(3);<br \/>\n        L_Rear_SetDuty(11);<br \/>\n        L_Front_SetDuty(7);<br \/>\n        for(int i &#061; 0;i&lt;5;i&#043;&#043;)<br \/>\n        {<br \/>\n            R_Front_SetDuty(12);<br \/>\n            R_BSP_SoftwareDelay(250, BSP_DELAY_UNITS_MILLISECONDS);<br \/>\n            R_Front_SetDuty(9);<br \/>\n            R_BSP_SoftwareDelay(250, BSP_DELAY_UNITS_MILLISECONDS);<br \/>\n        }<\/p>\n<p>    }<\/p>\n<p>    void Gasp()<br \/>\n    {<br \/>\n        R_Rear_SetDuty(7);<br \/>\n        L_Rear_SetDuty(7);<br \/>\n        R_Front_SetDuty(7);<br \/>\n        L_Front_SetDuty(7);<\/p>\n<p>    }<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;5&#xff09;\u4e0b\u9762\u662f\u52a8\u4f5c\u9a71\u52a8\u7684\u6e90\u6587\u4ef6<\/p>\n<p>#ifndef ACTION_H_<br \/>\n#define ACTION_H_<\/p>\n<p>void stand();<br \/>\nvoid sleep();\/\/\u8db4\u4e0b<br \/>\nvoid Forward();\/\/\u524d\u8fdb<br \/>\nvoid Turn_Left();<br \/>\nvoid Turn_Right();<br \/>\nvoid Shake_Tail();<br \/>\nvoid Shake_Hand();<br \/>\nvoid Gasp();<\/p>\n<p>#endif \/* ACTION_H_ *\/<\/p>\n<h3>3.\u4e3b\u51fd\u6570\u7f16\u5199<\/h3>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;1&#xff09;\u5728\u5de6\u4fa7\u9879\u76ee\u8d44\u6e90\u7ba1\u7406\u5668\u4e2d\u6253\u5f00src\u6587\u4ef6&#xff0c;\u5176\u4e2d\u7684hal_entry.c\u5c31\u662f\u6211\u4eec\u7684\u4e3b\u51fd\u6570\u6587\u4ef6&#xff0c;\u5728\u5f00\u5934\u5148\u5f15\u5165\u6211\u4eec\u521a\u521a\u521b\u5efa\u7684\u4e24\u4e2a\u5934\u6587\u4ef6<\/p>\n<p>#include &#034;PWM.h&#034;<br \/>\n#include &#034;action.h&#034;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;2&#xff09;\u9996\u5148\u6211\u4eec\u627e\u5230 void hal_entry(void) \u51fd\u6570&#xff0c;\u5728\u5176\u4e2d\u521d\u59cb\u5316\u6a21\u5757&#xff0c;\u5e76\u4e14\u5f00\u542f\u4e32\u53e3\u63a5\u6536<\/p>\n<p>void hal_entry(void)<br \/>\n{<br \/>\n    \/* TODO: add your own code here *\/<br \/>\n     R_Front_Init();\/\/\u521d\u59cb\u5316\u53f3\u524d\u817f<br \/>\n     L_Front_Init();\/\/\u521d\u59cb\u5316\u5de6\u524d\u817f<br \/>\n     R_Rear_Init();\/\/\u521d\u59cb\u5316\u53f3\u540e\u817f<br \/>\n     L_Rear_Init();\/\/\u521d\u59cb\u5316\u5de6\u540e\u817f<br \/>\n     Tail_Init();\/\/\u521d\u59cb\u5316\u5c3e\u5df4<\/p>\n<p>     R_SCI_UART_Open(&amp;Blue_Tooth_ctrl,&amp;Blue_Tooth_cfg);\/\/\u5f00\u542f\u4e32\u53e3<br \/>\n     R_SCI_UART_Read(&amp;Blue_Tooth_ctrl,MODE,1);\/\/\u5f00\u542f\u4e32\u53e3\u63a5\u6536<br \/>\n}<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;3&#xff09;\u7531\u4e8e\u6211\u4eec\u7684\u7535\u5b50\u5c0f\u72d7\u5b58\u5728\u591a\u79cd\u52a8\u4f5c\u6a21\u5f0f&#xff0c;\u6211\u4eec\u5c06\u4ee3\u7801\u653e\u5728while&#xff08;1&#xff09;\u6b7b\u5faa\u73af\u4e2d&#xff0c;\u4e0d\u65ad\u5224\u65ad\u5f53\u524d\u662f\u5426\u8981\u505a\u52a8\u4f5c&#xff0c;\u518d\u4f7f\u7528\u4e00\u4e2aswitch\u8bed\u53e5\u6765\u5224\u65ad\u5f53\u524d\u7a76\u7adf\u8be5\u6267\u884c\u54ea\u4e2a\u52a8\u4f5c&#xff0c;\u5e76\u5728\u6267\u884c\u5b8c\u6210\u52a8\u4f5c\u540e\u518d\u6b21\u6253\u5f00\u4e32\u53e3\u63a5\u6536<\/p>\n<p>while (1)<br \/>\n     {<br \/>\n         if(Flag &#061;&#061; 1)<br \/>\n         {<br \/>\n             Flag &#061; 0;<br \/>\n             switch(MODE[0])\/\/\u884c\u4e3a\u6a21\u5f0f\u5224\u522b<br \/>\n             {<br \/>\n                 case Stand_mode:<br \/>\n                      stand();<br \/>\n                      break;<br \/>\n                 case Sleep_mode:<br \/>\n                     sleep();<br \/>\n                     break;<br \/>\n                 case Forward_mode:<br \/>\n                     Forward();<br \/>\n                     break;<br \/>\n                 case Turn_Left_mode:<br \/>\n                     Turn_Left();<br \/>\n                     break;<br \/>\n                 case Turn_Right_mode:<br \/>\n                     Turn_Right();<br \/>\n                     break;<br \/>\n                 case Tail_mode:<br \/>\n                     Shake_Tail();<br \/>\n                     break;<br \/>\n                 case Shake_Hand_mode:<br \/>\n                     Shake_Hand();<br \/>\n                     break;<br \/>\n                 case Gasp_mode:<br \/>\n                     Gasp();<br \/>\n                     break;<br \/>\n                 default:<br \/>\n                     break;<br \/>\n             }<br \/>\n             R_SCI_UART_Read(&amp;Blue_Tooth_ctrl,MODE,1);\/\/\u5f00\u542f\u4e32\u53e3\u63a5\u6536<br \/>\n         }<\/p>\n<p>         R_BSP_SoftwareDelay(20, BSP_DELAY_UNITS_MILLISECONDS);<\/p>\n<p>     }<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;4&#xff09;\u6a21\u5f0f\u7684\u5207\u6362\u6211\u4eec\u653e\u5728\u4e2d\u65ad\u56de\u8c03\u51fd\u6570\u4e2d&#xff0c;\u5f53\u4e32\u53e3\u63a5\u6536\u5b8c\u6210\u6570\u636e\u540e&#xff0c;\u4f1a\u4e2d\u65ad\u4e3b\u51fd\u6570\u8fdb\u5165\u56de\u8c03\u51fd\u6570&#xff0c;\u6211\u4eec\u5728\u8be5\u51fd\u6570\u4e2d\u5c06\u662f\u5426\u6267\u884c\u52a8\u4f5c\u7684\u6807\u5fd7\u4f4d\u7f6e1&#xff0c;\u544a\u8bc9\u4e3b\u51fd\u6570\u53ef\u4ee5\u5f00\u59cb\u505a\u52a8\u4f5c\u4e86<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;5&#xff09;\u4f5c\u8005\u901a\u8fc7\u624b\u673a\u84dd\u7259\u52a9\u624b\u53d1\u9001\u7684\u4fe1\u53f7\u662f\u5b57\u7b26\u7c7b\u578b\u768412345\u7b49\u7b49\u6570\u5b57&#xff0c;\u4ed6\u4eec\u7684\u672c\u8d28\u662fAscll\u7801&#xff0c;\u5e76\u4e0d\u662f\u771f\u6b63\u7684\u6570\u5b571234&#xff0c;\u6211\u4eec\u9700\u8981\u7ecf\u8fc7\u5904\u7406&#xff0c;\u5c06\u4ed6\u4eec\u4e0e\u5b57\u7b260\u76f8\u51cf\u4ece\u800c\u5c06\u4ed6\u4eec\u8f6c\u5316\u4e3a\u6574\u6570\u7c7b\u578b\u76841234\u7528\u4e8eswitch\u4e2d\u6a21\u5f0f\u7684\u5224\u65ad<\/p>\n<p>uint8_t MODE[1];<br \/>\nuint8_t Flag &#061; 0;<br \/>\nvoid Blue_Tooth_Callback(uart_callback_args_t *p_args)<br \/>\n{<br \/>\n    if(p_args-&gt;event &#061;&#061; UART_EVENT_RX_COMPLETE)<br \/>\n    {<br \/>\n        Flag &#061; 1;<br \/>\n        MODE[0] &#061; MODE[0] &#8211; &#039;0&#039;;<br \/>\n        \/\/R_SCI_UART_Write(&amp;Blue_Tooth_ctrl,MODE,1);\/\/\u5f00\u542f\u4e32\u53e3\u63a5\u6536<br \/>\n    }<br \/>\n}<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;6&#xff09;\u4e3a\u4e86\u63d0\u5347\u4ee3\u7801\u7684\u53ef\u8bfb\u6027&#xff0c;\u6211\u4eec\u901a\u8fc7\u5b8f\u5b9a\u4e49\u5c061234\u6539\u6210\u66f4\u597d\u8fa8\u8ba4\u7684\u65b9\u5f0f<\/p>\n<p>\/\/\u6a21\u5f0f\u5b9a\u4e49\u533a<br \/>\n#define Stand_mode 0        \/\/\u7ad9\u7acb<br \/>\n#define Sleep_mode 1        \/\/\u7761\u89c9<br \/>\n#define Forward_mode 2      \/\/\u524d\u8fdb<br \/>\n#define Turn_Left_mode 3    \/\/\u5de6\u8f6c<br \/>\n#define Turn_Right_mode 4   \/\/\u53f3\u8f6c<br \/>\n#define Tail_mode 5         \/\/\u6447\u5c3e\u5df4<br \/>\n#define Shake_Hand_mode 6   \/\/\u63e1\u624b<br \/>\n#define Gasp_mode 7         \/\/\u54c8\u6c14<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 &#xff08;7&#xff09;\u4e0b\u9762\u662f\u4e3b\u51fd\u6570\u4e2d\u5b8c\u6574\u7684\u4ee3\u7801\u5c55\u793a<\/p>\n<p>#include &#034;hal_data.h&#034;<br \/>\n#include &#034;PWM.h&#034;<br \/>\n#include &#034;action.h&#034;<\/p>\n<p>\/\/\u6a21\u5f0f\u5b9a\u4e49\u533a<br \/>\n#define Stand_mode 0        \/\/\u7ad9\u7acb<br \/>\n#define Sleep_mode 1        \/\/\u7761\u89c9<br \/>\n#define Forward_mode 2      \/\/\u524d\u8fdb<br \/>\n#define Turn_Left_mode 3    \/\/\u5de6\u8f6c<br \/>\n#define Turn_Right_mode 4   \/\/\u53f3\u8f6c<br \/>\n#define Tail_mode 5         \/\/\u6447\u5c3e\u5df4<br \/>\n#define Shake_Hand_mode 6   \/\/\u63e1\u624b<br \/>\n#define Gasp_mode 7         \/\/\u54c8\u6c14<\/p>\n<p>FSP_CPP_HEADER<br \/>\nvoid R_BSP_WarmStart(bsp_warm_start_event_t event);<br \/>\nFSP_CPP_FOOTER<\/p>\n<p>uint8_t MODE[1];<br \/>\nuint8_t Flag &#061; 0;<br \/>\nvoid Blue_Tooth_Callback(uart_callback_args_t *p_args)<br \/>\n{<br \/>\n    if(p_args-&gt;event &#061;&#061; UART_EVENT_RX_COMPLETE)<br \/>\n    {<br \/>\n        Flag &#061; 1;<br \/>\n        MODE[0] &#061; MODE[0] &#8211; &#039;0&#039;;<br \/>\n        \/\/R_SCI_UART_Write(&amp;Blue_Tooth_ctrl,MODE,1);\/\/\u5f00\u542f\u4e32\u53e3\u63a5\u6536<br \/>\n    }<br \/>\n}<\/p>\n<p>\/*******************************************************************************************************************\/\/**<br \/>\n * main() is generated by the RA Configuration editor and is used to generate threads if an RTOS is used.  This function<br \/>\n * is called by main() when no RTOS is used.<br \/>\n **********************************************************************************************************************\/<br \/>\nvoid hal_entry(void)<br \/>\n{<br \/>\n    \/* TODO: add your own code here *\/<br \/>\n     R_Front_Init();\/\/\u521d\u59cb\u5316\u53f3\u524d\u817f<br \/>\n     L_Front_Init();\/\/\u521d\u59cb\u5316\u5de6\u524d\u817f<br \/>\n     R_Rear_Init();\/\/\u521d\u59cb\u5316\u53f3\u540e\u817f<br \/>\n     L_Rear_Init();\/\/\u521d\u59cb\u5316\u5de6\u540e\u817f<br \/>\n     Tail_Init();\/\/\u521d\u59cb\u5316\u5c3e\u5df4<\/p>\n<p>     R_SCI_UART_Open(&amp;Blue_Tooth_ctrl,&amp;Blue_Tooth_cfg);\/\/\u5f00\u542f\u4e32\u53e3<br \/>\n     R_SCI_UART_Read(&amp;Blue_Tooth_ctrl,MODE,1);\/\/\u5f00\u542f\u4e32\u53e3\u63a5\u6536<\/p>\n<p>     while (1)<br \/>\n     {<br \/>\n         if(Flag &#061;&#061; 1)<br \/>\n         {<br \/>\n             Flag &#061; 0;<br \/>\n             switch(MODE[0])\/\/\u884c\u4e3a\u6a21\u5f0f\u5224\u522b<br \/>\n             {<br \/>\n                 case Stand_mode:<br \/>\n                      stand();<br \/>\n                      break;<br \/>\n                 case Sleep_mode:<br \/>\n                     sleep();<br \/>\n                     break;<br \/>\n                 case Forward_mode:<br \/>\n                     Forward();<br \/>\n                     break;<br \/>\n                 case Turn_Left_mode:<br \/>\n                     Turn_Left();<br \/>\n                     break;<br \/>\n                 case Turn_Right_mode:<br \/>\n                     Turn_Right();<br \/>\n                     break;<br \/>\n                 case Tail_mode:<br \/>\n                     Shake_Tail();<br \/>\n                     break;<br \/>\n                 case Shake_Hand_mode:<br \/>\n                     Shake_Hand();<br \/>\n                     break;<br \/>\n                 case Gasp_mode:<br \/>\n                     Gasp();<br \/>\n                     break;<br \/>\n                 default:<br \/>\n                     break;<br \/>\n             }<br \/>\n             R_SCI_UART_Read(&amp;Blue_Tooth_ctrl,MODE,1);\/\/\u5f00\u542f\u4e32\u53e3\u63a5\u6536<br \/>\n         }<\/p>\n<p>         R_BSP_SoftwareDelay(20, BSP_DELAY_UNITS_MILLISECONDS);<\/p>\n<p>     }<\/p>\n<p>#if BSP_TZ_SECURE_BUILD<br \/>\n    \/* Enter non-secure code *\/<br \/>\n    R_BSP_NonSecureEnter();<br \/>\n#endif<br \/>\n}<\/p>\n<p>\/*******************************************************************************************************************\/\/**<br \/>\n * This function is called at various points during the startup process.  This implementation uses the event that is<br \/>\n * called right before main() to set up the pins.<br \/>\n *<br \/>\n * &#064;param[in]  event    Where at in the start up process the code is currently at<br \/>\n **********************************************************************************************************************\/<br \/>\nvoid R_BSP_WarmStart(bsp_warm_start_event_t event)<br \/>\n{<br \/>\n    if (BSP_WARM_START_RESET &#061;&#061; event)<br \/>\n    {<br \/>\n#if BSP_FEATURE_FLASH_LP_VERSION !&#061; 0<\/p>\n<p>        \/* Enable reading from data flash. *\/<br \/>\n        R_FACI_LP-&gt;DFLCTL &#061; 1U;<\/p>\n<p>        \/* Would normally have to wait tDSTOP(6us) for data flash recovery. Placing the enable here, before clock and<br \/>\n         * C runtime initialization, should negate the need for a delay since the initialization will typically take more than 6us. *\/<br \/>\n#endif<br \/>\n    }<\/p>\n<p>    if (BSP_WARM_START_POST_C &#061;&#061; event)<br \/>\n    {<br \/>\n        \/* C runtime environment and system clocks are setup. *\/<\/p>\n<p>        \/* Configure pins. *\/<br \/>\n        R_IOPORT_Open (&amp;IOPORT_CFG_CTRL, &amp;IOPORT_CFG_NAME);<\/p>\n<p>#if BSP_CFG_SDRAM_ENABLED<\/p>\n<p>        \/* Setup SDRAM and initialize it. Must configure pins first. *\/<br \/>\n        R_BSP_SdramInit(true);<br \/>\n#endif<br \/>\n    }<br \/>\n}<\/p>\n<p>#if BSP_TZ_SECURE_BUILD<\/p>\n<p>FSP_CPP_HEADER<br \/>\nBSP_CMSE_NONSECURE_ENTRY void template_nonsecure_callable ();<\/p>\n<p>\/* Trustzone Secure Projects require at least one nonsecure callable function in order to build (Remove this if it is not required to build). *\/<br \/>\nBSP_CMSE_NONSECURE_ENTRY void template_nonsecure_callable ()<br \/>\n{<\/p>\n<p>}<br \/>\nFSP_CPP_FOOTER<\/p>\n<p>#endif<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u672c\u7bc7\u6587\u7ae0\u4e2d&#xff0c;\u4f5c\u8005\u5c06\u4ece\u96f6\u5f00\u59cb\u5e26\u9886\u5927\u5bb6\u5229\u7528\u745e\u8428RA4M2\u7cfb\u5217\u5355\u7247\u673a\u8bbe\u8ba1\u4e00\u6b3e\u5c5e\u4e8e\u81ea\u5df1\u7684\u84dd\u7259\u9065\u63a7\u5c0f\u72d7\u3002\u4ec0\u4e48&#xff1f;\u8fde\u521b\u5efa\u5de5\u7a0b\u90fd\u4e0d\u4f1a&#xff01;\u6ca1\u5173\u7cfb&#xff0c;\u4f5c\u8005\u5e26\u7740\u4f60\u4ece\u521b\u5efa\u5de5\u7a0b\u5f00\u59cb&#xff0c;\u6025\u901f\u901a\u5173&#xff01;\u4e00\u3001\u786c\u4ef6\u51c6\u59071.\u745e\u8428RA4M2\u7cfb\u5217\u5355\u7247\u673a2.\u4e00\u5757\u9762\u5305\u677f\u6216\u8005\u4ee5\u53ca\u753b\u597d\u7684PCB\u677f&#xff08;\u4f5c\u8005\u4f1a\u9644\u4e0a\u81ea\u5df1\u7684PCB\u5236\u677f\u6587\u4ef6\u4e0e\u5de5\u7a0b\u6587\u4ef6&#xff09;3.\u675c\u90a6\u7ebf\u82e5\u5e724.\u53ef\u8f93\u51fa3.3v\u548c5v\u7684\u7535\u6e90\u6a21\u5757&#xff0c;3.3v\u4e3a\u5355\u7247\u673a\u548c\u8235<\/p>\n","protected":false},"author":2,"featured_media":74511,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7886,7658,270],"topic":[],"class_list":["post-74531","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-7886","tag-7658","tag-270"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u84dd\u7259\u9065\u63a7\u7684\u7535\u5b50\u5c0f\u72d7\uff01\u30101.2 \u57fa\u4e8e\u745e\u8428RA4M2\u5355\u7247\u673a\u8bbe\u8ba1\u7684\u4fdd\u59c6\u7ea7\u6559\u7a0b\u3011 - \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\/74531.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u84dd\u7259\u9065\u63a7\u7684\u7535\u5b50\u5c0f\u72d7\uff01\u30101.2 \u57fa\u4e8e\u745e\u8428RA4M2\u5355\u7247\u673a\u8bbe\u8ba1\u7684\u4fdd\u59c6\u7ea7\u6559\u7a0b\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5728\u672c\u7bc7\u6587\u7ae0\u4e2d&#xff0c;\u4f5c\u8005\u5c06\u4ece\u96f6\u5f00\u59cb\u5e26\u9886\u5927\u5bb6\u5229\u7528\u745e\u8428RA4M2\u7cfb\u5217\u5355\u7247\u673a\u8bbe\u8ba1\u4e00\u6b3e\u5c5e\u4e8e\u81ea\u5df1\u7684\u84dd\u7259\u9065\u63a7\u5c0f\u72d7\u3002\u4ec0\u4e48&#xff1f;\u8fde\u521b\u5efa\u5de5\u7a0b\u90fd\u4e0d\u4f1a&#xff01;\u6ca1\u5173\u7cfb&#xff0c;\u4f5c\u8005\u5e26\u7740\u4f60\u4ece\u521b\u5efa\u5de5\u7a0b\u5f00\u59cb&#xff0c;\u6025\u901f\u901a\u5173&#xff01;\u4e00\u3001\u786c\u4ef6\u51c6\u59071.\u745e\u8428RA4M2\u7cfb\u5217\u5355\u7247\u673a2.\u4e00\u5757\u9762\u5305\u677f\u6216\u8005\u4ee5\u53ca\u753b\u597d\u7684PCB\u677f&#xff08;\u4f5c\u8005\u4f1a\u9644\u4e0a\u81ea\u5df1\u7684PCB\u5236\u677f\u6587\u4ef6\u4e0e\u5de5\u7a0b\u6587\u4ef6&#xff09;3.\u675c\u90a6\u7ebf\u82e5\u5e724.\u53ef\u8f93\u51fa3.3v\u548c5v\u7684\u7535\u6e90\u6a21\u5757&#xff0c;3.3v\u4e3a\u5355\u7247\u673a\u548c\u8235\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/74531.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-09T16:17:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161724-698a08948ad34.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=\"11 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/74531.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/74531.html\",\"name\":\"\u84dd\u7259\u9065\u63a7\u7684\u7535\u5b50\u5c0f\u72d7\uff01\u30101.2 \u57fa\u4e8e\u745e\u8428RA4M2\u5355\u7247\u673a\u8bbe\u8ba1\u7684\u4fdd\u59c6\u7ea7\u6559\u7a0b\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-09T16:17:37+00:00\",\"dateModified\":\"2026-02-09T16:17:37+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/74531.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/74531.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/74531.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u84dd\u7259\u9065\u63a7\u7684\u7535\u5b50\u5c0f\u72d7\uff01\u30101.2 \u57fa\u4e8e\u745e\u8428RA4M2\u5355\u7247\u673a\u8bbe\u8ba1\u7684\u4fdd\u59c6\u7ea7\u6559\u7a0b\u3011\"}]},{\"@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":"\u84dd\u7259\u9065\u63a7\u7684\u7535\u5b50\u5c0f\u72d7\uff01\u30101.2 \u57fa\u4e8e\u745e\u8428RA4M2\u5355\u7247\u673a\u8bbe\u8ba1\u7684\u4fdd\u59c6\u7ea7\u6559\u7a0b\u3011 - \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\/74531.html","og_locale":"zh_CN","og_type":"article","og_title":"\u84dd\u7259\u9065\u63a7\u7684\u7535\u5b50\u5c0f\u72d7\uff01\u30101.2 \u57fa\u4e8e\u745e\u8428RA4M2\u5355\u7247\u673a\u8bbe\u8ba1\u7684\u4fdd\u59c6\u7ea7\u6559\u7a0b\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5728\u672c\u7bc7\u6587\u7ae0\u4e2d&#xff0c;\u4f5c\u8005\u5c06\u4ece\u96f6\u5f00\u59cb\u5e26\u9886\u5927\u5bb6\u5229\u7528\u745e\u8428RA4M2\u7cfb\u5217\u5355\u7247\u673a\u8bbe\u8ba1\u4e00\u6b3e\u5c5e\u4e8e\u81ea\u5df1\u7684\u84dd\u7259\u9065\u63a7\u5c0f\u72d7\u3002\u4ec0\u4e48&#xff1f;\u8fde\u521b\u5efa\u5de5\u7a0b\u90fd\u4e0d\u4f1a&#xff01;\u6ca1\u5173\u7cfb&#xff0c;\u4f5c\u8005\u5e26\u7740\u4f60\u4ece\u521b\u5efa\u5de5\u7a0b\u5f00\u59cb&#xff0c;\u6025\u901f\u901a\u5173&#xff01;\u4e00\u3001\u786c\u4ef6\u51c6\u59071.\u745e\u8428RA4M2\u7cfb\u5217\u5355\u7247\u673a2.\u4e00\u5757\u9762\u5305\u677f\u6216\u8005\u4ee5\u53ca\u753b\u597d\u7684PCB\u677f&#xff08;\u4f5c\u8005\u4f1a\u9644\u4e0a\u81ea\u5df1\u7684PCB\u5236\u677f\u6587\u4ef6\u4e0e\u5de5\u7a0b\u6587\u4ef6&#xff09;3.\u675c\u90a6\u7ebf\u82e5\u5e724.\u53ef\u8f93\u51fa3.3v\u548c5v\u7684\u7535\u6e90\u6a21\u5757&#xff0c;3.3v\u4e3a\u5355\u7247\u673a\u548c\u8235","og_url":"https:\/\/www.wsisp.com\/helps\/74531.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-09T16:17:37+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260209161724-698a08948ad34.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"11 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/74531.html","url":"https:\/\/www.wsisp.com\/helps\/74531.html","name":"\u84dd\u7259\u9065\u63a7\u7684\u7535\u5b50\u5c0f\u72d7\uff01\u30101.2 \u57fa\u4e8e\u745e\u8428RA4M2\u5355\u7247\u673a\u8bbe\u8ba1\u7684\u4fdd\u59c6\u7ea7\u6559\u7a0b\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-09T16:17:37+00:00","dateModified":"2026-02-09T16:17:37+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/74531.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/74531.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/74531.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u84dd\u7259\u9065\u63a7\u7684\u7535\u5b50\u5c0f\u72d7\uff01\u30101.2 \u57fa\u4e8e\u745e\u8428RA4M2\u5355\u7247\u673a\u8bbe\u8ba1\u7684\u4fdd\u59c6\u7ea7\u6559\u7a0b\u3011"}]},{"@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\/74531","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=74531"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/74531\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/74511"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=74531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=74531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=74531"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=74531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}