aboutsummaryrefslogtreecommitdiff
path: root/avr/core.h
blob: 8e0feb854f9d4a8e1faebca931f184cb4b84a23c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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