SimpliciTi 框架及具體實(shí)現(xiàn)_第1頁
SimpliciTi 框架及具體實(shí)現(xiàn)_第2頁
SimpliciTi 框架及具體實(shí)現(xiàn)_第3頁
SimpliciTi 框架及具體實(shí)現(xiàn)_第4頁
SimpliciTi 框架及具體實(shí)現(xiàn)_第5頁
全文預(yù)覽已結(jié)束

下載本文檔

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

文檔簡介

_intrinsicvoidintrinsicvoid_intrinsicvoidintrinsicvoidintrinsicvoidintrinsicistate_tintrinsicvoidintrinsicvoidintrinsicunsignedshortintrinsicvoidintrinsicvoidintrinsicunsignedshortintrinsicvoidintrinsicvoidintrinsicunsignedshortintrinsicunsignedshortintrinsicunsignedlongintrinsicunsignedlonglongintrinsicunsignedshortIAR項(xiàng)目文件一:Simple_Peer_To_PeerFolder1BSP(BoardSupportPackage)板級支持包msp430fg4618.h[in430.h(intrinsics.h)]intrinsics.h>in430.n>msp430fg4618>msp430.h>bsp_msp430_def.hintrinsics.h:IAREmbeddedWorkbench為MSP430準(zhǔn)備的內(nèi)建函數(shù)(intrinsicfunctions)。其中包括:[typedefunsignedshortistate_t; ]no_operation(void);enable_interrupt(void);_disable_interrupt(void);_get_interrupt_state(void);_set_interrupt_state(istate_t);op_code(unsignedshort);_swap_bytes(unsignedshort);bic_SR_register(unsignedshort);bis_SR_register(unsignedshort);_get_SR_register(void);bic_SR_register_on_exit(unsignedshort);bis_SR_register_on_exit(unsignedshort);_get_SR_register_on_exit(void);_bcd_add_short(unsignedshort,unsignedshort);_bcd_add_long(unsignedlong,unsignedlong);_bcd_add_long_long(unsignedlonglong,unsignedlonglong);_even_in_range(unsignedshort__value,unsignedshort__bound);intrinsicvoidintrinsicvoiddelay_cycles(unsignedlong__cycles);intrinsicunsignedshortintrinsicvoidintrinsicunsignedshortintrinsicvoidintrinsicunsignedshortintrinsicvoidintrinsicvoidget_R4_register(void);set_R4_register(unsignedshort);get_R5_register(void);set_R5_register(unsignedshort);get_SP_register(void);set_SP_register(unsignedshort);intrinsicvoidintrinsicvoidintrinsicunsignedcharintrinsicunsignedshortintrinsicunsignedlongdata20_write_char(unsignedlong__addr,unsignedchar__value);data20_write_short(unsignedlong__addr,unsignedshort__value);data20_write_long(unsignedlong__addr,unsignedlong__value);__data20_read_char(unsignedlong__addr);__data20_read_short(unsignedlong__addr);__data20_read_long(unsignedlong__addr);intrinsicvoidintrinsicunsignedlongdata16_write_addr(unsignedshort__addr,intrinsicvoidintrinsicunsignedlongunsignedlong__value);data16_read_addr(unsignedshort__addr);對狀態(tài)寄存器(SR)進(jìn)行操作的內(nèi)建函數(shù)#define__SR_GIE (1<<3)#define__SR_CPU_OFF(1<<4)#define__SR_OSC_OFF(1<<5)#define__SR_SCG0 (1<<6)#define__SR_SCG1 (1<<7)/**Functionsforcontrollingtheprocessoroperationmodes.*/TOC\o"1-5"\h\z#define__low_power_mode_0()(__bis_SR_register(__SR_GIE \|__SR_CPU_OFF))#define__low_power_mode_1()(__bis_SR_register(__SR_GIE \|__SR_CPU_OFF\|__SR_SCG0))#define__low_power_mode_2()(__bis_SR_register(__SR_GIE \|__SR_CPU_OFF\|__SR_SCG1))TOC\o"1-5"\h\z#define__low_power_mode_3() \(__bis_SR_register( __SR_GIE \|__SR_CPU_OFF \|__SR_SCG0 \|__SR_SCG1))#define__low_power_mode_4() \(__bis_SR_register(__SR_GIE \|__SR_CPU_OFF \|__SR_SCG0 \|__SR_SCG1 \|__SR_OSC_OFF))#define__low_power_mode_off_on_exit() \(__bic_SR_register_on_exit(__SR_CPU_OFF \|__SR_SCG0 \|__SR_SCG1 \|__SR_OSC_OFF))in430.h__intrinsicunsignedshort_BIS_SR(unsignedshort);__intrinsicunsignedshort_BIC_SR(unsignedshort);__intrinsicunsignedshort_BIS_SR_IRQ(unsignedshort);__intrinsicunsignedshort_BIS_SR_IRQ(unsignedshort);__intrinsicunsignedshort_BIC_SR_IRQ(unsignedshort);__intrinsicunsignedshort_BIS_NMI_IE1(unsignedshort);#define_DINT() __disable_interrupt()#define_EINT() __enable_interrupt()#define_NOP() __no_operation()#define_OPC(x) __op_code(x)#define_SWAP_BYTES(x)__swap_bytes(x)msp430fg4618.hStandardregisterandbitdefinitionsfortheTexasIntrumentsMSP430xG46xdevices.msp430.hagenericincludefilebsp_msp430_def.hMCUdefinitionfile.Itscounterpartisbsp_8051_defs.hIARorCCIDEconfiguration!typedefsignedchar int8_t;typedefsignedshortint16_t;typedefsignedlongint32_t;typedefunsignedcharuint8_t;typedefunsignedshortuint16_t;typedefunsignedlonguint32_t;bsp_leds.c[bsp_leds.h,bsp_led_defs.h(bsp_generic_leds.h)]bsp_generic_leds.h>bsp_led_def.h>bsp_leds.h>bsp_leds.cbsp_generic_leds.hisaGenericLEDmacroincludefilebsp_led_def.hisaspecificMCU(msp430fg4618)LEDdefinitionfile.bsp_leds.hisaLEDdriverincludefile.bsp_leds.cisagenericLEDdrivercodefile.bsp_buttons.c[bsp_buttons.h,bsp_button_defs.h(bsp_generic_buttons.h)]bsp_generic_leds.h>bsp_button_defs.h>bsp_buttons.h>bsp_buttons.cbsp_generic_buttons.hisaGenericBUTTONmacroincludefilebsp_button_def.hisaspecificMCU(msp430fg4618)BUTTONdefinitionfile.bsp_button.hisaBUTTONdriverincludefile.bsp_buttons.cisagenericBUTTONdrivercodefile.bsp_drivers.c[bsp_driver_defs.h,bsp_leds.h,bsp_buttons.h,bsp_config.h]bsp_drivers.c>**********|bsp_leds.h>**********|bsp_buttons.h>**********|bsp_config.h>**********|bsp_drivers.cbsp_macros.hbsp_macros.hisanincludefileforbsputilitymacros.bsp_board.c[bsp.h,bsp.config.h]TOC\o"1-5"\h\zbsp.h 弓bsp.config.h 弓bsp_board_defs.h——弓| bsp_board.cSummary:voidBSP_InitLeds(void) 9voidBSP_InitButtons(void)——9voidBSP_InitDrivers(void)---TIvoidBSP_InitBoard(void) 9——TvoidBSP_Init(v

溫馨提示

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

最新文檔

評論

0/150

提交評論