generated from ut-issl/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split ObcTime config into obc_time_config.h
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef OBC_TIME_CONFIG_H_ | ||
#define OBC_TIME_CONFIG_H_ | ||
|
||
// step, cycleについてはTimeManagerを参照のこと | ||
// デフォルト設定 | ||
#define OBCT_STEP_IN_MSEC (1) //!< 1 step で何 ms か | ||
#define OBCT_STEPS_PER_CYCLE (100) //!< 何 step で 1 cycle か | ||
#define OBCT_CYCLES_PER_SEC (1000 / OBCT_STEP_IN_MSEC / OBCT_STEPS_PER_CYCLE) //!< 1 s で何 cycle か | ||
#define OBCT_MAX_CYCLE (0xfffffff0u) //!< 最大 cycle 数.つまり TI がいくつでオーバーフローするか | ||
|
||
// user 設定 | ||
#include <src_user/Settings/System/obc_time_params.h> | ||
|
||
#endif // OBC_TIME_CONFIG_H_ |