kalloc and kfree interface and abstraction
[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 void clock_reset();
16
17 /* RTC.C */
18 #define ENABLE_RTC      
19 extern void rtc_init();
20
21 /* IVT.C */
22 extern void ivt_init();
23 extern void ivt_set_gate(unsigned char, void *(), short);
24
25 /* SYSTICK.C */
26 extern void systick_init();
27
28 /* SYSINFO.C */
29 extern void sysinfo();
30
31 /* HEAP.c */
32 /* typedef void * (kalloc)(void * s);
33  * typedef void (kfree)(void * s, void * p); */
34 extern void kheap_init();
35 extern void * get_kheap();
36 extern void * kalloc(void * s);
37 extern void kfree(void * s, void * p);
38 extern void kheap_info(void * s);
39
40 /* TERM.C */
41 extern void terminal();
42
43 #endif