1 /*
2 * clk.h
3 *
4 * Created on: Apr 2, 2017
5 * Author: a0216546
6 */
8 #ifndef _CLK_H
9 #define _CLK_H
11 #include <stdint.h>
13 /* Some useful constants */
14 /* These constants may need calibration if platform properties change */
15 /* Measurement was done with optimizatoin disabled for the clk.c and main.c */
16 #define CLK_WORKCNT_PER_MS 3000 /* Number of iterations of clkWorkDelay() to
17 achieve 1ms work on 750MHz CPU Clock */
18 #define CLK_CLOCKS_PER_MS 750000UL /* for 750MHz */
20 /* Functions in clk.c */
21 extern void clkWorkDelay(int loopcnt);
22 extern void clkDelay(uint32_t pause);
23 extern void clk0Fun(void);
24 extern void clk1Fun(void);
25 extern void task0Fun(void);
26 extern void task1Fun(void);
28 #endif /* _CLK_H */
29 /* nothing past this point */