projects
/
cortex-from-scratch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'tm1637'
[cortex-from-scratch]
/
include
/
sys
/
robsys.h
diff --git
a/include/sys/robsys.h
b/include/sys/robsys.h
index
e02eded
..
9a19a47
100644
(file)
--- a/
include/sys/robsys.h
+++ b/
include/sys/robsys.h
@@
-1,8
+1,23
@@
#ifndef __SYSTEM_H
#define __SYSTEM_H
#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 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();
/* IVT.C */
extern void ivt_init();
@@
-14,12
+29,6
@@
extern void systick_init();
/* SYSINFO.C */
extern void sysinfo();
/* 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();
/* POOL.c */
extern void pool_init(size_t, unsigned int, uint32_t *);
extern void * alloc();