[問題] C語言與ASM混編的問題
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
AVR-GCC
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
AVR-Libc
問題(Question):
在閱讀FreeRTOS for AVR的程式碼中
看不懂38,39行pxCurrentTCB的用法,為何可以直接傳入C的指標,
還有pxCurrentTCB位移存資料的用法?
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
http://pastebin.com/HtpxUuXL
extern volatile TCB_t * volatile pxCurrentTCB;
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 175.181.39.154
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1472580390.A.9AC.html
→
08/31 13:37, , 1F
08/31 13:37, 1F
→
08/31 13:37, , 2F
08/31 13:37, 2F
→
08/31 13:38, , 3F
08/31 13:38, 3F
→
08/31 18:14, , 4F
08/31 18:14, 4F
→
08/31 18:35, , 5F
08/31 18:35, 5F
→
08/31 18:35, , 6F
08/31 18:35, 6F
→
08/31 18:35, , 7F
08/31 18:35, 7F
→
08/31 18:35, , 8F
08/31 18:35, 8F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章