Merge branch 'untested'
This commit is contained in:
commit
ba2bf34b13
|
@ -55,7 +55,7 @@ __attribute__ ((section ("startup")))
|
||||||
void main(void) {
|
void main(void) {
|
||||||
|
|
||||||
/* pin direction */
|
/* pin direction */
|
||||||
reg32(GPIO_PAD_DIR0) = 0x00000400;
|
reg32(GPIO_PAD_DIR0) = 0x00000500;
|
||||||
|
|
||||||
/* timer setup */
|
/* timer setup */
|
||||||
/* CTRL */
|
/* CTRL */
|
||||||
|
@ -80,7 +80,7 @@ void main(void) {
|
||||||
while(1) {
|
while(1) {
|
||||||
|
|
||||||
/* blink on */
|
/* blink on */
|
||||||
reg32(GPIO_DATA0) = 0x00000400;
|
reg32(GPIO_DATA0) = 0x00000500;
|
||||||
|
|
||||||
while((reg16(TMR0_SCTRL)>>15) == 0) { continue; }
|
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" */
|
reg16(TMR0_SCTRL) = 0; /*clear bit 15, and all the others --- should be ok, but clearly not "the right thing to do" */
|
||||||
|
|
Loading…
Reference in a new issue