cybsp_hw_config.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /***********************************************************************************************//**
  2. * \file cybsp_hw_config.h
  3. *
  4. * \brief
  5. * Basic API for handling defaults for hardware so code examples behave the same across different
  6. * devices.
  7. *
  8. ***************************************************************************************************
  9. * \copyright
  10. * Copyright 2018-2022 Cypress Semiconductor Corporation (an Infineon company) or
  11. * an affiliate of Cypress Semiconductor Corporation
  12. *
  13. * SPDX-License-Identifier: Apache-2.0
  14. *
  15. * Licensed under the Apache License, Version 2.0 (the "License");
  16. * you may not use this file except in compliance with the License.
  17. * You may obtain a copy of the License at
  18. *
  19. * http://www.apache.org/licenses/LICENSE-2.0
  20. *
  21. * Unless required by applicable law or agreed to in writing, software
  22. * distributed under the License is distributed on an "AS IS" BASIS,
  23. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  24. * See the License for the specific language governing permissions and
  25. * limitations under the License.
  26. **************************************************************************************************/
  27. #pragma once
  28. #include "cy_result.h"
  29. #include "cybsp_types.h"
  30. #include "cycfg_pins.h"
  31. #if defined(__cplusplus)
  32. extern "C" {
  33. #endif
  34. #ifndef CYBSP_USER_BTN_DRIVE
  35. #define CYBSP_USER_BTN_DRIVE (CYHAL_GPIO_DRIVE_PULLUP)
  36. #endif
  37. #ifndef CYBSP_DEBUG_UART_CTS
  38. #define CYBSP_DEBUG_UART_CTS (NC)
  39. #endif
  40. #ifndef CYBSP_DEBUG_UART_RTS
  41. #define CYBSP_DEBUG_UART_RTS (NC)
  42. #endif
  43. #if defined(__cplusplus)
  44. }
  45. #endif