Subversion Repositories svn.mios32

Compare Revisions

Ignore whitespace Rev 1919 → Rev 1920

/trunk/apps/controllers/midio128_v3/src/app.c
220,8 → 220,9
/////////////////////////////////////////////////////////////////////////////
void APP_Tick(void)
{
// toggle the status LED (this is a sign of life)
MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
// PWM modulate the status LED (this is a sign of life)
u32 timestamp = MIOS32_TIMESTAMP_Get();
MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
}
 
 
/trunk/apps/controllers/midibox_kb_v1/src/app.c
137,22 → 137,35
/////////////////////////////////////////////////////////////////////////////
void APP_Background(void)
{
// init LCD
MIOS32_LCD_Clear();
MIOS32_LCD_CursorSet(0, 0);
MIOS32_LCD_PrintString("see README.txt ");
MIOS32_LCD_CursorSet(0, 1);
MIOS32_LCD_PrintString("for details ");
}
 
// endless loop
while( 1 ) {
// toggle the state of all LEDs (allows to measure the execution speed with a scope)
MIOS32_BOARD_LED_Set(0xffffffff, ~MIOS32_BOARD_LED_Get());
}
 
/////////////////////////////////////////////////////////////////////////////
// This hook is called each mS from the main task which also handles DIN, ENC
// and AIN events. You could add more jobs here, but they shouldn't consume
// more than 300 uS to ensure the responsiveness of buttons, encoders, pots.
// Alternatively you could create a dedicated task for application specific
// jobs as explained in $MIOS32_PATH/apps/tutorials/006_rtos_tasks
/////////////////////////////////////////////////////////////////////////////
void APP_Tick(void)
{
// PWM modulate the status LED (this is a sign of life)
u32 timestamp = MIOS32_TIMESTAMP_Get();
MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
}
 
 
/////////////////////////////////////////////////////////////////////////////
// This hook is called each mS from the MIDI task which checks for incoming
// MIDI events. You could add more MIDI related jobs here, but they shouldn't
// consume more than 300 uS to ensure the responsiveness of incoming MIDI.
/////////////////////////////////////////////////////////////////////////////
void APP_MIDI_Tick(void)
{
}
 
 
/////////////////////////////////////////////////////////////////////////////
// This hook is called when a MIDI package has been received
/////////////////////////////////////////////////////////////////////////////
void APP_MIDI_NotifyPackage(mios32_midi_port_t port, mios32_midi_package_t midi_package)
/trunk/apps/controllers/midibox_kb_v1/src/app.h
31,6 → 31,8
 
extern void APP_Init(void);
extern void APP_Background(void);
extern void APP_Tick(void);
extern void APP_MIDI_Tick(void);
extern void APP_MIDI_NotifyPackage(mios32_midi_port_t port, mios32_midi_package_t midi_package);
extern s32 APP_SYSEX_Parser(mios32_midi_port_t port, u8 midi_in);
extern void APP_SRIO_ServicePrepare(void);
/trunk/apps/tutorials/005_polling_j5_pins/app.c
77,8 → 77,9
/////////////////////////////////////////////////////////////////////////////
void APP_Tick(void)
{
// toggle the state of all LEDs (this is a sign of life)
MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
// PWM modulate the status LED (this is a sign of life)
u32 timestamp = MIOS32_TIMESTAMP_Get();
MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
}
 
 
/trunk/apps/tutorials/027_scs/app.c
85,8 → 85,9
/////////////////////////////////////////////////////////////////////////////
void APP_Tick(void)
{
// toggle the status LED (this is a sign of life)
MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
// PWM modulate the status LED (this is a sign of life)
u32 timestamp = MIOS32_TIMESTAMP_Get();
MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
}
 
 
/trunk/apps/tutorials/023_mutex/app.c
80,8 → 80,9
/////////////////////////////////////////////////////////////////////////////
void APP_Tick(void)
{
// toggle the status LED (this is a sign of life)
//MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
// PWM modulate the status LED (this is a sign of life)
//u32 timestamp = MIOS32_TIMESTAMP_Get();
//MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
}
 
 
/trunk/apps/tutorials/026_dpot/app.c
73,8 → 73,9
{
int pot;
 
// toggle the status LED (this is a sign of life)
MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
// PWM modulate the status LED (this is a sign of life)
u32 timestamp = MIOS32_TIMESTAMP_Get();
MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
 
// Update potentiometer hardware
DPOT_Update();
/trunk/apps/tutorials/029_keyboard_velocity/app.c
169,8 → 169,9
/////////////////////////////////////////////////////////////////////////////
void APP_Tick(void)
{
// toggle the status LED (this is a sign of life)
MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
// PWM modulate the status LED (this is a sign of life)
u32 timestamp = MIOS32_TIMESTAMP_Get();
MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
}
 
 
/trunk/apps/tutorials/022_glcd_touchpanel/app.c
116,8 → 116,9
/////////////////////////////////////////////////////////////////////////////
void APP_Tick(void)
{
// toggle the status LED (this is a sign of life)
MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
// PWM modulate the status LED (this is a sign of life)
u32 timestamp = MIOS32_TIMESTAMP_Get();
MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
}
 
 
/trunk/apps/tutorials/020_lcd/app.c
64,8 → 64,9
/////////////////////////////////////////////////////////////////////////////
void APP_Tick(void)
{
// toggle the state of all LEDs (this is a sign of life)
MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
// PWM modulate the status LED (this is a sign of life)
u32 timestamp = MIOS32_TIMESTAMP_Get();
MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
}
 
 
/trunk/apps/tutorials/025_sysex_and_eeprom/app.c
120,8 → 120,9
/////////////////////////////////////////////////////////////////////////////
void APP_Tick(void)
{
// toggle the status LED (this is a sign of life)
MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
// PWM modulate the status LED (this is a sign of life)
u32 timestamp = MIOS32_TIMESTAMP_Get();
MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
}
 
 
/trunk/apps/tutorials/021_glcd/app.c
76,8 → 76,9
/////////////////////////////////////////////////////////////////////////////
void APP_Tick(void)
{
// toggle the status LED (this is a sign of life)
MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
// PWM modulate the status LED (this is a sign of life)
u32 timestamp = MIOS32_TIMESTAMP_Get();
MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
}
 
 
/trunk/apps/tutorials/024_i2s_synth/app.c
123,8 → 123,9
/////////////////////////////////////////////////////////////////////////////
void APP_Tick(void)
{
// toggle the status LED (this is a sign of life)
//MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
// PWM modulate the status LED (this is a sign of life)
//u32 timestamp = MIOS32_TIMESTAMP_Get();
//MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
}
 
 
/trunk/apps/tutorials/028_osc/app.c
76,8 → 76,9
/////////////////////////////////////////////////////////////////////////////
void APP_Tick(void)
{
// toggle the status LED (this is a sign of life)
MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
// PWM modulate the status LED (this is a sign of life)
u32 timestamp = MIOS32_TIMESTAMP_Get();
MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
}
 
 
/trunk/apps/processing/midibox_cv_v2/src/app.cpp
233,8 → 233,9
/////////////////////////////////////////////////////////////////////////////
extern "C" void APP_Tick(void)
{
// toggle the status LED (this is a sign of life)
MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
// PWM modulate the status LED (this is a sign of life)
u32 timestamp = MIOS32_TIMESTAMP_Get();
MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
}
 
 
/trunk/apps/templates/app_skeleton/app.c
46,8 → 46,9
/////////////////////////////////////////////////////////////////////////////
void APP_Tick(void)
{
// toggle the status LED (this is a sign of life)
MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
// PWM modulate the status LED (this is a sign of life)
u32 timestamp = MIOS32_TIMESTAMP_Get();
MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
}
 
 
/trunk/apps/templates/app_skeleton_cpp/app.cpp
49,8 → 49,9
/////////////////////////////////////////////////////////////////////////////
extern "C" void APP_Tick(void)
{
// toggle the status LED (this is a sign of life)
MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
// PWM modulate the status LED (this is a sign of life)
u32 timestamp = MIOS32_TIMESTAMP_Get();
MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
}