move some constants out to the common header.
This commit is contained in:
parent
d6f898c2fc
commit
2478b742d7
2 changed files with 4 additions and 3 deletions
|
@ -29,8 +29,6 @@
|
|||
// (e.g. by using guard/trigger flags).
|
||||
STATIC_ASSERT(RTC1_IRQ_PRI == SWI0_IRQ_PRI);
|
||||
|
||||
#define MAX_RTC_COUNTER_VAL 0x00FFFFFF /**< Maximum value of the RTC counter. */
|
||||
|
||||
#define APP_HIGH_USER_ID 0 /**< User Id for the Application High "user". */
|
||||
#define APP_LOW_USER_ID 1 /**< User Id for the Application Low "user". */
|
||||
#define THREAD_MODE_USER_ID 2 /**< User Id for the Thread Mode "user". */
|
||||
|
@ -124,7 +122,6 @@ STATIC_ASSERT(sizeof(timer_user_t) % 4 == 0);
|
|||
*/
|
||||
typedef uint32_t timer_user_id_t;
|
||||
|
||||
#define TIMER_NULL ((app_timer_id_t)(0 - 1)) /**< Invalid timer id. */
|
||||
#define CONTEXT_QUEUE_SIZE_MAX (2) /**< Timer internal elapsed ticks queue size. */
|
||||
|
||||
static uint8_t m_node_array_size; /**< Size of timer node array. */
|
||||
|
|
|
@ -62,6 +62,8 @@ extern "C" {
|
|||
#define APP_TIMER_USER_SIZE 8 /**< Size of app_timer.timer_user_t (only for use inside APP_TIMER_BUF_SIZE()). */
|
||||
#define APP_TIMER_INT_LEVELS 3 /**< Number of interrupt levels from where timer operations may be initiated (only for use inside APP_TIMER_BUF_SIZE()). */
|
||||
|
||||
#define MAX_RTC_COUNTER_VAL 0x00FFFFFF /**< Maximum value of the RTC counter. */
|
||||
|
||||
/**@brief Compute number of bytes required to hold the application timer data structures.
|
||||
*
|
||||
* @param[in] MAX_TIMERS Maximum number of timers that can be created at any given time.
|
||||
|
@ -106,6 +108,8 @@ extern "C" {
|
|||
/**@brief Timer id type. */
|
||||
typedef uint32_t app_timer_id_t;
|
||||
|
||||
#define TIMER_NULL ((app_timer_id_t)(0 - 1)) /**< Invalid timer id. */
|
||||
|
||||
/**@brief Application timeout handler type. */
|
||||
typedef void (*app_timer_timeout_handler_t)(void * p_context);
|
||||
|
||||
|
|
Loading…
Reference in a new issue