?? main.c
字號(hào):
#include "s3c2410.h" #define GPB7_out (1<<(7*2))#define GPB8_out (1<<(8*2))#define GPB9_out (1<<(9*2))#define GPB10_out (1<<(10*2)) static unsigned long m_RandSeed;
/* 隨機(jī)函數(shù) */inline unsigned long Rand()
{
return (m_RandSeed=1664525L*m_RandSeed+1013904223L)>>5;
}void wait(unsigned long dly){ for(; dly > 0; dly--);}int main(){ GPBCON = GPB7_out|GPB8_out|GPB9_out|GPB10_out; GPBDAT |= (0xf<<7); //LED全滅 while(1); return 0;}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -