LEDs now indicate bit position (instead of (1 << pos)) which is more
consistent with how everything else works
This commit is contained in:
parent
c218d1bffa
commit
4b17c144d0
13 changed files with 50 additions and 46 deletions
|
@ -3,16 +3,16 @@
|
|||
|
||||
#define DELAY 400000
|
||||
|
||||
#define LED_BITS LED_RED
|
||||
#define LED LED_RED
|
||||
|
||||
void main(void) {
|
||||
volatile uint32_t i;
|
||||
|
||||
*GPIO_PAD_DIR0 = LED_BITS;
|
||||
*GPIO_PAD_DIR0 = ( 1<< LED );
|
||||
|
||||
while(1) {
|
||||
|
||||
*GPIO_DATA0 = LED_BITS;
|
||||
*GPIO_DATA0 = (1 << LED );
|
||||
|
||||
for(i=0; i<DELAY; i++) { continue; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue