\u7b49\u5f85\u6570\u636e\u53d1\u9001\u5b8c\u6210\uff0c\u5e76\u8fdb\u884c\u76f8\u5e94\u7684\u9519\u8bef\u5904\u7406\u3002<\/li>\n<\/ol>\n HAL_UART_TRANSMIT\u7684\u91cd\u8981\u6027<\/h3>\n
HAL_UART_TRANSMIT\u53d1\u9001int\u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf\u5f00\u53d1\u4e2d\u626e\u6f14\u7740\u81f3\u5173\u91cd\u8981\u7684\u89d2\u8272\u3002\u901a\u8fc7\u6709\u6548\u5730\u53d1\u9001\u6574\u6570\u6570\u636e\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9e\u73b0\u4e0e\u5916\u90e8\u8bbe\u5907\u7684\u901a\u4fe1\u3001\u4f20\u611f\u5668\u6570\u636e\u7684\u91c7\u96c6\u3001\u63a7\u5236\u4fe1\u53f7\u7684\u53d1\u9001\u7b49\u5404\u79cd\u529f\u80fd\u3002\u56e0\u6b64\uff0c\u4e86\u89e3\u5e76\u719f\u7ec3\u4f7f\u7528HAL_UART_TRANSMIT\u5bf9\u4e8e\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7684\u5f00\u53d1\u81f3\u5173\u91cd\u8981\u3002<\/p>\n
\u5982\u4f55\u4f18\u5316HAL_UART_TRANSMIT\u53d1\u9001int\u7684\u6027\u80fd<\/h2>\n
\u5728\u5b9e\u9645\u7684\u5d4c\u5165\u5f0f\u7cfb\u7edf\u5f00\u53d1\u4e2d\uff0c\u4f18\u5316HAL_UART_TRANSMIT\u53d1\u9001int\u7684\u6027\u80fd\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u4f18\u5316\u6027\u80fd\u7684\u65b9\u6cd5\uff1a<\/p>\n
\u4f7f\u7528DMA\u8fdb\u884c\u6570\u636e\u4f20\u8f93<\/h3>\n
\u5728\u652f\u6301DMA\uff08\u76f4\u63a5\u5185\u5b58\u5b58\u53d6\uff09\u7684\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528DMA\u6765\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u7684\u6548\u7387\u3002\u5c06\u6570\u636e\u5b58\u50a8\u5728\u5185\u5b58\u4e2d\uff0c\u5e76\u4f7f\u7528DMA\u5c06\u6570\u636e\u76f4\u63a5\u4f20\u8f93\u5230UART\u53d1\u9001\u7f13\u51b2\u533a\uff0c\u53ef\u4ee5\u51cf\u5c11CPU\u7684\u8d1f\u8f7d\u5e76\u63d0\u9ad8\u7cfb\u7edf\u7684\u54cd\u5e94\u901f\u5ea6\u3002<\/p>\n
\u91c7\u7528\u6570\u636e\u538b\u7f29\u7b97\u6cd5<\/h3>\n
\u5728\u67d0\u4e9b\u573a\u666f\u4e0b\uff0c\u53ef\u4ee5\u91c7\u7528\u6570\u636e\u538b\u7f29\u7b97\u6cd5\u5bf9\u8981\u53d1\u9001\u7684\u6574\u6570\u6570\u636e\u8fdb\u884c\u538b\u7f29\uff0c\u4ece\u800c\u51cf\u5c11\u4f20\u8f93\u7684\u6570\u636e\u91cf\uff0c\u63d0\u9ad8\u901a\u4fe1\u6548\u7387\u3002\u8fd9\u5bf9\u4e8e\u5e26\u5bbd\u6709\u9650\u6216\u901a\u4fe1\u8ddd\u79bb\u8f83\u957f\u7684\u60c5\u51b5\u4e0b\u5c24\u4e3a\u91cd\u8981\u3002<\/p>\n
\u603b\u7ed3<\/h2>\n
\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u4e86\u89e3\u4e86HAL_UART_TRANSMIT\u53d1\u9001int\u7684\u57fa\u672c\u539f\u7406\u3001\u4f7f\u7528\u65b9\u6cd5\u4ee5\u53ca\u4f18\u5316\u6027\u80fd\u7684\u4e00\u4e9b\u65b9\u6cd5\u3002<\/strong>\u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7684\u5f00\u53d1\u4e2d\uff0c\u5408\u7406\u5730\u4f7f\u7528HAL_UART_TRANSMIT\u53d1\u9001int\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u5b9e\u73b0\u4e0e\u5916\u90e8\u8bbe\u5907\u7684\u901a\u4fe1\uff0c\u8fd8\u53ef\u4ee5\u4f18\u5316\u7cfb\u7edf\u6027\u80fd\uff0c\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u7684\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf\u5f00\u53d1\u4e2d\uff0c\u4f7f\u7528HAL_UART_TRANSMIT\u53d1\u9001int\u6570\u636e\u662f\u4e00\u9879\u5173\u952e\u64cd\u4f5c\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u6709\u6548\u5730\u4f7f\u7528\u8be5\u529f\u80fd\uff0c\u5e76\u89e3\u91ca\u5176\u5728\u5d4c\u5165\u5f0f\u5f00\u53d1\u4e2d\u7684\u91cd\u8981\u6027\u3002HAL_UAR<\/p>\n","protected":false},"author":1,"featured_media":64183,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[145],"class_list":["post-77420","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-uart"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/77420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=77420"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/77420\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/64183"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=77420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=77420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=77420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}