Subversion Repositories svn.mios32

Rev

Rev 2576 | Rev 2594 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2576 Rev 2593
Line 109... Line 109...
109
void APP_Init(void)
109
void APP_Init(void)
110
{
110
{
111
   MIOS32_BOARD_LED_Init(0xffffffff); // initialize all LEDs
111
   MIOS32_BOARD_LED_Init(0xffffffff); // initialize all LEDs
112
112
113
   MIOS32_MIDI_SendDebugMessage("=============================================================");
113
   MIOS32_MIDI_SendDebugMessage("=============================================================");
114
   MIOS32_MIDI_SendDebugMessage("Starting MBLoopa");
114
   MIOS32_MIDI_SendDebugMessage("Starting LoopA");
115
115
116
   // enable MSD by default (has to be enabled in SHIFT menu)
116
   // enable MSD by default (has to be enabled in SHIFT menu)
117
   msd_state = MSD_DISABLED;
117
   msd_state = MSD_DISABLED;
118
118
119
   // hardware will be enabled once configuration has been loaded from SD Card
119
   // hardware will be enabled once configuration has been loaded from SD Card
Line 177... Line 177...
177
   enc_config.cfg.speed = NORMAL;
177
   enc_config.cfg.speed = NORMAL;
178
   enc_config.cfg.speed_par = 0;
178
   enc_config.cfg.speed_par = 0;
179
   MIOS32_ENC_ConfigSet(enc_data_id, enc_config);
179
   MIOS32_ENC_ConfigSet(enc_data_id, enc_config);
180
180
181
   // start tasks
181
   // start tasks
182
   xTaskCreate(TASK_Period_1mS, (signed portCHAR *)"1mS", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD_1mS, NULL);
182
   xTaskCreate(TASK_Period_1mS, (const char * const)"1mS", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD_1mS, NULL);
183
   xTaskCreate(TASK_Period_1mS_LP, (signed portCHAR *)"1mS_LP", 2*configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD_1mS_LP, NULL);
183
   xTaskCreate(TASK_Period_1mS_LP, (const char * const)"1mS_LP", 2*configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD_1mS_LP, NULL);
184
   xTaskCreate(TASK_Period_1mS_SD, (signed portCHAR *)"1mS_SD", 2*configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD_1mS_SD, NULL);
184
   xTaskCreate(TASK_Period_1mS_SD, (const char * const)"1mS_SD", 2*configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD_1mS_SD, NULL);
185
185
186
   loopaStartup();
186
   loopaStartup();
187
}
187
}
188
188
189
189
Line 275... Line 275...
275
{
275
{
276
   // MIOS32_MIDI_SendDebugMessage("PIN %d toggled - value %d", pin, pin_value);
276
   // MIOS32_MIDI_SendDebugMessage("PIN %d toggled - value %d", pin, pin_value);
277
277
278
   if (pin_value == 0)
278
   if (pin_value == 0)
279
      loopaButtonPressed(pin);
279
      loopaButtonPressed(pin);
-
 
280
   else
-
 
281
      loopaButtonReleased(pin);
280
}
282
}
281
283
282
284
283
/////////////////////////////////////////////////////////////////////////////
285
/////////////////////////////////////////////////////////////////////////////
284
// This hook is called when an encoder has been moved
286
// This hook is called when an encoder has been moved