rtconfig.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* RT-Thread Kernel */
  4. #define RT_NAME_MAX 8
  5. #define RT_USING_SMART
  6. #define RT_CPUS_NR 1
  7. #define RT_ALIGN_SIZE 4
  8. #define RT_THREAD_PRIORITY_32
  9. #define RT_THREAD_PRIORITY_MAX 32
  10. #define RT_TICK_PER_SECOND 1000
  11. #define RT_USING_OVERFLOW_CHECK
  12. #define RT_USING_HOOK
  13. #define RT_HOOK_USING_FUNC_PTR
  14. #define RT_USING_IDLE_HOOK
  15. #define RT_IDLE_HOOK_LIST_SIZE 4
  16. #define IDLE_THREAD_STACK_SIZE 8192
  17. #define RT_USING_TIMER_SOFT
  18. #define RT_TIMER_THREAD_PRIO 4
  19. #define RT_TIMER_THREAD_STACK_SIZE 4096
  20. /* kservice optimization */
  21. /* end of kservice optimization */
  22. /* klibc optimization */
  23. /* end of klibc optimization */
  24. #define RT_USING_DEBUG
  25. #define RT_DEBUGING_COLOR
  26. #define RT_DEBUGING_CONTEXT
  27. /* Inter-Thread communication */
  28. #define RT_USING_SEMAPHORE
  29. #define RT_USING_MUTEX
  30. #define RT_USING_EVENT
  31. #define RT_USING_MAILBOX
  32. #define RT_USING_MESSAGEQUEUE
  33. #define RT_USING_SIGNALS
  34. /* end of Inter-Thread communication */
  35. /* Memory Management */
  36. #define RT_PAGE_MAX_ORDER 11
  37. #define RT_USING_MEMPOOL
  38. #define RT_USING_SMALL_MEM
  39. #define RT_USING_MEMHEAP
  40. #define RT_MEMHEAP_FAST_MODE
  41. #define RT_USING_SMALL_MEM_AS_HEAP
  42. #define RT_USING_MEMTRACE
  43. #define RT_USING_HEAP
  44. /* end of Memory Management */
  45. #define RT_USING_DEVICE
  46. #define RT_USING_DEVICE_OPS
  47. #define RT_USING_INTERRUPT_INFO
  48. #define RT_USING_CONSOLE
  49. #define RT_CONSOLEBUF_SIZE 256
  50. #define RT_CONSOLE_DEVICE_NAME "uart0"
  51. #define RT_VER_NUM 0x50200
  52. #define RT_USING_STDC_ATOMIC
  53. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  54. /* end of RT-Thread Kernel */
  55. #define RT_USING_CACHE
  56. #define RT_USING_HW_ATOMIC
  57. #define RT_USING_CPU_FFS
  58. #define ARCH_MM_MMU
  59. #define ARCH_ARM
  60. #define ARCH_ARM_MMU
  61. #define KERNEL_VADDR_START 0xc0000000
  62. #define ARCH_ARM_CORTEX_A
  63. #define RT_USING_GIC_V2
  64. #define ARCH_ARM_CORTEX_A7
  65. #define ARCH_ARM_SECURE_MODE
  66. #define RT_BACKTRACE_FUNCTION_NAME
  67. /* RT-Thread Components */
  68. #define RT_USING_COMPONENTS_INIT
  69. #define RT_USING_USER_MAIN
  70. #define RT_MAIN_THREAD_STACK_SIZE 4096
  71. #define RT_MAIN_THREAD_PRIORITY 10
  72. #define RT_USING_MSH
  73. #define RT_USING_FINSH
  74. #define FINSH_USING_MSH
  75. #define FINSH_THREAD_NAME "tshell"
  76. #define FINSH_THREAD_PRIORITY 20
  77. #define FINSH_THREAD_STACK_SIZE 4096
  78. #define FINSH_USING_HISTORY
  79. #define FINSH_HISTORY_LINES 5
  80. #define FINSH_USING_SYMTAB
  81. #define FINSH_CMD_SIZE 80
  82. #define MSH_USING_BUILT_IN_COMMANDS
  83. #define FINSH_USING_DESCRIPTION
  84. #define FINSH_ARG_MAX 10
  85. #define FINSH_USING_OPTION_COMPLETION
  86. /* DFS: device virtual file system */
  87. #define RT_USING_DFS
  88. #define DFS_USING_POSIX
  89. #define DFS_USING_WORKDIR
  90. #define DFS_FD_MAX 32
  91. #define RT_USING_DFS_V2
  92. #define RT_USING_DFS_ELMFAT
  93. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  94. #define RT_DFS_ELM_CODE_PAGE 437
  95. #define RT_DFS_ELM_WORD_ACCESS
  96. #define RT_DFS_ELM_USE_LFN_3
  97. #define RT_DFS_ELM_USE_LFN 3
  98. #define RT_DFS_ELM_LFN_UNICODE_0
  99. #define RT_DFS_ELM_LFN_UNICODE 0
  100. #define RT_DFS_ELM_MAX_LFN 255
  101. #define RT_DFS_ELM_DRIVES 2
  102. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  103. #define RT_DFS_ELM_REENTRANT
  104. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  105. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  106. #define RT_USING_DFS_DEVFS
  107. #define RT_USING_DFS_ROMFS
  108. #define RT_USING_DFS_PTYFS
  109. #define RT_USING_DFS_TMPFS
  110. #define RT_USING_PAGECACHE
  111. /* page cache config */
  112. #define RT_PAGECACHE_COUNT 4096
  113. #define RT_PAGECACHE_ASPACE_COUNT 1024
  114. #define RT_PAGECACHE_PRELOAD 4
  115. #define RT_PAGECACHE_HASH_NR 1024
  116. #define RT_PAGECACHE_GC_WORK_LEVEL 90
  117. #define RT_PAGECACHE_GC_STOP_LEVEL 70
  118. /* end of page cache config */
  119. /* end of DFS: device virtual file system */
  120. /* Device Drivers */
  121. #define RT_USING_DEVICE_IPC
  122. #define RT_UNAMED_PIPE_NUMBER 64
  123. #define RT_USING_SYSTEM_WORKQUEUE
  124. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 4096
  125. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  126. #define RT_USING_SERIAL
  127. #define RT_USING_SERIAL_V1
  128. #define RT_SERIAL_RB_BUFSZ 64
  129. #define RT_USING_CPUTIME
  130. #define CPUTIME_TIMER_FREQ 0
  131. #define RT_USING_I2C
  132. #define RT_USING_NULL
  133. #define RT_USING_ZERO
  134. #define RT_USING_RANDOM
  135. #define RT_USING_PWM
  136. #define RT_USING_RTC
  137. #define RT_USING_SDIO
  138. #define RT_SDIO_STACK_SIZE 4096
  139. #define RT_SDIO_THREAD_PRIORITY 15
  140. #define RT_MMCSD_STACK_SIZE 4096
  141. #define RT_MMCSD_THREAD_PREORITY 22
  142. #define RT_MMCSD_MAX_PARTITION 16
  143. #define RT_USING_SPI
  144. #define RT_USING_WDT
  145. #define RT_USING_TOUCH
  146. #define RT_TOUCH_PIN_IRQ
  147. #define RT_USING_LCD
  148. #define RT_USING_DEV_BUS
  149. #define RT_USING_WIFI
  150. #define RT_WLAN_DEVICE_STA_NAME "wlan0"
  151. #define RT_WLAN_DEVICE_AP_NAME "wlan1"
  152. #define RT_WLAN_SSID_MAX_LENGTH 32
  153. #define RT_WLAN_PASSWORD_MAX_LENGTH 32
  154. #define RT_WLAN_DEV_EVENT_NUM 2
  155. #define RT_WLAN_MANAGE_ENABLE
  156. #define RT_WLAN_SCAN_WAIT_MS 10000
  157. #define RT_WLAN_CONNECT_WAIT_MS 10000
  158. #define RT_WLAN_SCAN_SORT
  159. #define RT_WLAN_MSH_CMD_ENABLE
  160. #define RT_WLAN_JOIN_SCAN_BY_MGNT
  161. #define RT_WLAN_AUTO_CONNECT_ENABLE
  162. #define AUTO_CONNECTION_PERIOD_MS 2000
  163. #define RT_WLAN_CFG_ENABLE
  164. #define RT_WLAN_CFG_INFO_MAX 3
  165. #define RT_WLAN_PROT_ENABLE
  166. #define RT_WLAN_PROT_NAME_LEN 8
  167. #define RT_WLAN_PROT_MAX 2
  168. #define RT_WLAN_DEFAULT_PROT "lwip"
  169. #define RT_WLAN_PROT_LWIP_ENABLE
  170. #define RT_WLAN_PROT_LWIP_NAME "lwip"
  171. #define RT_WLAN_WORK_THREAD_ENABLE
  172. #define RT_WLAN_WORKQUEUE_THREAD_NAME "wlan"
  173. #define RT_WLAN_WORKQUEUE_THREAD_SIZE 2048
  174. #define RT_WLAN_WORKQUEUE_THREAD_PRIO 15
  175. #define RT_USING_PIN
  176. #define RT_USING_KTIME
  177. /* Using USB */
  178. #define RT_USING_USB
  179. #define RT_USING_USB_DEVICE
  180. #define RT_USBD_THREAD_STACK_SZ 4096
  181. #define USB_VENDOR_ID 0x0FFE
  182. #define USB_PRODUCT_ID 0x0001
  183. #define _RT_USB_DEVICE_WINUSB
  184. #define RT_USB_DEVICE_WINUSB
  185. #define RT_WINUSB_GUID "{6860DC3C-C05F-4807-8807-1CA861CC1D66}"
  186. /* end of Using USB */
  187. /* end of Device Drivers */
  188. /* C/C++ and POSIX layer */
  189. /* ISO-ANSI C layer */
  190. /* Timezone and Daylight Saving Time */
  191. #define RT_LIBC_USING_LIGHT_TZ_DST
  192. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  193. #define RT_LIBC_TZ_DEFAULT_MIN 0
  194. #define RT_LIBC_TZ_DEFAULT_SEC 0
  195. /* end of Timezone and Daylight Saving Time */
  196. /* end of ISO-ANSI C layer */
  197. /* POSIX (Portable Operating System Interface) layer */
  198. #define RT_USING_POSIX_FS
  199. #define RT_USING_POSIX_DEVIO
  200. #define RT_USING_POSIX_STDIO
  201. #define RT_USING_POSIX_POLL
  202. #define RT_USING_POSIX_TERMIOS
  203. #define RT_USING_POSIX_DELAY
  204. #define RT_USING_POSIX_CLOCK
  205. #define RT_USING_POSIX_TIMER
  206. /* Interprocess Communication (IPC) */
  207. /* Socket is in the 'Network' category */
  208. /* end of Interprocess Communication (IPC) */
  209. /* end of POSIX (Portable Operating System Interface) layer */
  210. /* end of C/C++ and POSIX layer */
  211. /* Network */
  212. #define RT_USING_SAL
  213. #define SAL_INTERNET_CHECK
  214. /* Docking with protocol stacks */
  215. #define SAL_USING_LWIP
  216. /* end of Docking with protocol stacks */
  217. #define SAL_USING_POSIX
  218. #define RT_USING_NETDEV
  219. #define NETDEV_USING_IFCONFIG
  220. #define NETDEV_USING_PING
  221. #define NETDEV_USING_NETSTAT
  222. #define NETDEV_USING_AUTO_DEFAULT
  223. #define NETDEV_USING_IPV6
  224. #define NETDEV_IPV4 1
  225. #define NETDEV_IPV6 1
  226. #define NETDEV_IPV6_SCOPES
  227. #define RT_USING_LWIP
  228. #define RT_USING_LWIP212
  229. #define RT_USING_LWIP_VER_NUM 0x20102
  230. #define RT_USING_LWIP_IPV6
  231. #define RT_LWIP_MEM_ALIGNMENT 4
  232. #define RT_LWIP_IGMP
  233. #define RT_LWIP_ICMP
  234. #define RT_LWIP_DNS
  235. #define RT_LWIP_DHCP
  236. #define IP_SOF_BROADCAST 1
  237. #define IP_SOF_BROADCAST_RECV 1
  238. /* Static IPv4 Address */
  239. #define RT_LWIP_IPADDR "192.168.1.30"
  240. #define RT_LWIP_GWADDR "192.168.1.1"
  241. #define RT_LWIP_MSKADDR "255.255.255.0"
  242. /* end of Static IPv4 Address */
  243. #define RT_LWIP_UDP
  244. #define RT_LWIP_TCP
  245. #define RT_LWIP_RAW
  246. #define RT_MEMP_NUM_NETCONN 8
  247. #define RT_LWIP_PBUF_NUM 16
  248. #define RT_LWIP_RAW_PCB_NUM 4
  249. #define RT_LWIP_UDP_PCB_NUM 4
  250. #define RT_LWIP_TCP_PCB_NUM 4
  251. #define RT_LWIP_TCP_SEG_NUM 40
  252. #define RT_LWIP_TCP_SND_BUF 8196
  253. #define RT_LWIP_TCP_WND 8196
  254. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  255. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  256. #define RT_LWIP_TCPTHREAD_STACKSIZE 8192
  257. #define LWIP_NO_TX_THREAD
  258. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  259. #define RT_LWIP_ETHTHREAD_STACKSIZE 8192
  260. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  261. #define LWIP_NETIF_STATUS_CALLBACK 1
  262. #define LWIP_NETIF_LINK_CALLBACK 1
  263. #define RT_LWIP_NETIF_NAMESIZE 6
  264. #define SO_REUSE 1
  265. #define LWIP_SO_RCVTIMEO 1
  266. #define LWIP_SO_SNDTIMEO 1
  267. #define LWIP_SO_RCVBUF 1
  268. #define LWIP_SO_LINGER 0
  269. #define RT_LWIP_NETIF_LOOPBACK
  270. #define LWIP_NETIF_LOOPBACK 1
  271. #define RT_LWIP_USING_PING
  272. /* end of Network */
  273. /* Memory protection */
  274. /* end of Memory protection */
  275. /* Utilities */
  276. #define RT_USING_ULOG
  277. #define ULOG_OUTPUT_LVL_D
  278. #define ULOG_OUTPUT_LVL 7
  279. #define ULOG_ASSERT_ENABLE
  280. #define ULOG_LINE_BUF_SIZE 128
  281. /* log format */
  282. #define ULOG_USING_COLOR
  283. #define ULOG_OUTPUT_TIME
  284. #define ULOG_OUTPUT_LEVEL
  285. #define ULOG_OUTPUT_TAG
  286. /* end of log format */
  287. #define ULOG_BACKEND_USING_CONSOLE
  288. #define RT_USING_RESOURCE_ID
  289. #define RT_USING_ADT
  290. #define RT_USING_ADT_AVL
  291. #define RT_USING_ADT_BITMAP
  292. #define RT_USING_ADT_HASHMAP
  293. #define RT_USING_ADT_REF
  294. /* end of Utilities */
  295. #define RT_USING_LWP
  296. #define RT_LWP_MAX_NR 30
  297. #define LWP_TASK_STACK_SIZE 16384
  298. #define RT_CH_MSG_MAX_NR 1024
  299. #define LWP_CONSOLE_INPUT_BUFFER_SIZE 1024
  300. #define LWP_TID_MAX_NR 64
  301. #define LWP_ENABLE_ASID
  302. #define RT_LWP_SHM_MAX_NR 64
  303. #define RT_USING_LDSO
  304. #define LWP_USING_TERMINAL
  305. #define LWP_PTY_MAX_PARIS_LIMIT 64
  306. /* Memory management */
  307. /* end of Memory management */
  308. /* end of RT-Thread Components */
  309. /* RT-Thread Utestcases */
  310. /* end of RT-Thread Utestcases */
  311. /* RT-Thread online packages */
  312. /* IoT - internet of things */
  313. /* Wi-Fi */
  314. /* Marvell WiFi */
  315. /* end of Marvell WiFi */
  316. /* Wiced WiFi */
  317. /* end of Wiced WiFi */
  318. #define PKG_USING_RW007
  319. #define PKG_USING_RW007_LATEST_VERSION
  320. #define RW007_NOT_USE_EXAMPLE_DRIVERS
  321. #define RW007_SPI_MAX_HZ 30000000
  322. /* CYW43012 WiFi */
  323. /* end of CYW43012 WiFi */
  324. /* BL808 WiFi */
  325. /* end of BL808 WiFi */
  326. /* CYW43439 WiFi */
  327. /* end of CYW43439 WiFi */
  328. /* end of Wi-Fi */
  329. /* IoT Cloud */
  330. /* end of IoT Cloud */
  331. /* end of IoT - internet of things */
  332. /* security packages */
  333. /* end of security packages */
  334. /* language packages */
  335. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  336. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  337. /* XML: Extensible Markup Language */
  338. /* end of XML: Extensible Markup Language */
  339. /* end of language packages */
  340. /* multimedia packages */
  341. /* LVGL: powerful and easy-to-use embedded GUI library */
  342. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  343. /* u8g2: a monochrome graphic library */
  344. /* end of u8g2: a monochrome graphic library */
  345. /* end of multimedia packages */
  346. /* tools packages */
  347. /* end of tools packages */
  348. /* system packages */
  349. /* enhanced kernel services */
  350. /* end of enhanced kernel services */
  351. /* acceleration: Assembly language or algorithmic acceleration packages */
  352. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  353. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  354. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  355. /* Micrium: Micrium software products porting for RT-Thread */
  356. /* end of Micrium: Micrium software products porting for RT-Thread */
  357. /* end of system packages */
  358. /* peripheral libraries and drivers */
  359. /* sensors drivers */
  360. /* end of sensors drivers */
  361. /* touch drivers */
  362. /* end of touch drivers */
  363. /* Kendryte SDK */
  364. /* end of Kendryte SDK */
  365. /* end of peripheral libraries and drivers */
  366. /* AI packages */
  367. /* end of AI packages */
  368. /* Signal Processing and Control Algorithm Packages */
  369. /* end of Signal Processing and Control Algorithm Packages */
  370. /* miscellaneous packages */
  371. /* project laboratory */
  372. /* end of project laboratory */
  373. /* samples: kernel and components samples */
  374. /* end of samples: kernel and components samples */
  375. /* entertainment: terminal games and other interesting software packages */
  376. /* end of entertainment: terminal games and other interesting software packages */
  377. /* end of miscellaneous packages */
  378. /* Arduino libraries */
  379. /* Projects and Demos */
  380. /* end of Projects and Demos */
  381. /* Sensors */
  382. /* end of Sensors */
  383. /* Display */
  384. /* end of Display */
  385. /* Timing */
  386. /* end of Timing */
  387. /* Data Processing */
  388. /* end of Data Processing */
  389. /* Data Storage */
  390. /* Communication */
  391. /* end of Communication */
  392. /* Device Control */
  393. /* end of Device Control */
  394. /* Other */
  395. /* end of Other */
  396. /* Signal IO */
  397. /* end of Signal IO */
  398. /* Uncategorized */
  399. /* end of Arduino libraries */
  400. /* end of RT-Thread online packages */
  401. /* Privated Packages of RealThread */
  402. /* Network Utilities */
  403. /* end of Network Utilities */
  404. /* RT-Thread Smart */
  405. /* end of RT-Thread Smart */
  406. /* end of Privated Packages of RealThread */
  407. #define SOC_IMX6ULL
  408. #define CPU_MCIMX6Y2CVM05
  409. #define FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL 1
  410. #define FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL 1
  411. /* Platform Driver Configuration */
  412. /* Select UART Driver */
  413. #define BSP_USING_UART1
  414. /* end of Select UART Driver */
  415. /* Select SPI Driver */
  416. #define BSP_USING_SPI
  417. #define BSP_USING_SPI1
  418. #define BSP_USING_SPI2
  419. #define BSP_USING_SPI3
  420. #define BSP_USING_SPI4
  421. /* end of Select SPI Driver */
  422. /* Select I2C Driver */
  423. #define BSP_USING_I2C
  424. #define BSP_USING_I2C3
  425. #define I2C3_BAUD_RATE 400000
  426. #define BSP_USING_I2C4
  427. #define I2C4_BAUD_RATE 100000
  428. /* end of Select I2C Driver */
  429. /* Select LCD Driver */
  430. #define BSP_USING_LCD
  431. #define BSP_LCD_WIDTH 480
  432. #define BSP_LCD_HEIGHT 272
  433. #define BSP_LCD_VSW 2
  434. #define BSP_LCD_VBP 23
  435. #define BSP_LCD_VFP 22
  436. #define BSP_LCD_HSW 2
  437. #define BSP_LCD_HBP 46
  438. #define BSP_LCD_HFP 210
  439. #define BSP_LCD_PLL_DIV 8
  440. /* end of Select LCD Driver */
  441. /* Select SDHC Driver */
  442. #define RT_USING_SDIO1
  443. #define RT_USING_SDIO2
  444. /* end of Select SDHC Driver */
  445. /* Select RTC Driver */
  446. #define BSP_USING_ONCHIP_RTC
  447. /* end of Select RTC Driver */
  448. /* Select PWM Driver */
  449. #define BSP_USING_PWM1
  450. /* end of Select PWM Driver */
  451. /* Select ADC Driver */
  452. /* end of Select ADC Driver */
  453. /* Select WDT Driver */
  454. #define RT_USING_WDT1
  455. #define RT_USING_WDT2
  456. /* end of Select WDT Driver */
  457. /* Select ENET Driver */
  458. #define RT_USING_ENET1
  459. #define RT_USING_ENET2
  460. /* end of Select ENET Driver */
  461. /* Select Wifi Driver */
  462. #define RT_USING_WIFI_RW007
  463. #define RW007_DAFAULT_SSID "rt-thread"
  464. #define RW007_DAFAULT_PASSWARD "12345678"
  465. /* end of Select Wifi Driver */
  466. /* Select USB Driver */
  467. #define BSP_USING_USB_DEVICE
  468. /* end of Select USB Driver */
  469. /* end of Platform Driver Configuration */
  470. #endif