/*
 * ul_timing.c
 *
 *  Created on: Sep 29, 2011
 *      Author: qwer1
 */

#include "ul_timing.h"

volatile U8 t_flags;
volatile U8 t_flags_sync;
volatile U8 t_1_cnt;
volatile U8 t_10_cnt;
volatile U8 t_100_cnt;
volatile U8 t_1000_cnt;
volatile U8 t_tick_cnt;

//inline void _delay_loops(U32 loops) __attribute__ ((always_inline, naked));
#ifdef __ARM_ARCH_7M__
	inline void _delay_loops(U32 loops) {
		asm volatile (
			"1: SUBS %[loops], %[loops], #1 \n"
			"   BNE 1b \n"
			: [loops] "+r"(loops)
		);
	}
#endif

void setup_timing( void ) {
}
