projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: profiling on STM32L
[fw/altos]
/
src
/
stm
/
ao_arch.h
diff --git
a/src/stm/ao_arch.h
b/src/stm/ao_arch.h
index d8fa3e899d0792409dbc05964913d241acfc289b..f2de719c6c3c63346ddebd0037aa1a1fcfcc568a 100644
(file)
--- a/
src/stm/ao_arch.h
+++ b/
src/stm/ao_arch.h
@@
-25,10
+25,15
@@
* STM32L definitions and code fragments for AltOS
*/
* STM32L definitions and code fragments for AltOS
*/
-#define AO_STACK_SIZE
668
+#define AO_STACK_SIZE
512
#define AO_LED_TYPE uint16_t
#define AO_LED_TYPE uint16_t
+#ifndef AO_TICK_TYPE
+#define AO_TICK_TYPE uint16_t
+#define AO_TICK_SIGNED int16_t
+#endif
+
/* Various definitions to make GCC look more like SDCC */
#define ao_arch_naked_declare __attribute__((naked))
/* Various definitions to make GCC look more like SDCC */
#define ao_arch_naked_declare __attribute__((naked))
@@
-59,7
+64,19
@@
extern void putchar(char c);
extern char getchar(void);
extern void ao_avr_stdio_init(void);
extern char getchar(void);
extern void ao_avr_stdio_init(void);
+
+/*
+ * ao_romconfig.c
+ */
+
+#define AO_ROMCONFIG_VERSION 2
+
+#define AO_ROMCONFIG_SYMBOL(a) __attribute__((section(".romconfig"))) const
+
+extern const uint16_t ao_romconfig_version;
+extern const uint16_t ao_romconfig_check;
extern const uint16_t ao_serial_number;
extern const uint16_t ao_serial_number;
+extern const uint32_t ao_radio_cal;
#define ARM_PUSH32(stack, val) (*(--(stack)) = (val))
#define ARM_PUSH32(stack, val) (*(--(stack)) = (val))
@@
-126,7
+143,7
@@
extern const uint16_t ao_serial_number;
#define ao_arch_cpu_idle() do { \
#define ao_arch_cpu_idle() do { \
- asm("
wfi");
\
+ asm("
.global ao_idle_loc\n\twfi\nao_idle_loc:");
\
} while (0)
#define ao_arch_restore_stack() do { \
} while (0)
#define ao_arch_restore_stack() do { \