tpu_config.c

来自「OMAP1030 处理器的ARM 侧硬件测试代码 OMAP1030 是TI」· C语言 代码 · 共 40 行

C
40 行
字号
#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 + =
减小字号Ctrl + -
显示快捷键?