fix blink-red
This commit is contained in:
parent
1522b72b1e
commit
3cc6896981
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
#include <mc1322x.h>
|
||||
#include <board.h>
|
||||
|
||||
#define DELAY 400000
|
||||
|
||||
|
@ -8,11 +9,11 @@ __attribute__ ((section ("startup")))
|
|||
void main(void) {
|
||||
volatile uint32_t i;
|
||||
|
||||
// *GPIO_PAD_DIR0 = LED_BITS;
|
||||
*GPIO_PAD_DIR0 = LED_BITS;
|
||||
|
||||
while(1) {
|
||||
|
||||
// *GPIO_DATA0 = LED_BITS;
|
||||
*GPIO_DATA0 = LED_BITS;
|
||||
|
||||
for(i=0; i<DELAY; i++) { continue; }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue