fixup! s5j: add device driver for mct
authorHeesub Shin <heesub.shin@samsung.com>
Fri, 12 May 2017 08:44:31 +0000 (17:44 +0900)
committerEunBong Song <eunb.song@samsung.com>
Tue, 11 Jul 2017 01:26:55 +0000 (10:26 +0900)
Change-Id: Ic0be7d19a5263ef760e82ad0d460e26cbb691e78

os/arch/arm/src/s5j/s5j_mct.c

index 239f03c..1704469 100644 (file)
@@ -65,6 +65,7 @@
 
 #include <tinyara/arch.h>
 #include <tinyara/irq.h>
+#include <tinyara/clock.h>
 
 #include <arch/board/board.h>
 
@@ -78,7 +79,6 @@
 /****************************************************************************
  * Pre-processor Definitions
  ****************************************************************************/
-#define USEC_TO_FREQ               (1000000)
 
 /****************************************************************************
  * Private Types
@@ -281,7 +281,7 @@ FAR struct s5j_mct_priv_s *s5j_mct_init(int timer)
        }
 
        if (!g_mct_initialized && priv) {
-               s5j_mct_setclock(USEC_TO_FREQ);
+               s5j_mct_setclock(USEC_PER_SEC);
                g_mct_initialized = true;
        }