Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- volatile uint32_t* GPIO4_SYSCONFIG = (volatile uint32_t*) 0x48059010;
- volatile uint32_t* GPIO4_SYSSTATUS = (volatile uint32_t*) 0x48059114;
- volatile uint32_t* GPIO4_OE = (volatile uint32_t*) 0x48059134;
- volatile uint32_t* GPIO4_DATAOUT = (volatile uint32_t*) 0x4805913C;
- *GPIO4_OE=(uint32_t)0x1;
- for(int i=0;i<10;i++)
- {
- for(int j=0;j<delay;j++)
- {
- for(int k=0;k<delay;k++)
- {
- for(int l=0;l<delay;l++)
- {
- asm volatile ("NOP");
- }
- }
- }
- if(i%2==0)
- *GPIO4_DATAOUT=(uint32_t)(0<<14);s
- else if(i%2==1)
- *GPIO4_DATAOUT=(uint32_t)(1<<14);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement