📄 tpu_config.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 + -