Guest User

gxIgnore

a guest
May 13th, 2022
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 7.35 KB | None | 0 0
  1. //
  2. // --------------------------------------------------------------------------
  3. //  Gurux Ltd
  4. //
  5. //
  6. //
  7. // Filename:        $HeadURL$
  8. //
  9. // Version:         $Revision$,
  10. //                  $Date$
  11. //                  $Author$
  12. //
  13. // Copyright (c) Gurux Ltd
  14. //
  15. //---------------------------------------------------------------------------
  16. //
  17. //  DESCRIPTION
  18. //
  19. // This file is a part of Gurux Device Framework.
  20. //
  21. // Gurux Device Framework is Open Source software; you can redistribute it
  22. // and/or modify it under the terms of the GNU General Public License
  23. // as published by the Free Software Foundation; version 2 of the License.
  24. // Gurux Device Framework is distributed in the hope that it will be useful,
  25. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  26. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27. // See the GNU General Public License for more details.
  28. //
  29. // This code is licensed under the GNU General Public License v2.
  30. // Full text may be retrieved at http://www.gnu.org/licenses/gpl-2.0.txt
  31. //---------------------------------------------------------------------------
  32. #ifndef GXIGNORE_H
  33. #define GXIGNORE_H
  34.  
  35. #ifdef  __cplusplus
  36. extern "C" {
  37. #endif
  38.  
  39. /* Uncomment defines to ignore non-needed parts to make image size smaller. */
  40.  
  41. // #define DLMS_IGNORE_HDLC
  42. #define DLMS_IGNORE_WRAPPER
  43. #define DLMS_IGNORE_PLC
  44. // #define DLMS_IGNORE_NOTIFY
  45. // #define DLMS_IGNORE_SERVER
  46. #define DLMS_IGNORE_CLIENT
  47. #define GX_DLMS_MICROCONTROLLER
  48. #define DLMS_IGNORE_HIGH_SHA256
  49. #define DLMS_IGNORE_HIGH_SHA1
  50. #define DLMS_IGNORE_HIGH_MD5
  51. // #define DLMS_IGNORE_AES
  52. // #define DLMS_IGNORE_HIGH_GMAC
  53. // #define DLMS_IGNORE_DATA
  54. // #define DLMS_IGNORE_REGISTER
  55. // #define DLMS_IGNORE_EXTENDED_REGISTER
  56. // #define DLMS_IGNORE_DEMAND_REGISTER
  57. // #define DLMS_IGNORE_REGISTER_ACTIVATION
  58. // #define DLMS_IGNORE_PROFILE_GENERIC
  59. // #define DLMS_IGNORE_CLOCK
  60. // #define DLMS_IGNORE_SCRIPT_TABLE
  61. // #define DLMS_IGNORE_SCHEDULE
  62. // #define DLMS_IGNORE_SPECIAL_DAYS_TABLE
  63. // #define DLMS_IGNORE_ASSOCIATION_SHORT_NAME
  64. // #define DLMS_IGNORE_ASSOCIATION_LOGICAL_NAME
  65. // #define DLMS_IGNORE_SAP_ASSIGNMENT
  66. // #define DLMS_IGNORE_IMAGE_TRANSFER
  67. // #define DLMS_IGNORE_IEC_LOCAL_PORT_SETUP
  68. // #define DLMS_IGNORE_ACTIVITY_CALENDAR
  69. // #define DLMS_IGNORE_REGISTER_MONITOR
  70. // #define DLMS_IGNORE_ACTION_SCHEDULE
  71. // #define DLMS_IGNORE_IEC_HDLC_SETUP
  72. #define DLMS_IGNORE_IEC_TWISTED_PAIR_SETUP
  73. #define DLMS_IGNORE_MBUS_SLAVE_PORT_SETUP
  74. #define DLMS_IGNORE_UTILITY_TABLES
  75. #define DLMS_IGNORE_MODEM_CONFIGURATION
  76. #define DLMS_IGNORE_AUTO_ANSWER
  77. #define DLMS_IGNORE_AUTO_CONNECT
  78. #define DLMS_IGNORE_TCP_UDP_SETUP
  79. #define DLMS_IGNORE_IP4_SETUP
  80. #define DLMS_IGNORE_IP6_SETUP
  81. #define DLMS_IGNORE_MAC_ADDRESS_SETUP
  82. #define DLMS_IGNORE_PPP_SETUP
  83. #define DLMS_IGNORE_GPRS_SETUP
  84. #define DLMS_IGNORE_SMTP_SETUP
  85. #define DLMS_IGNORE_GSM_DIAGNOSTIC
  86. #define DLMS_IGNORE_REGISTER_TABLE
  87. #define DLMS_IGNORE_STATUS_MAPPING
  88. // #define DLMS_IGNORE_SECURITY_SETUP
  89. // #define DLMS_IGNORE_DISCONNECT_CONTROL
  90. #define DLMS_IGNORE_LIMITER
  91. #define DLMS_IGNORE_MBUS_CLIENT
  92. // #define DLMS_IGNORE_PUSH_SETUP
  93. #define DLMS_IGNORE_PARAMETER_MONITOR
  94. #define DLMS_IGNORE_WIRELESS_MODE_Q_CHANNEL
  95. #define DLMS_IGNORE_MBUS_MASTER_PORT_SETUP
  96. #define DLMS_IGNORE_ZIG_BEE_SAS_STARTUP
  97. #define DLMS_IGNORE_ZIG_BEE_SAS_JOIN
  98. #define DLMS_IGNORE_ZIG_BEE_SAS_APS_FRAGMENTATION
  99. #define DLMS_IGNORE_ZIG_BEE_NETWORK_CONTROL
  100. // #define DLMS_IGNORE_DATA_PROTECTION
  101. // #define DLMS_IGNORE_ACCOUNT
  102. // #define DLMS_IGNORE_CREDIT
  103. // #define DLMS_IGNORE_CHARGE
  104. // #define DLMS_IGNORE_TOKEN_GATEWAY
  105. // #define DLMS_IGNORE_COMPACT_DATA
  106. // #define DLMS_IGNORE_LLC_SSCS_SETUP
  107. // #define DLMS_IGNORE_PRIME_NB_OFDM_PLC_PHYSICAL_LAYER_COUNTERS
  108. // #define DLMS_IGNORE_PRIME_NB_OFDM_PLC_MAC_SETUP
  109. // #define DLMS_IGNORE_PRIME_NB_OFDM_PLC_MAC_FUNCTIONAL_PARAMETERS
  110. // #define DLMS_IGNORE_PRIME_NB_OFDM_PLC_MAC_COUNTERS
  111. // #define DLMS_IGNORE_PRIME_NB_OFDM_PLC_MAC_NETWORK_ADMINISTRATION_DATA
  112. // #define DLMS_IGNORE_PRIME_NB_OFDM_PLC_APPLICATIONS_IDENTIFICATION
  113. // #define DLMS_IGNORE_ARBITRATOR
  114.  
  115. // #define DLMS_IGNORE_MALLOC
  116. // #define DLMS_USE_CUSTOM_MALLOC
  117.  
  118. // #define DLMS_IGNORE_OBJECT_POINTERS
  119.  
  120. // #define DLMS_IGNORE_FLOAT32
  121. // #define DLMS_IGNORE_FLOAT64
  122.  
  123. //Use EPOCH time. This can be used to improve memory usage.
  124. // #define DLMS_USE_EPOCH_TIME
  125.  
  126. //Use UTC time zone. Read more: https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSClock
  127. // #define DLMS_USE_UTC_TIME_ZONE
  128.  
  129. // #define DLMS_IGNORE_SET
  130. // #define DLMS_IGNORE_ACTION
  131.  
  132. // String converters are not used.
  133. // #define DLMS_IGNORE_STRING_CONVERTER
  134.  
  135. //Framework send debug information that can be used in debugging.
  136. // #define DLMS_DEBUG
  137.  
  138. //Defined if AVR is used.
  139. // #define USE_AVR
  140.  
  141. //Defined if program memory (flash) is used instead of SRAM.
  142. // #define USE_PROGMEM
  143.  
  144. // COSEM objects are using DLMS standard data types.
  145. // Using exact data types will save memory, but reading failes if meter returns wrong data type,
  146. // ex. Int8 when data type should be UInt8.
  147. // #define DLMS_COSEM_EXACT_DATA_TYPES
  148.  
  149. // If innovation counter size is UInt64 and not default UInt32.
  150. // #define DLMS_COSEM_INVOCATION_COUNTER_SIZE64
  151.  
  152. // Use 32 bit max size bytebuffer instead of 16 bit.
  153. // This might be used in client side if a lot of data is read from the meter.
  154. // #define GX_DLMS_BYTE_BUFFER_SIZE_32
  155.  
  156. //Serializer is not used.
  157. //DLMS_IGNORE_SERIALIZER
  158. //Serializer is used instead of file system.
  159. #define GX_DLMS_SERIALIZER
  160.  
  161. //GENERAL_CIPHERING is not used.
  162. //#define DLMS_IGNORE_GENERAL_CIPHERING
  163.  
  164. // #define DLMS_ITALIAN_STANDARD
  165. // #define DLMS_INDONESIA_STANDARD
  166.  
  167. #ifdef ARDUINO
  168. /////////////////////////////////////////////////////////////////////////////
  169. //If Arduino is used.
  170. #include "../ArduinoIgnore.h"
  171. /////////////////////////////////////////////////////////////////////////////
  172. #endif //ARDUINO
  173.  
  174. #ifdef ARDUINO_ARCH_AVR
  175. /////////////////////////////////////////////////////////////////////////////
  176. //If Arduino is used.
  177. #include "../ArduinoIgnore.h"
  178. #define DLMS_IGNORE_IP6_SETUP
  179. #define DLMS_USE_EPOCH_TIME
  180. #define DLMS_IGNORE_NOTIFY
  181. #define GX_DLMS_MICROCONTROLLER
  182. #define DLMS_IGNORE_HIGH_SHA256
  183. #define DLMS_IGNORE_HIGH_SHA1
  184. #define DLMS_IGNORE_HIGH_MD5
  185. #define USE_PROGMEM
  186. /////////////////////////////////////////////////////////////////////////////
  187. #endif //ARDUINO_ARCH_AVR
  188.  
  189. #ifdef ARDUINO_ARCH_ESP32
  190. /////////////////////////////////////////////////////////////////////////////
  191. //If Arduino ESP32 is used.
  192. #include "../ArduinoIgnore.h"
  193. #define DLMS_IGNORE_IP6_SETUP
  194. #define DLMS_USE_EPOCH_TIME
  195. #define DLMS_IGNORE_NOTIFY
  196. #define GX_DLMS_MICROCONTROLLER
  197. #define DLMS_IGNORE_HIGH_SHA256
  198. #define DLMS_IGNORE_HIGH_SHA1
  199. #define DLMS_IGNORE_HIGH_MD5
  200. /////////////////////////////////////////////////////////////////////////////
  201. #endif //ARDUINO_ARCH_ESP32
  202.  
  203. #ifdef ARDUINO_ARCH_ESP8266
  204. /////////////////////////////////////////////////////////////////////////////
  205. //If Arduino ESP is used.
  206. #include "../ArduinoIgnore.h"
  207. #define ESP_PLATFORM
  208. #define DLMS_IGNORE_IP6_SETUP
  209. #define DLMS_USE_EPOCH_TIME
  210. #define DLMS_IGNORE_NOTIFY
  211. #define GX_DLMS_MICROCONTROLLER
  212. #define DLMS_IGNORE_HIGH_SHA256
  213. #define DLMS_IGNORE_HIGH_SHA1
  214. #define DLMS_IGNORE_HIGH_MD5
  215. /////////////////////////////////////////////////////////////////////////////
  216. #endif //ARDUINO_ARCH_ESP8266
  217.  
  218.  
  219. #ifdef  __cplusplus
  220. }
  221. #endif
  222.  
  223. #endif //GXIGNORE_H
  224.  
Advertisement
Add Comment
Please, Sign In to add comment