⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tpu_config.c

📁 OMAP1030 处理器的ARM 侧硬件测试代码 OMAP1030 是TI的双核处理器
💻 C
字号:
#include "tpu.h"
#include "triton_functions.h"





const UWORD16 startADCA[] =  
  {
   /* Set time base synchro value */
    TPU_SYNC(INIT_T1), 
    
    /* First operation : set of parallel writes */
    TPU_AT(40),
    

    TPU_MOVE(TSP_SPI_SET1, 0x02),
    
    // End of script : TPU sleep ordered 
    TPU_WAIT(10),
    TPU_SLEEP
  };


void TPU_configure(void)
{
	int tempo;

  TPU_ClkEnable(1);                // Enable the TPU clock
  
  // TPU scenario launch 
  TPU_LoadScenario(startADCA);	   // load first scenario in TPU RAM 
  TPU_Reset(0);		           // Suppress TPU reset 		
  for(tempo=0; tempo<5; tempo++);  // Wait before next command 
  TPU_Enable(1);		   // Enable the TPU 



}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -