/** @file timer_interra.h
*
* @brief A Timer used to generate the delay functionality, will later try to execute events.
*
* @par
* NOTICE: Property of in-Terra Limited www.in-terra.ch .
*/


#ifndef TIMER_INTERRA_H
#define TIMER_INTERRA_H


#include <stdbool.h>
#include <stdint.h>
#include "app_timer.h"

#ifdef __cplusplus
extern "C" {
#endif



uint8_t delay();
void
timer_start(uint32_t ms_time);
void timer_init (void);
void timer_0_handler(void * p_context);
extern uint8_t timer_exp_flag;
uint8_t timer_ms(uint32_t time_miliseconds);


#define APP_TIMER_PRESCALER             15    // Value of the RTC1 PRESCALER register.
#define APP_TIMER_OP_QUEUE_SIZE         3     // Size of timer operation queues.




#ifdef __cplusplus
}


#endif
#endif /* TIMER_INTERRA_H */
 
/*** end of file ***/