system_settings.h 547 B

123456789101112131415
  1. #ifndef SYSTEM_SETTINGS_H_
  2. #define SYSTEM_SETTINGS_H_
  3. #include "stm8s.h"
  4. #define MAX_GLOBAL_TIMING_COUNT ((uint32_t)(0x9A7EC800)) // 2,592,000,000 (30 days)
  5. #define INTERVAL_1MS ((uint16_t)(1U))
  6. #define INTERVAL_100MS ((uint16_t)(100U))
  7. #define INTERVAL_1000MS ((uint16_t)(1000U))
  8. #define MAX_TASK_NUMBERS ((uint8_t)(2U)) // Number of tasks running
  9. extern uint8_t Flag_1MS;
  10. extern uint32_t Global_Timing_Counter;
  11. #endif /* SYSTEM_SETTINGS_H_ */