changed tmr test to blink purple

This commit is contained in:
Mariano Alvira 2009-04-22 16:11:32 -04:00
parent 8964c60d9a
commit f421cde7f8

View File

@ -55,7 +55,7 @@ __attribute__ ((section ("startup")))
void main(void) {
/* pin direction */
reg32(GPIO_PAD_DIR0) = 0x00000400;
reg32(GPIO_PAD_DIR0) = 0x00000500;
/* timer setup */
/* CTRL */
@ -80,7 +80,7 @@ void main(void) {
while(1) {
/* blink on */
reg32(GPIO_DATA0) = 0x00000400;
reg32(GPIO_DATA0) = 0x00000500;
while((reg16(TMR0_SCTRL)>>15) == 0) { continue; }
reg16(TMR0_SCTRL) = 0; /*clear bit 15, and all the others --- should be ok, but clearly not "the right thing to do" */