sidk_s5jt200: initialize timers at boot
Now that the MCT of S5J is supported, let's initialize timers at boot so
that users may access them through /dev/timerN.
#include <tinyara/fs/mtd.h>
#include "sidk_s5jt200.h"
+#include "s5j_mct.h"
/****************************************************************************
* Pre-processor Definitions
@@ -344,6 +345,18 @@ int board_app_initialize(void)
scsc_wpa_ctrl_iface_init();
+#ifdef CONFIG_TIMER
+ {
+ int i;
+ char path[CONFIG_PATH_MAX];
+
+ for (i = 0; i < CONFIG_S5J_MCT_NUM; i++) {
+ sprintf(path, "/dev/timer%d", i);
+ s5j_timer_initialize(path, i);
+ }
+ }
+#endif
+
#ifdef CONFIG_EXAMPLES_EEPROM_TEST
ee_test_main(0, NULL);
#endif
