|
@@ -65,12 +65,12 @@ void rt_hw_fpu_init(void)
|
|
|
rt_uint32_t c0_status = 0;
|
|
|
rt_uint32_t c1_status = 0;
|
|
|
|
|
|
- // 使能协处理器1--FPU
|
|
|
+ // 浣胯兘鍗忓�鐞嗗櫒1--FPU
|
|
|
c0_status = read_c0_status();
|
|
|
c0_status |= (ST0_CU1 | ST0_FR);
|
|
|
write_c0_status(c0_status);
|
|
|
|
|
|
- // 配置FPU
|
|
|
+ // 閰嶇疆FPU
|
|
|
c1_status = read_c1_status();
|
|
|
c1_status |= (FPU_CSR_FS | FPU_CSR_FO | FPU_CSR_FN); // set FS, FO, FN
|
|
|
c1_status &= ~(FPU_CSR_ALL_E); // disable exception
|
|
@@ -96,6 +96,11 @@ void rt_hw_board_init(void)
|
|
|
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
|
|
|
#endif
|
|
|
|
|
|
+#ifdef RT_USING_CAN
|
|
|
+ /* init hardware CAN device */
|
|
|
+ ls1c_bxcan_init();
|
|
|
+#endif
|
|
|
+
|
|
|
|
|
|
#ifdef RT_USING_I2C
|
|
|
#ifdef RT_USING_I2C0
|
|
@@ -179,6 +184,7 @@ void rt_hw_board_init(void)
|
|
|
#endif
|
|
|
|
|
|
|
|
|
+
|
|
|
/* init operating system timer */
|
|
|
rt_hw_timer_init();
|
|
|
|