Revision 1678f270 core/inc/aos_confcheck.h

View differences:

core/inc/aos_confcheck.h
1 1
/*
2 2
AMiRo-OS is an operating system designed for the Autonomous Mini Robot (AMiRo) platform.
3
Copyright (C) 2016..2018  Thomas Schöpping et al.
3
Copyright (C) 2016..2019  Thomas Schöpping et al.
4 4

  
5 5
This program is free software: you can redistribute it and/or modify
6 6
it under the terms of the GNU General Public License as published by
......
49 49
  #error "AMIROOS_CFG_MAIN_LOOP_TIMEOUT not defined in aosconf.h"
50 50
#endif
51 51

  
52
#if (AMIROOS_CFG_SSSP_ENABLE == true)
53

  
54 52
/*
55 53
 * SSSP parameters and options
56 54
 */
57 55

  
58
#ifndef AMIROOS_CFG_SSSP_MASTER
59
  #error "AMIROOS_CFG_SSSP_MASTER not defined in aosconf.h"
56
#ifndef AMIROOS_CFG_SSSP_ENABLE
57
  #error "AMIROOS_CFG_SSSP_ENABLE not defined in aosconf.h"
60 58
#endif
61 59

  
62
#ifndef AMIROOS_CFG_SSSP_STACK_START
63
  #error "AMIROOS_CFG_SSSP_STACK_START not defined in aosconf.h"
64
#endif
60
# if (AMIROOS_CFG_SSSP_ENABLE == true)
65 61

  
66
#ifndef AMIROOS_CFG_SSSP_STACK_END
67
  #error "AMIROOS_CFG_SSSP_STACK_END not defined in aosconf.h"
68
#endif
62
  #ifndef AMIROOS_CFG_SSSP_MASTER
63
    #error "AMIROOS_CFG_SSSP_MASTER not defined in aosconf.h"
64
  #endif
69 65

  
70
#if (AMIROOS_CFG_SSSP_STACK_START == true) && (AMIROOS_CFG_SSSP_STACK_END == true)
71
  #warning "AMIROOS_CFG_SSSP_STACK_START and AMIROOS_CFG_SSSP_STACK_END both enabled in aosconf.h"
72
  #if (AMIROOS_CFG_SSSP_MASTER != true)
73
    #error "AMIROOS_CFG_SSSP_MASTER must be enabled in this case"
66
  #ifndef AMIROOS_CFG_SSSP_STACK_START
67
    #error "AMIROOS_CFG_SSSP_STACK_START not defined in aosconf.h"
74 68
  #endif
75
#endif
76 69

  
77
#ifndef AMIROOS_CFG_SSSP_SIGNALDELAY
78
  #error "AMIROOS_CFG_SSSP_SIGNALDELAY not defined in aosconf.h"
79
#endif
70
  #ifndef AMIROOS_CFG_SSSP_STACK_END
71
    #error "AMIROOS_CFG_SSSP_STACK_END not defined in aosconf.h"
72
  #endif
80 73

  
81
#ifndef AMIROOS_CFG_SSSP_SYSSYNCPERIOD
82
  #error "AMIROOS_CFG_SSSP_SYSSYNCPERIOD not defined in aosconf.h"
83
#endif
74
  #if (AMIROOS_CFG_SSSP_STACK_START == true) && (AMIROOS_CFG_SSSP_STACK_END == true)
75
    #warning "AMIROOS_CFG_SSSP_STACK_START and AMIROOS_CFG_SSSP_STACK_END both enabled in aosconf.h"
76
    #if (AMIROOS_CFG_SSSP_MASTER != true)
77
      #error "AMIROOS_CFG_SSSP_MASTER must be enabled in this case"
78
    #endif
79
  #endif
80

  
81
  #ifndef AMIROOS_CFG_SSSP_SIGNALDELAY
82
    #error "AMIROOS_CFG_SSSP_SIGNALDELAY not defined in aosconf.h"
83
  #endif
84

  
85
  #ifndef AMIROOS_CFG_SSSP_SYSSYNCPERIOD
86
    #error "AMIROOS_CFG_SSSP_SYSSYNCPERIOD not defined in aosconf.h"
87
  #endif
84 88

  
85 89
#endif
90

  
86 91
/*
87 92
 * System shell options
88 93
 */

Also available in: Unified diff