// **************************************************************************** // NOTE: Do not implement any file guard. // This file will be multiply included for the macro table generations. // **************************************************************************** //***************************************************************************** // (C) Automotive Lighting Reutlingen GmbH // Tuebinger Strasse 123, 72762 Reutlingen, Germany // // Automotive Lighting Reutlingen GmbH owns all the rights to this work. // This work shall not be copied, reproduced, used, modified, transferred // or its information shall not be disclosed without the prior written // authorization of Automotive Lighting Reutlingen GmbH. //***************************************************************************** #if defined(__cplusplus) #include #else // AXIVION Next Line AutosarC++19_03-A16.2.2: AUTOSAR permitted #include #endif // AXIVION Next Line AutosarC++19_03-A16.2.2: AUTOSAR permitted #include // AXIVION Next Line AutosarC++19_03-A16.2.2: AUTOSAR permitted #include // AXIVION Next Line AutosarC++19_03-A16.2.2: AUTOSAR permitted #include // AXIVION Next Line AutosarC++19_03-A16.2.2: AUTOSAR permitted #include // AXIVION Next Line AutosarC++19_03-A16.2.2: AUTOSAR permitted #include #if !defined(OS_TASK_IDLE) #define OS_TASK_IDLE() SysIdle_OsIdleTask() #endif // ***************************************************************************** // Configure the operating system tasks. // The offset represents the first call time // of the tasks during start of the OS. // The order of the tasks represents the // task priority, where the 0th entry has // the highest priority. // ***************************************************************************** // ***************************************************************************** // Use prime numbers for offsets. // Use Wolfram's alpha or Mathematica(R): Table[Prime[n], {n, 50, 4000, 50}] // to obtain: // 229, 541, 863, 1223, 1583, 1987, 2357, 2741, 3181, 3571, // 3989, 4409, 4831, 5279, 5693, 6133, 6571, 6997, 7499, 7919, // 8387, 8831, 9283, 9733, 10177, 10657, 11149, 11657, 12109, 12553, // 13007, 13499, 13967, 14519, 14947, 15401, 15881, 16381, 16903, 17389, // 17891, 18313, 18899, 19423, 19891, 20357, 20897, 21383, 21841, 22307, // 22817, 23321, 23827, 24281, 24877, 25391, 25913, 26399, 26891, 27449, // 27947, 28499, 28933, 29443, 30059, 30559, 31091, 31601, 32159, 32609, // 33113, 33613, 34157, 34649, 35159, 35759, 36277, 36781, 37309, 37813 // ***************************************************************************** // AXIVION Next Line AutosarC++19_03-A7.2.3: AUTOSAR permitted BEGIN_OS_TASK_MAP() // Function Cycle [us] Offset [us] TASK_CFG( ApplBlinky_UserLed, UTILTIME_USEC( 17000U), UTILTIME_USEC( 0U)) TASK_CFG( ApplBenchmark_Main, UTILTIME_USEC( 100000U), UTILTIME_USEC( 541U)) END_OS_TASK_MAP()