bac670316523709017c3a5df39a6bc613a00cdf5
[cortex-from-scratch] / include / sys / robsys.h
1 #ifndef __SYSTEM_H
2 #define __SYSTEM_H
3
4
5 /* CLOCK.C 
6  * Board specific clock settings. These boards often come with two 
7  * external oscillators: one high speed (8MHz) and one low speed (~30kHz).
8  * These values are used throughout the code to calculator desired baud
9  * rates etc.
10  */
11 //#define ENABLE_HSE            
12 //#define CRYSTAL_MHZ   8
13 #define CLKSPEED_MHZ 8
14 extern void clock_init();
15 // extern int clock_test();
16 // extern void clock_reset();
17
18 /* RTC.C */
19 #define ENABLE_RTC      
20 extern void rtc_init();
21
22 /* IVT.C */
23 extern void ivt_init();
24 extern void ivt_set_gate(unsigned char, void *(), short);
25
26 /* SYSTICK.C */
27 extern void systick_init();
28
29 /* SYSINFO.C */
30 extern void sysinfo();
31
32 /* POOL.c */
33 extern void pool_init(size_t, unsigned int, uint32_t *);
34 extern void * alloc();
35 extern void free();
36
37 /* TERM.C */
38 extern void terminal();
39
40 #endif