From 50998fcfb916ae251309bd4b464f2c122e8cb30d Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 9 Apr 2021 18:38:02 +0200 Subject: Repo re-org --- controller/fw/src/sr_global.h | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 controller/fw/src/sr_global.h (limited to 'controller/fw/src/sr_global.h') diff --git a/controller/fw/src/sr_global.h b/controller/fw/src/sr_global.h deleted file mode 100644 index 97db4e4..0000000 --- a/controller/fw/src/sr_global.h +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef __SR_GLOBAL_H__ -#define __SR_GLOBAL_H__ - -#include -#include - -#ifndef SIMULATION -#include -#include -#endif - -#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); - -static inline void panic(void) { - asm volatile ("bkpt"); -} - -#endif /* __SR_GLOBAL_H__ */ -- cgit