libuav original

Dependents:   UAVCAN UAVCAN_Subscriber

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers chconf.h Source File

chconf.h

00001 /*
00002  * Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
00003  */
00004 
00005 #pragma once
00006 
00007 #define CH_FREQUENCY                    1000
00008 
00009 #define CH_USE_HEAP                     TRUE
00010 #define CH_USE_DYNAMIC                  FALSE
00011 
00012 #if defined(DEBUG_BUILD) && DEBUG_BUILD
00013 #   define CH_OPTIMIZE_SPEED               FALSE
00014 #   define CH_DBG_SYSTEM_STATE_CHECK       TRUE
00015 #   define CH_DBG_ENABLE_CHECKS            TRUE
00016 #   define CH_DBG_ENABLE_ASSERTS           TRUE
00017 #   define CH_DBG_ENABLE_STACK_CHECK       TRUE
00018 #   define CH_DBG_FILL_THREADS             TRUE
00019 #   define CH_DBG_THREADS_PROFILING        TRUE
00020 #elif defined(RELEASE_BUILD) && RELEASE_BUILD
00021 #   define CH_DBG_THREADS_PROFILING        FALSE
00022 #else
00023 #   error "Invalid configuration: Either DEBUG_BUILD or RELEASE_BUILD must be true"
00024 #endif
00025 
00026 #define PORT_IDLE_THREAD_STACK_SIZE    64
00027 #define PORT_INT_REQUIRED_STACK        256
00028 
00029 #include <zubax_chibios/sys/chconf_tail.h>