Compilerswitch für Firmware, die nur den Dataflash per USB rausreicht (zum
authorWintermute <wintermute@hannover.ccc.de>
Fri, 25 Oct 2013 21:41:19 +0000 (23:41 +0200)
committerWintermute <wintermute@hannover.ccc.de>
Fri, 25 Oct 2013 21:41:19 +0000 (23:41 +0200)
Flashen der Dinger)

Makefile
badge/jumpnrun/levels/wrongtrn.lv
badge/main.c

index 6521086..001ad97 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,7 @@ DEBUGBUILD = FALSE
 ##########################################################################\r
 \r
 #OPTDEFINES = -D __NEWLIB__ -DR0KET\r
+#OPTDEFINES = -D __NEWLIB__ -DHOB_REV2 -DUSBONLY\r
 OPTDEFINES = -D __NEWLIB__ -DHOB_REV2\r
 ##########################################################################\r
 # Project-specific files \r
index 154ca2a..9fab1d7 100644 (file)
@@ -8,8 +8,8 @@
                       23                             01         23          ##          #           #      #                  #  ##2323        #  #                   23 C  M  K  C  M  K d  23      #                                   
                       23       ?            ??       23  CC     23            ##    M   #            #    #                        2323       ##  # C      M      K   ######################### M##  #                                   
                       23                             #############              #########            #    #                        ####      ##    #####################                     ######  #                                   
-                    M 23                                     #                                        #  #                  ? ?             ###                                                      #                                   
-                      23                                     #                                        #  #                                 ####     C K M C K                                        #                                   
+                      23                                     #                                        #  #                  ? ?             ###                                                      #                                   
+                    M 23                                     #                                        #  #                                 ####     C K M C K                                        #                                   
             #########################            #######################################       ########  #####      #####    #    ##############  ################# # # # #   #   #   #   # # # # ###############
 
 [tiles]
index 2ffc4fe..cb9a0c9 100644 (file)
@@ -254,12 +254,16 @@ int main(void)
   FATFS fs;
   f_mount(0, &fs);
 
+#ifdef USBONLY
+  for(;;) usbmode();
+#else
   if(badge_input_raw() & BADGE_EVENT_KEY_DOWN) {
     usbmode();
   }
 
   badge_event_start();
   main_menu();
+#endif
 
   return 0;
 }
This page took 0.029719 seconds and 4 git commands to generate.