91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 43KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-05-13
  • 語言: 其他
  • 標簽: DSP??

資源簡介

通過SCI引導模式將程序加載到設備的RAM中。 This application is intended to be loaded into the device's RAM via the SCI boot mode. After successfully loaded this program implements a modified version of the SCI boot protocol that allows a user application to be programmed into flash

資源截圖

代碼片段和文件信息

//###########################################################################
//
//?FILE:???DSP2833x_SysCtrl.c
//
//?title:??DSP2833x?Device?System?Control?Initialization?&?Support?Functions.
//
//?DEscriptION:
//
//?????????Example?initialization?of?system?resources.
//
//###########################################################################
//?$TI?Release:?F2833x/F2823x?Header?Files?and?Peripheral?Examples?V142?$
//?$Release?Date:?November??1?2016?$
//?$Copyright:?Copyright?(C)?2007-2016?Texas?Instruments?Incorporated?-
//?????????????http://www.ti.com/?ALL?RIGHTS?RESERVED?$
//###########################################################################


#include?“DSP2833x_Device.h“?????//?Headerfile?Include?File
#include?“DSP2833x_Examples.h“???//?Examples?Include?File

//?Functions?that?will?be?run?from?RAM?need?to?be?assigned?to
//?a?different?section.??This?section?will?then?be?mapped?to?a?load?and
//?run?address?using?the?linker?cmd?file.

#pragma?CODE_SECTION(InitFlash?“ramfuncs“);

//---------------------------------------------------------------------------
//?InitSysCtrl:
//---------------------------------------------------------------------------
//?This?function?initializes?the?System?Control?registers?to?a?known?state.
//?-?Disables?the?watchdog
//?-?Set?the?PLLCR?for?proper?SYSCLKOUT?frequency
//?-?Set?the?pre-scaler?for?the?high?and?low?frequency?peripheral?clocks
//?-?Enable?the?clocks?to?the?peripherals

void?InitSysCtrl(void)
{

???//?Disable?the?watchdog
???DisableDog();

???//?Initialize?the?PLL?control:?PLLCR?and?DIVSEL
???//?DSP28_PLLCR?and?DSP28_DIVSEL?are?defined?in?DSP2833x_Examples.h
???InitPll(DSP28_PLLCRDSP28_DIVSEL);

???//?Initialize?the?peripheral?clocks
???InitPeripheralClocks();
}


//---------------------------------------------------------------------------
//?Example:?InitFlash:
//---------------------------------------------------------------------------
//?This?function?initializes?the?Flash?Control?registers

//???????????????????CAUTION
//?This?function?MUST?be?executed?out?of?RAM.?Executing?it
//?out?of?OTP/Flash?will?yield?unpredictable?results

void?InitFlash(void)
{
???EALLOW;
???//Enable?Flash?Pipeline?mode?to?improve?performance
???//of?code?executed?from?Flash.
???FlashRegs.FOPT.bit.ENPIPE?=?1;

???//????????????????CAUTION
???//Minimum?waitstates?required?for?the?flash?operating
???//at?a?given?CPU?rate?must?be?characterized?by?TI.
???//Refer?to?the?datasheet?for?the?latest?information.
#if?CPU_FRQ_150MHZ
???//Set?the?Paged?Waitstate?for?the?Flash
???FlashRegs.FBANKWAIT.bit.PAGEWAIT?=?5;

???//Set?the?Random?Waitstate?for?the?Flash
???FlashRegs.FBANKWAIT.bit.RANDWAIT?=?5;

???//Set?the?Waitstate?for?the?OTP
???FlashRegs.FOTPWAIT.bit.OTPWAIT?=?8;
#endif

#if?CPU_FRQ_100MHZ
???//Set?the?Paged?Waitstate?for?the?Flash
???FlashRegs.FBANKWAIT.bit.PAGEWAIT?=?3;

???//Set?the?Random?Waitstate?for?the?Flash
???Flash

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-08-15?10:24??f28335_flash_kernel\
?????文件?????????168??2016-11-01?16:13??f28335_flash_kernel\.ccsproject
?????文件???????16797??2016-11-01?16:13??f28335_flash_kernel\.cproject
?????文件????????2596??2016-11-01?16:13??f28335_flash_kernel\.project
?????文件????????2768??2016-11-01?16:13??f28335_flash_kernel\Boot.h
?????文件???????12203??2016-11-01?16:13??f28335_flash_kernel\DSP2833x_SysCtrl.c
?????目錄???????????0??2018-08-15?10:24??f28335_flash_kernel\Debug\
?????文件???????18478??2016-11-01?16:13??f28335_flash_kernel\Debug\f28335_flash_kernel.txt
?????文件????????4926??2016-11-01?16:13??f28335_flash_kernel\Exit_Boot.asm
?????文件???????76026??2016-11-01?16:13??f28335_flash_kernel\Flash28335_API_V210.lib
?????文件????????3239??2016-11-01?16:13??f28335_flash_kernel\Flash2833x_API_Config.h
?????文件???????10026??2016-11-01?16:13??f28335_flash_kernel\Flash2833x_API_Library.h
?????文件????????6076??2018-09-03?16:08??f28335_flash_kernel\SCI_Boot.c
?????文件????????7096??2016-11-01?16:13??f28335_flash_kernel\Shared_Boot.c
?????文件????????1249??2018-09-03?15:37??f28335_flash_kernel\main.c

評論

共有 條評論