162dafc1c0bee2945e9382ed7e754169d2e27b51
[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 ENABLE_RTC      
13 //efine CRYSTAL_MHZ     8
14 //efine CLKSPEED_MHZ    72
15 extern void clock_init();
16 extern int clock_test();
17 // extern void clock_reset();
18
19 /* IVT.C */
20 extern void ivt_init();
21 extern void ivt_set_gate(unsigned char, void *(), short);
22
23 /* SYSTICK.C */
24 extern void systick_init();
25
26 /* SYSINFO.C */
27 extern void sysinfo();
28
29 /* POOL.c */
30 extern void pool_init(size_t, unsigned int, uint32_t *);
31 extern void * alloc();
32 extern void free();
33
34 /* TERM.C */
35 extern void terminal();
36
37 #endif