/**
 * @file alarms_s9_full.oil
 *
 * @section desc File description
 *
 * @section copyright Copyright
 *
 * Trampoline Test Suite
 *
 * Trampoline Test Suite is copyright (c) IRCCyN 2005-2007
 * Trampoline Test Suite is protected by the French intellectual property law.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; version 2
 * of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 * @section infos File informations
 *
 * $Date$
 * $Rev$
 * $Author$
 * $URL$
 */

OIL_VERSION = "2.5" : "alarms_s9";

#include <arch.oil>
#include <softwareIT.oil>

IMPLEMENTATION trampoline {
  TASK {
    UINT32 [1..10] PRIORITY = 1;
  };
};

CPU test {
  OS config {
    STATUS = EXTENDED;
    BUILD = TRUE {
      APP_SRC = "alarms_s9.c";
      APP_SRC = "task1_instance.c";
      APP_SRC = "task2_instance.c";
      APP_SRC = "task3_instance.c";
      APP_SRC = "task4_instance.c";
      APP_SRC = "task5_instance.c";
      APP_SRC = "isr1_instance.c";
      APP_SRC = "callback_instance1.c";
      APP_SRC = "callback_instance2.c";
      TRAMPOLINE_BASE_PATH = "../../..";
      APP_NAME = "alarms_s9_full_exe";
    };
    SHUTDOWNHOOK = TRUE;
  };

  APPMODE std {};

  TASK t1 {
    AUTOSTART = FALSE;
    PRIORITY = 1;
    ACTIVATION = 1;
    SCHEDULE = FULL;
  };
 
  TASK t2 {
    AUTOSTART = FALSE;
    PRIORITY = 1;
    ACTIVATION = 1;
    SCHEDULE = FULL;
  };
 
  TASK t3 {
    AUTOSTART = FALSE;
    PRIORITY = 4;
    ACTIVATION = 1;
    SCHEDULE = FULL;
    EVENT = Event1;
  };
 
  TASK t4 {
    AUTOSTART = FALSE;
    PRIORITY = 1;
    ACTIVATION = 1;
    SCHEDULE = FULL;
    EVENT = Event1;
  };
 
  TASK t5 {
    AUTOSTART = TRUE { APPMODE = std; };
    PRIORITY = 2;
    ACTIVATION = 1;
    SCHEDULE = FULL;
  };

  ISR softwareInterruptHandler0 {
    CATEGORY = 2;
    PRIORITY = 1;
  };

  COUNTER Counter0 {
    MAXALLOWEDVALUE = 16;
    TICKSPERBASE = 10;
    MINCYCLE = 2;
  };
 
  ALARM Alarm0 {
    COUNTER = Counter0;
    ACTION = ACTIVATETASK {
      TASK = t1;
    };
    AUTOSTART = FALSE;
  };

  COUNTER Counter1 {
    MAXALLOWEDVALUE = 16;
    TICKSPERBASE = 10;
    MINCYCLE = 1;
  };
 
  ALARM Alarm1_1 {
    COUNTER = Counter1;
    ACTION = ACTIVATETASK {
      TASK = t1;
    };
    AUTOSTART = FALSE;
  };
 
  ALARM Alarm1_2 {
    COUNTER = Counter1;
    ACTION = ACTIVATETASK {
      TASK = t2;
    };
    AUTOSTART = FALSE;
  };
 
  ALARM Alarm2_1 {
    COUNTER = Counter1;
    ACTION = SETEVENT {
      TASK = t3;
      EVENT = Event1;
    };
    AUTOSTART = FALSE;
  };
 
  ALARM Alarm2_2 {
    COUNTER = Counter1;
    ACTION = SETEVENT {
      TASK = t4;
      EVENT = Event1;
    };
    AUTOSTART = FALSE;
  };
 
  ALARM Alarm3 {
    COUNTER = Counter1;
    ACTION = ALARMCALLBACK {
      ALARMCALLBACKNAME = "CallBackC";
    };
    AUTOSTART = FALSE;
  };

  EVENT Event1 {
    MASK = AUTO;
  };
};

/* End of file alarms_s9_full.oil */