討論串[問題] 請教兩種語法
共 4 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 1→)留言3則,0人參與, 最新作者descent (「雄辯是銀,沉默是金」)時間11年前 (2013/12/09 07:08), 編輯資訊
0
0
1
內容預覽:
u32 mpu_type_reg_addr = 0xe000ed90;. (*((u32 volatile *)mpu_type_reg_addr)) = 0x5;. (*((u32 volatile *)mpu_type_reg_addr)) = 0x7;. gcc -O2 a.c. 80482d
(還有741個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者descent (「雄辯是銀,沉默是金」)時間11年前 (2013/12/08 15:23), 編輯資訊
0
0
0
內容預覽:
在 gnu toolchain 需要使用 link script file 類似下面這樣. /*. MEMORY. {. FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 128K. SRAM (rwx) : ORIGIN = 0x20000000, LENGTH
(還有740個字)

推噓1(1推 0噓 6→)留言7則,0人參與, 最新作者bdvstg ( bdvstg)時間11年前 (2013/12/08 12:57), 編輯資訊
0
0
2
內容預覽:
#define TEST 0xC0000000. #define TEST_1 *((volatile unsigned long *)(TEST+0x0100)). TEST_1=0x01;. printf("%x\n",TEST_1);. (volatile unsigned long *)(T
(還有546個字)

推噓1(1推 0噓 11→)留言12則,0人參與, 最新作者Hyozero (1)時間11年前 (2013/12/08 04:43), 編輯資訊
0
0
2
內容預覽:
開發平台(Platform): (Ex: VC++, GCC, Linux, ...). Linux. 問題(Question):. 都是在embedded system的code裡面看到的. 1. 程式碼: http://codepad.org/UFsAKQ7r. 想請教第8行的 *((volat
(還有181個字)
首頁
上一頁
1
下一頁
尾頁