/*
 * Trigger_FGND_RTI_PERIODIC_804p0001.c
 *
 * Real-Time Workshop code generation for Simulink model "Controller.mdl".
 *
 * Model Version              : 1.375
 * Real-Time Workshop version : 7.3  (R2009a)  15-Jan-2009
 * C source code generated on : Mon Jan 11 12:01:10 2010
 *
 * Target selection: motohawk_ert_rtw.tlc
 * Embedded hardware selection: Specified
 * Code generation objectives: Unspecified
 * Validation result: Not run
 */

#include "Controller.h"
#include "Controller_private.h"

void Trigger_FGND_RTI_PERIODIC_804p0001(void)
{
  {
    extern NativeError_S GetFreeRunningCounter64Bits(S_FreeRunningCounter64Bit *);
    S_FreeRunningCounter64Bit time64;
    GetFreeRunningCounter64Bits(&time64);
    Controller_M->Timing.clockTick0 = time64.u4Lower32Bits;
    Controller_M->Timing.clockTickH0 = time64.u4Upper32Bits;
  }

  {
    Controller_Foreground();
  }
}
