Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
LED_C.C
Package: arm_exam.rar [view]
Upload User: mhstny
Upload Date: 2022-08-05
Package Size: 793k
Code Size: 1k
Category:
ARM-PowerPC-ColdFire-MIPS
Development Platform:
Unix_Linux
- #define rGPFCON (*(volatile unsigned *)0x56000050) //Port F control
- #define rGPFDAT (*(volatile unsigned *)0x56000054) //Port F data
- #define rGPFUP (*(volatile unsigned *)0x56000058) //Pull-up control F
- void delay(int times);
- void xmain(void)
- {
- rGPFCON=(rGPFCON|0xFF00)&0x55FF;//GPF4--GPF7设置为output
- rGPFUP|=0xF0; //disable GPF pull up
- while(1)
- {
- rGPFDAT=(rGPFDAT&0x0F)|0xE0;//GPF4 output 0
- delay(500000);//delay
- rGPFDAT=(rGPFDAT&0x0F)|0xD0;//GPF5 output 0
- delay(500000);//delay
- rGPFDAT=(rGPFDAT&0x0F)|0xB0;//GPF6 output 0
- delay(500000);//delay
- rGPFDAT=(rGPFDAT&0x0F)|0x70;//GPF7 output 0
- delay(500000);//delay
- }
- }
- void delay(int times)
- {
- int i;
- for(i=0;i<times;i++);
- }