aboutsummaryrefslogtreecommitdiff
path: root/avr/core.h
diff options
context:
space:
mode:
authorOtto Mattik <otto@mattik.org>2021-07-08 18:10:55 +0200
committerOtto Mattik <otto@mattik.org>2021-07-08 18:10:55 +0200
commitda34d97efb21719b2b332f8c60b2750d11bcde1f (patch)
tree2de9fe89f6d79b8ebfcde64c5e86204e904aedf2 /avr/core.h
downloadarmen-da34d97efb21719b2b332f8c60b2750d11bcde1f.tar.gz
armen-da34d97efb21719b2b332f8c60b2750d11bcde1f.zip
git: update to v1.0HEADv1.0master
Diffstat (limited to 'avr/core.h')
-rw-r--r--avr/core.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/avr/core.h b/avr/core.h
new file mode 100644
index 0000000..8e0feb8
--- /dev/null
+++ b/avr/core.h
@@ -0,0 +1,29 @@
+/************************************************************************/
+/* */
+/* File: avr/core.h */
+/* Description: definitions for AVR core */
+/* Version: 1.0 */
+/* Author: Otto Mattik */
+/* */
+/* (C)Copyright Otto Mattik 2014-2021. */
+/* */
+/* This file is a part of 'armen' (a tiny operating system). */
+/* 'armen' is distributed under the CeCILL-V2.1 licence. For more */
+/* details about this licence, please visit the website cecill.info */
+/* */
+/************************************************************************/
+
+#ifndef _AVR_CORE_H_
+#define _AVR_CORE_H_
+
+#ifndef F_CPU
+ #error "cpu clock frequency is not defined"
+#endif
+
+#ifdef __AVR_3_BYTE_PC__
+ #define IDLE_STACK_SIZE 45 /* 39 + 2 calls */
+#else
+ #define IDLE_STACK_SIZE 41 /* 37 + 2 calls */
+#endif
+
+#endif