Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Attempt at turning button light on - doesn't work

  • Loading branch information...
commit 8f9fe641d4a307046866c10f4f71a1cb899ffa22 1 parent 400dd24
Steven Price authored
Showing with 12 additions and 1 deletion.
  1. +12 −1 bootloader/sansa_as3525.c
View
13 bootloader/sansa_as3525.c
@@ -37,6 +37,8 @@
#include "power.h"
+#include "ascodec-target.h"
+
void morpion(void);
int show_logo(void);
void main(void) __attribute__((noreturn));
@@ -46,9 +48,18 @@ void main(void)
int buffer_size;
void(*kernel_entry)(void);
int ret;
+ int delay;
- system_init();
+ //system_init();
kernel_init();
+ ascodec_init();
+ ascodec_write(AS3514_DCDC15, 0x10);
+ GPIOA_DIR |= (1<<4);
+ GPIOA_PIN(4) = (1<<4);
+ delay=0x5000000;
+ while(delay--);
+ power_off();
+ while(1) ;
#ifdef SANSA_C200V2
/* stop here */
Please sign in to comment.
Something went wrong with that request. Please try again.