Subversion Repositories svn.mios32

Rev

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

Rev 1919 Rev 1920
Line 71... Line 71...
71
/////////////////////////////////////////////////////////////////////////////
71
/////////////////////////////////////////////////////////////////////////////
72
void APP_Tick(void)
72
void APP_Tick(void)
73
{
73
{
74
    int pot;
74
    int pot;
75
75
76
    // toggle the status LED (this is a sign of life)
76
    // PWM modulate the status LED (this is a sign of life)
-
 
77
    u32 timestamp = MIOS32_TIMESTAMP_Get();
77
    MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
78
    MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
78
79
79
    // Update potentiometer hardware
80
    // Update potentiometer hardware
80
    DPOT_Update();
81
    DPOT_Update();
81
82
82
    // increment all the digital pots
83
    // increment all the digital pots