comparison src/cs/system/main/init.c @ 17:9a8a20d45be7

Timer2 for Nucleus RTOS ticks
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 15 May 2020 04:54:15 +0000
parents c07376e250c1
children
comparison
equal deleted inserted replaced
16:9582c4e40607 17:9a8a20d45be7
135 135
136 #include "dma/dma.h" 136 #include "dma/dma.h"
137 #include "rhea/rhea_arm.h" 137 #include "rhea/rhea_arm.h"
138 138
139 #include "ulpd/ulpd.h" 139 #include "ulpd/ulpd.h"
140
141 /* FC FFS editor */
142 #include "timer2.h"
140 143
141 #if (PSP_STANDALONE == 0) 144 #if (PSP_STANDALONE == 0)
142 #if (OP_L1_STANDALONE == 0) 145 #if (OP_L1_STANDALONE == 0)
143 extern void ffs_main_init(void); 146 extern void ffs_main_init(void);
144 extern void create_tasks(void); 147 extern void create_tasks(void);
800 803
801 // Enable HW Timers 1 & 2 804 // Enable HW Timers 1 & 2
802 TM_EnableTimer (1); 805 TM_EnableTimer (1);
803 TM_EnableTimer (2); 806 TM_EnableTimer (2);
804 807
808 /* FC FFS editor */
809 Dtimer2_Init_cntl (1875, 1, 0, 1);
810 Dtimer2_Start (1);
811
805 #endif /* (OP_L1_STANDALONE == 0) */ 812 #endif /* (OP_L1_STANDALONE == 0) */
806 813
807 #endif /* #if (BOARD == 5) */ 814 #endif /* #if (BOARD == 5) */
808 } 815 }
809 816
935 IQ_Unmask(IQ_ARMIO); 942 IQ_Unmask(IQ_ARMIO);
936 #endif 943 #endif
937 #if (L1_DYN_DSP_DWNLD == 1) 944 #if (L1_DYN_DSP_DWNLD == 1)
938 IQ_Unmask(IQ_API); 945 IQ_Unmask(IQ_API);
939 #endif 946 #endif
947 /* FC FFS editor */
948 IQ_Unmask(IQ_TIM2);
940 } 949 }