/*
             LUFA Library
     Copyright (C) Dean Camera, 2012.

  dean [at] fourwalledcubicle [dot] com
           www.lufa-lib.org
*/

// simplified and adapted by AP 2014
// updated for 32bit by MDK 2017
/*
  Copyright 2012  Dean Camera (dean [at] fourwalledcubicle [dot] com)
*/

#ifndef _NON_BLOCK_DELAY_H
#define _NON_BLOCK_DELAY_H

extern volatile uint32_t tick_counter; /*Variable for store number of tick*/

uint8_t is_time_now(uint8_t reset, uint32_t * delay_counter,  uint32_t delay);
void reset_delay(uint32_t* delay_counter);

#endif