]> git.sur5r.net Git - u-boot/blobdiff - include/os.h
usb:gadget:s5p Enable the USB Gadget framework at Exynos4210 (C210 Universal)
[u-boot] / include / os.h
index fd4120c359346769a109fc0a9395b745a660cf1d..f3af4f0e0e46e80ddd24efd98a5e5274b20a8204 100644 (file)
@@ -84,3 +84,17 @@ void os_tty_raw(int fd);
  * \return Pointer to length bytes or NULL on error
  */
 void *os_malloc(size_t length);
+
+/**
+ * Access to the usleep function of the os
+ *
+ * \param usec Time to sleep in micro seconds
+ */
+void os_usleep(unsigned long usec);
+
+/**
+ * Gets a monotonic increasing number of nano seconds from the OS
+ *
+ * \return A monotonic increasing time scaled in nano seconds
+ */
+u64 os_get_nsec(void);