Ver Fonte

ColdFire: Fix compilation issue caused by a missing function

Implement usec2ticks() which is used by fsl_i2c.c in
lib_m68k/time.c

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
TsiChung Liew há 16 anos atrás
pai
commit
ac169d645f
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      lib_m68k/time.c

+ 5 - 0
lib_m68k/time.c

@@ -199,6 +199,11 @@ unsigned long long get_ticks(void)
 	return get_timer(0);
 	return get_timer(0);
 }
 }
 
 
+unsigned long usec2ticks(unsigned long usec)
+{
+	return get_timer(usec);
+}
+
 /*
 /*
  * This function is derived from PowerPC code (timebase clock frequency).
  * This function is derived from PowerPC code (timebase clock frequency).
  * On M68K it returns the number of timer ticks per second.
  * On M68K it returns the number of timer ticks per second.