| 1 | // %flair:license{
|
---|
| 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
| 4 | // %flair:license}
|
---|
| 5 | // created: 2013/04/21
|
---|
| 6 | // filename: config.h
|
---|
| 7 | //
|
---|
| 8 | // author: Guillaume Sanahuja
|
---|
| 9 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 10 | //
|
---|
| 11 | // version: $Id: $
|
---|
| 12 | //
|
---|
| 13 | // purpose: configuration du framework
|
---|
| 14 | //
|
---|
| 15 | //
|
---|
| 16 | /*********************************************************************/
|
---|
| 17 |
|
---|
| 18 | #ifndef CONFIG_H
|
---|
| 19 | #define CONFIG_H
|
---|
| 20 |
|
---|
| 21 | // stack size of nrt threads, comment it to use default value
|
---|
| 22 | #define NRT_STACK_SIZE 1024 * 1024 * 1
|
---|
| 23 |
|
---|
| 24 | // stack size of rt threads, comment it to use default value
|
---|
| 25 | #define RT_STACK_SIZE 1024 * 100
|
---|
| 26 |
|
---|
| 27 | // rt pipe size, comment it to use system heap
|
---|
| 28 | #define RT_PIPE_SIZE 1024 * 1024
|
---|
| 29 |
|
---|
| 30 | // nrt pipe size
|
---|
| 31 | #define NRT_PIPE_SIZE 1024 * 100
|
---|
| 32 |
|
---|
| 33 | // rt log heap size
|
---|
| 34 | #define LOG_HEAP 1024 * 100
|
---|
| 35 |
|
---|
| 36 | // xml heap size
|
---|
| 37 | #define XML_HEAP 5 * 1024 * 1024
|
---|
| 38 |
|
---|
| 39 | // nrt pipe path
|
---|
| 40 | #define NRT_PIPE_PATH "/proc/xenomai/registry/native/pipes/"
|
---|
| 41 |
|
---|
| 42 | // min priority for Threads
|
---|
| 43 | #define MIN_THREAD_PRIORITY 20
|
---|
| 44 |
|
---|
| 45 | // max priority for Threads
|
---|
| 46 | #define MAX_THREAD_PRIORITY 99
|
---|
| 47 |
|
---|
| 48 | // priority of the FrameworkManager task (manages udt connection)
|
---|
| 49 | #define FRAMEWORK_TASK_PRIORITY 1
|
---|
| 50 |
|
---|
| 51 | // timeout in ms for select
|
---|
| 52 | #define SELECT_TIMEOUT_MS 200
|
---|
| 53 |
|
---|
| 54 | // type of xml root element
|
---|
| 55 | #define XML_ROOT_TYPE "root"
|
---|
| 56 |
|
---|
| 57 | // name of xml root element
|
---|
| 58 | //#define XML_ROOT_ELEMENT "Manager"
|
---|
| 59 |
|
---|
| 60 | // name of main tabwidget
|
---|
| 61 | #define XML_MAIN_TABWIDGET "Main_TabWidget"
|
---|
| 62 |
|
---|
| 63 | // name of app tabwidget
|
---|
| 64 | #define XML_APP_TABWIDGET "App_TabWidget"
|
---|
| 65 |
|
---|
| 66 | // use compression for messages with ground station
|
---|
| 67 | #define COMPRESS_FRAMES
|
---|
| 68 |
|
---|
| 69 | // size of buffer shunck
|
---|
| 70 | #define COMPRESS_CHUNK 1024
|
---|
| 71 |
|
---|
| 72 | #endif // CONFIG_H
|
---|