📄 main.c
字号:
// This is the minimal project for the PADK.
/*****************define for the external functions***************/
/*extern function defines*/
#include "functions.h"
#include "peripheral.H"
/*include the interrupt table*/
extern void vectors();
//********** variable ***************************/
short *isdram_prog = (short *)SDRAM_BASE_ADD;
/*main function*/
int main( int argc, char *argv[] )
{
char i;
short stmp;
init_pll();
init_emif();
//init the interrupts
//init_interrupt();
//init the mcasp0
//init_mcasp0();
i = 100;
while(1)
{
while(i--)
{
isdram_prog[i] = i;
//isdram_prog[1] = 0x0055;
}
stmp = isdram_prog[0];
stmp ^= 0x00FF;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -