summaryrefslogtreecommitdiff
path: root/controller/fw/src/sr_global.h
diff options
context:
space:
mode:
authorjaseg <git-bigdata-wsl-arch@jaseg.de>2020-03-16 19:19:34 +0100
committerjaseg <git-bigdata-wsl-arch@jaseg.de>2020-03-16 19:19:34 +0100
commita1dc923315514ed6f23da5f2c0950830975299f8 (patch)
tree9954004d0517c73b57a2021213a91975b7779931 /controller/fw/src/sr_global.h
parentfed186a49fc8f27a8a31fd40f8c8b26d32a4b932 (diff)
downloadmaster-thesis-a1dc923315514ed6f23da5f2c0950830975299f8.tar.gz
master-thesis-a1dc923315514ed6f23da5f2c0950830975299f8.tar.bz2
master-thesis-a1dc923315514ed6f23da5f2c0950830975299f8.zip
Fix serial
Diffstat (limited to 'controller/fw/src/sr_global.h')
-rw-r--r--controller/fw/src/sr_global.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/controller/fw/src/sr_global.h b/controller/fw/src/sr_global.h
index ac77359..451cce0 100644
--- a/controller/fw/src/sr_global.h
+++ b/controller/fw/src/sr_global.h
@@ -2,12 +2,25 @@
#define __SR_GLOBAL_H__
#include <stdint.h>
+#include <stm32f407xx.h>
+#include <stm32f4_isr.h>
+#include <sys/types.h>
#define UNUSED(x) ((void) x)
#define ARRAY_LENGTH(x) (sizeof(x) / sizeof(x[0]))
#define unused_a __attribute__((unused))
+extern unsigned int sysclk_speed;
+extern unsigned int apb1_speed;
+extern unsigned int apb2_speed;
+extern unsigned int auxclk_speed;
+extern unsigned int apb1_timer_speed;
+extern unsigned int apb2_timer_speed;
+
+extern struct leds {
+ unsigned int comm_tx;
+} leds;
static inline uint16_t htole(uint16_t val) { return val; }
void __libc_init_array(void);