Subversion Repositories svn.mios

Rev

Rev 1201 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1201 Rev 1202
Line 105... Line 105...
105
105
106
void preset_load(unsigned char num) __wparam{
106
void preset_load(unsigned char num) __wparam{
107
  unsigned int addr=num;
107
  unsigned int addr=num;
108
  addr <<=6;
108
  addr <<=6;
109
  MIOS_BANKSTICK_ReadPage(addr,(char*)current_preset);
109
  MIOS_BANKSTICK_ReadPage(addr,(char*)current_preset);
-
 
110
  inout_map_build();
110
}
111
}
111
112
112
113
113
void preset_store(unsigned char num) __wparam{
114
void preset_store(unsigned char num) __wparam{
114
  unsigned int addr=num;
115
  unsigned int addr=num;
Line 270... Line 271...
270
}
271
}
271
 
272
 
272
void current_preset_set(unsigned char value) __wparam{
273
void current_preset_set(unsigned char value) __wparam{
273
  current_preset_num = value;
274
  current_preset_num = value;
274
  preset_load(value);
275
  preset_load(value);
275
  inout_map_build();
-
 
276
  MIOS_EEPROM_Write(0x01,value);
276
  MIOS_EEPROM_Write(0x01,value);
277
}
277
}
278
278
279
 
279
 
280
//----------timed functions----------------
280
//----------timed functions----------------
Line 329... Line 329...
329
      for(i=1;i<16;i++){
329
      for(i=1;i<16;i++){
330
        preset_store(i);
330
        preset_store(i);
331
      }
331
      }
332
      current_preset_set(0);
332
      current_preset_set(0);
333
      current_bus_set(0);
333
      current_bus_set(0);
334
      inout_map_build();
-
 
335
      led_flash_start(0xff,5,10);//flash 5 times
334
      led_flash_start(0xff,5,10);//flash 5 times
336
    }
335
    }
337
    else{//screen is bank
336
    else{//screen is bank
338
      preset_init(1);//empty current preset
337
      preset_init(1);//empty current preset
339
      current_bus_set(0);
338
      current_bus_set(0);