Subversion Repositories svn.mios32

Compare Revisions

Ignore whitespace Rev 1919 → Rev 1920

/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));
}