<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          IAR STM8串口printf輸出

          作者: 時(shí)間:2016-11-24 來源:網(wǎng)絡(luò) 收藏
          IARprintf輸出keil設(shè)置不太一樣,首先當(dāng)然先要包含頭文件"stdio.h",然后改寫putchar函數(shù)
          int putchar(int c)
          {
          while ((UART2_SR&0x80)==0x00);
          UART2_sendchar((u8)c);
          return (c);
          }

          在Options中將Library Configuration改成Full

          在Library Options中將Printf formatter改成Large即可。



          關(guān)鍵詞: IARSTM8串口printf輸

          評(píng)論


          技術(shù)專區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();