AB&T / SOEM

Dependents:   EasyCAT_LAB_simple EasyCAT_LAB_very_simple EasyCAT_LAB

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers osal_defs.h Source File

osal_defs.h

00001 /*
00002  * Licensed under the GNU General Public License version 2 with exceptions. See
00003  * LICENSE file in the project root for full license information
00004  */
00005 
00006 #ifndef _osal_defs_
00007 #define _osal_defs_
00008 
00009 
00010 
00011 #ifdef __cplusplus
00012 extern "C"
00013 {
00014 #endif
00015 
00016 
00017 // define if debug printf is needed
00018 //#define EC_DEBUG
00019 
00020 #ifdef EC_DEBUG
00021 #define EC_PRINT printf
00022 #else
00023 #define EC_PRINT(...) do {} while (0)
00024 #endif
00025 
00026 //#ifndef PACKED                  
00027 #define PACKED_BEGIN
00028 #define PACKED  __attribute__((__packed__))
00029 #define PACKED_END
00030 //#endif                        
00031 
00032 
00033 #ifdef __cplusplus
00034 }
00035 #endif
00036 
00037 #endif