Config.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* config.h
  2. *
  3. * Raydium TouchScreen driver.
  4. *
  5. * Copyright (c) 2021 Raydium tech Ltd.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. */
  18. #ifndef __CONFIG_H
  19. #define __CONFIG_H
  20. /*****************************************************************************
  21. ** GLOBAL MARCO DEFINITION
  22. ******************************************************************************/
  23. #define MINIMUM(x, y) (((x) < (y)) ? (x) : (y)) // Compares two parameters, return minimum.
  24. #define MAXIMUM(x, y) (((x) > (y)) ? (x) : (y)) // Compares two parameters, return maximum.
  25. #define ABS(x) ((x) >= 0 ? (x) : -(x)) // return absolute value
  26. /*****************************************************************************
  27. ** GLOBAL FUNCTIONAL DEFINITION
  28. ******************************************************************************/
  29. //Bootloader
  30. #define BOOTLOADER 1 //1: with bootloader, 0: without bootloader
  31. #define SELFTEST 1 //1: For System Selftest, 0:For Dongle Open/Short Tool
  32. #if SELFTEST
  33. #define SELFTEST_3X 1
  34. #define SELFTEST_2X 0
  35. #else
  36. #define SELFTEST_3X 0
  37. #define SELFTEST_2X 0
  38. #endif
  39. #define ENABLE_TEST_TIME_MEASURMENT 1
  40. #define ENABLE_TEST_TIME_MEASURMENT_CC 0
  41. #define ENABLE_WDT 0
  42. #define ENABLE_TEST_RSU_DATA_SHOW 0
  43. #define ENABLE_AUO_VERIFY_LOG 0
  44. #define ENABLE_CONTROL_OPENSHORT_WDT 0
  45. #define ENABLE_TEST_GPIO_MEASURMENT 0
  46. #endif /* end __CONFIG_H */
  47. /*****************************************************************************
  48. ** End Of File
  49. ******************************************************************************/