X-Git-Url: https://robinkrens.nl/gitweb/?p=cortex-from-scratch;a=blobdiff_plain;f=include%2Fsys%2Frobsys.h;fp=include%2Fsys%2Frobsys.h;h=9a19a4729792a4800656cc142035203b6be2bb9f;hp=e02eded97ccb631dd5ee1459d92abd3e12cf7f98;hb=8b8d6edcd57f69b40f430bc172e1c290a629a6a9;hpb=09ef787389713bb6dbba15b603d0071af8709cb2 diff --git a/include/sys/robsys.h b/include/sys/robsys.h index e02eded..9a19a47 100644 --- a/include/sys/robsys.h +++ b/include/sys/robsys.h @@ -1,8 +1,23 @@ #ifndef __SYSTEM_H #define __SYSTEM_H -/* CLOCK.C */ + +/* CLOCK.C + * Board specific clock settings. These boards often come with two + * external oscillators: one high speed (8MHz) and one low speed (~30kHz). + * These values are used throughout the code to calculator desired baud + * rates etc. + */ +//#define ENABLE_HSE +//efine CRYSTAL_MHZ 8 +//efine CLKSPEED_MHZ 72 extern void clock_init(); +// extern int clock_test(); +// extern void clock_reset(); + +/* RTC.C */ +#define ENABLE_RTC +extern void rtc_init(); /* IVT.C */ extern void ivt_init(); @@ -14,12 +29,6 @@ extern void systick_init(); /* SYSINFO.C */ extern void sysinfo(); -/* MM.C DELETE TODO */ -//extern void mm_init(); -//extern void * malloc(size_t); -//extern void free(void *); -//extern void test_memory(uint32_t *); - /* POOL.c */ extern void pool_init(size_t, unsigned int, uint32_t *); extern void * alloc();