MQX培訓(xùn)2驅(qū)動(dòng)和板級(jí)支持包BSPppt課件_第1頁
MQX培訓(xùn)2驅(qū)動(dòng)和板級(jí)支持包BSPppt課件_第2頁
MQX培訓(xùn)2驅(qū)動(dòng)和板級(jí)支持包BSPppt課件_第3頁
MQX培訓(xùn)2驅(qū)動(dòng)和板級(jí)支持包BSPppt課件_第4頁
MQX培訓(xùn)2驅(qū)動(dòng)和板級(jí)支持包BSPppt課件_第5頁
已閱讀5頁,還剩35頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、TMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis,

2、 Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semiconductor, Inc.U

3、pdated May 2019TMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, C

4、oreNet, Flexis, Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semic

5、onductor, Inc.2MQX RTOS I/O 驅(qū)動(dòng)MQX如何管理I/O驅(qū)動(dòng)I/O驅(qū)動(dòng)相關(guān)的文件目錄結(jié)構(gòu)使用MQX提供的I/O驅(qū)動(dòng)創(chuàng)建一個(gè)新的驅(qū)動(dòng)如何從定義調(diào)試串口MQX 中斷MQX如何處理中斷MQX BSP 移植什么情況下需要一個(gè)新的BSP與電路板相關(guān)的目錄BSP移植中的重要文件BSP移植的關(guān)鍵步驟使用腳本文件加速BSP移植演示Demo1: 使用MQX自帶的驅(qū)動(dòng)Demo2: 創(chuàng)建一個(gè)新的驅(qū)動(dòng)并且進(jìn)行測(cè)試TMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the

6、Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engin

7、e, SMARTMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semiconductor, Inc.3軟件采用分層設(shè)計(jì)屏蔽驅(qū)動(dòng)細(xì)節(jié)易用的APITMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, Co

8、ldFire, C-Ware, the Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge,

9、Qorivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semiconductor, Inc.4POSIX 規(guī)范 I/O 接口What does the I/O subsystem API look like?TMFreescale, th

10、e Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC,

11、Platform in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semiconductor, Inc.5這里,我們關(guān)心右邊紅色方框內(nèi)的

12、目錄:config有user_config.h文件 以及編譯BSP, PSP, MFS, RTCS, SHELL, USB的工程文件lib輸出文件.lib and .hmqxbsp, 包含BSP驅(qū)動(dòng)代碼 (重要目錄,我們需要根據(jù)新的目標(biāo)板對(duì)此進(jìn)行修改)bat, 包含.bat文件,在編譯后把 .lib和.h文件拷貝到輸出目錄 其他文件夾,比如 mfs, rtcs,shell,usb 是對(duì)應(yīng)協(xié)議棧的內(nèi)容TMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy

13、Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMAR

14、TMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semiconductor, Inc.6MQX 提供了片上模塊的驅(qū)動(dòng):TTYI2CSPIGPIOADCRTCFlashSD cardand much more!TMFreescale, the Freescale logo, AltiVe

15、c, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Package, P

16、rocessor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semiconductor, Inc.7在user_config.h 使能對(duì)應(yīng)的模塊#define BSPCFG_EN

17、ABLE_I2C0 1#define BSPCFG_ENABLE_II2C0 0#define BSPCFG_ENABLE_I2C1 0#define BSPCFG_ENABLE_II2C1 0#define BSPCFG_ENABLE_SPI0 0#define BSPCFG_ENABLE_ISPI0 0重編譯 MQX 庫(kù)fopenfreadfwriteioctlfcloseTMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient S

18、olutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, Turbo

19、Link, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semiconductor, Inc.TMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient So

20、lutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboL

21、ink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semiconductor, Inc.9要點(diǎn): 學(xué)習(xí)如何使用MQX的I2C驅(qū)動(dòng)來訪問板上的MMA8451 I2C接口加速度傳感器步驟步驟 1: 使能 I2C0 驅(qū)動(dòng)在 configtwrk60n512user_config.h 文件里#define BSPCFG

22、_ENABLE_I2C0 1步驟2: 重新編譯BSPTMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, C

23、oldFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Free

24、scale Semiconductor, Inc.10步驟3: 在應(yīng)用中使用API訪問 MMA8451void init_i2c(void) f_i2c = fopen (i2c0:, NULL); if (f_i2c = NULL) printf (Failed to open the I2C driver!n); _mqx_exit (1L); ioctl (f_i2c, IO_IOCTL_I2C_SET_MASTER_MODE, NULL);TMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, Cold

25、Fire, C-Ware, the Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge, Qo

26、rivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semiconductor, Inc.11步驟4: 使用API訪問MMA8451u8 mma8451_read_reg(u8 addr) uint_32 param; u8 mem1; /

27、 set dest address for this access param = I2C_ADDR_MMA8451; ioctl (f_i2c, IO_IOCTL_I2C_SET_DESTINATION_ADDRESS, &param); / 1.start, send dst address fwrite(mem, 1, 0, f_i2c); ioctl (f_i2c, IO_IOCTL_FLUSH_OUTPUT, &param); / 2.send reg address mem0 = addr; fwrite(mem, 1, 1, f_i2c); fflush(f_i2

28、c); / 3.repeat and device address ioctl(f_i2c, IO_IOCTL_I2C_REPEATED_START, NULL); param = 1; ioctl(f_i2c, IO_IOCTL_I2C_SET_RX_REQUEST, &param); / 4.read fread (mem, 1, 1, f_i2c); / 5.stop ioctl (f_i2c, IO_IOCTL_I2C_STOP, NULL); return mem0;TMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST

29、, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Package, Processor Expert,

30、 QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semiconductor, Inc.12步驟5: 讀取MMA8451數(shù)據(jù)void hw_mma8451_get_data(s16 *x, s16 *

31、y, s16 *z) u8 v; v = mma8451_read_reg(0); if(v&1) *x = (s16)(mma8451_read_reg(0 x01)4; if(v&2) *y = (s16)(mma8451_read_reg(0 x03)4; if(v&4) *z = (s16)(mma8451_read_reg(0 x05)4;TMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Sol

32、utions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLi

33、nk, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semiconductor, Inc.13優(yōu)點(diǎn): 不用關(guān)心MCU的寄存器內(nèi)容,以及其它細(xì)節(jié),使開發(fā)更加方便!參考資料:Freescale MQX TM I/O Drivers Users GuideTMFreescale, the Freescale logo,

34、AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Pack

35、age, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semiconductor, Inc.TMFreescale, the Freescale logo, A

36、ltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Packa

37、ge, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semiconductor, Inc.15啟動(dòng)流程啟動(dòng)流程:main()_mqx()_bsp_enable_

38、card() / we need to modify the code in this functionscheduleruser taskTMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg.

39、U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the pr

40、operty of their respective owners. 2011 Freescale Semiconductor, Inc.16開發(fā)風(fēng)格和linux是類似的步驟1: 準(zhǔn)備以下5個(gè)函數(shù)_mqx_int _io_mma8451_open (MQX_FILE_PTR, char_ptr, char_ptr);_mqx_int _io_mma8451_close(MQX_FILE_PTR);_mqx_int _io_mma8451_read (MQX_FILE_PTR, char_ptr, _mqx_int);_mqx_int _io_mma8451_write(MQX_FILE_PTR

41、, char_ptr, _mqx_int);_mqx_int _io_mma8451_ioctl(MQX_FILE_PTR, _mqx_uint, pointer);TMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor

42、, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service nam

43、es are the property of their respective owners. 2011 Freescale Semiconductor, Inc.17步驟1: 準(zhǔn)備以下5個(gè)函數(shù)(續(xù))_mqx_int _io_mma8451_open () fd = fopen (i2c0:, NULL); if (fd = NULL) return MQX_INVALID_POINTER; ioctl (fd, IO_IOCTL_I2C_SET_MASTER_MODE, NULL); init_mma8451(); return MQX_OK;TMFreescale, the Freesca

44、le logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform

45、in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semiconductor, Inc.18步驟1: 準(zhǔn)備以下5個(gè)函數(shù)(續(xù))_mqx_in

46、t _io_mma_close() fclose(fd); return MQX_OK;TMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. B

47、eeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective

48、 owners. 2011 Freescale Semiconductor, Inc.19步驟2: 實(shí)現(xiàn)install函數(shù)_mqx_uint _io_mma8451_install(char_ptr identifier) return _io_dev_install(identifier, _io_mma8451_open, _io_mma8451_close, _io_mma8451_read, _io_mma8451_write, _io_mma8451_ioctl, NULL); _io_dev_install() will register the driver in I/O sub

49、system.TMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet,

50、Flexis, Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semiconductor

51、, Inc.20步驟3: 在user_config.h中添加#define BSPCFG_ENABLE_MMA 0步驟: 在 init_bsp.c的_bsp_enable_card()函數(shù)中添加#if BSPCFG_ENABLE_MMA8451 _io_mma8451_install(mma8451:);#endif步驟: 編譯BSP工程TMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobil

52、eGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and Xt

53、rinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semiconductor, Inc.21void mma8451_test_new(void) fd = fopen (mma8451:, NULL); if (fd = NULL) printf (Failed to open mma8451!n); _mqx_exit (1L); while

54、(TRUE) fread (acc, 1, 6, fd); printf(x,y,z: %d,%d,%d n, acc0,acc1,acc2); _time_delay(300); TMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semic

55、onductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or ser

56、vice names are the property of their respective owners. 2011 Freescale Semiconductor, Inc.22需要考慮這一份驅(qū)動(dòng)可能有多個(gè)運(yùn)行實(shí)例每個(gè)實(shí)例都需要有獨(dú)立的變量保存自己的信息,而這些信息應(yīng)存儲(chǔ)在在fopen時(shí)通過malloc分配的針對(duì)本實(shí)例的存儲(chǔ)區(qū)域此時(shí)不推薦使用全局變量TMFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions lo

57、go, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLink, Vorti

58、Qa and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2011 Freescale Semiconductor, Inc.23在user_config.h中#define BSP_DEFAULT_IO_CHANNEL ttyd:#define BSP_DEFAULT_IO_CHANNEL_DEFINED#define BSPCFG_SCI3_BAUD_RATE 1

59、15200“ttyd的管腳分配在哪里定義?In mqxsourcebsptwrk60n512init_gpio.c, _bsp_serial_io_init(): switch (dev_num) case 0: pctl = (PORT_MemMapPtr)PORTD_BASE_PTR; if (flags & IO_PERIPHERAL_PIN_MUX_ENABLE) /* PTD6 as RX function (Alt.3) + drive strength */ pctl-PCR6 = 0 | PORT_PCR_MUX(3) | PORT_PCR_DSE_MASK; TMFr

60、eescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobileGT, PowerQUICC, QorIQ, StarCore and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, Kinetis, MXC, Platform in a Package, Processor Expert, QorIQ Qonverge, Qorivva, QUICC Engine, SMARTMOS, TurboLink, VortiQa and

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論