File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ void lp_ticker_info_test()
111111 TEST_ASSERT (p_ticker_info->frequency <= 64000 );
112112 TEST_ASSERT (p_ticker_info->bits >= 12 );
113113
114- #ifdef LP_TICKER_PERIOD_NUM
114+ #if defined( LP_TICKER_PERIOD_NUM) || defined(CHECK_TICKER_OPTIM)
115115 TEST_ASSERT_UINT32_WITHIN (1 , (uint64_t )1000000 * LP_TICKER_PERIOD_DEN / LP_TICKER_PERIOD_NUM, p_ticker_info->frequency );
116116 TEST_ASSERT_EQUAL_UINT32 (LP_TICKER_MASK, ((uint64_t )1 << p_ticker_info->bits ) - 1 );
117117#endif
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ void us_ticker_info_test()
4646
4747 TEST_ASSERT (p_ticker_info->bits >= 16 );
4848
49- #ifdef US_TICKER_PERIOD_NUM
49+ #if defined( US_TICKER_PERIOD_NUM) || defined(CHECK_TICKER_OPTIM)
5050 TEST_ASSERT_UINT32_WITHIN (1 , (uint64_t )1000000 * US_TICKER_PERIOD_DEN / US_TICKER_PERIOD_NUM, p_ticker_info->frequency );
5151 TEST_ASSERT_EQUAL_UINT32 (US_TICKER_MASK, ((uint64_t )1 << p_ticker_info->bits ) - 1 );
5252#endif
You can’t perform that action at this time.
0 commit comments