1 /******************************************************************************* 2 * \file cybt_platform_internal.h 3 * 4 * \brief 5 * Defines variables specific to 20829 platform. 6 * 7 ********************************************************************************/ 8 9 #ifndef CYBT_PLATFORM_INTERNAL_H 10 #define CYBT_PLATFORM_INTERNAL_H 11 12 #include "cyabs_rtos.h" 13 14 #ifdef FPGA_TEST_PLATFORM 15 #define PATCH_DOWNLOAD_FN NULL 16 #else 17 #define PATCH_DOWNLOAD_FN bt_post_reset_cback 18 #endif /* FPGA_TEST_PLATFORM */ 19 20 #define BLESS_CONTROLLER WICED_FALSE 21 22 #if !defined (DISABLE_LPTIMER) 23 #define DISABLE_LPTIMER 24 #endif 25 26 #define LOCK (true) 27 #define UNLOCK (false) 28 #define CONTROLLER_SLEEP(enable) (Cy_BTSS_PowerDep(enable)) 29 30 #define ENABLE_SLEEP_MODE() (bt_enable_sleep_mode()) 31 32 #if(RELBUF_DELAY_IN_US > 0) 33 #define RELBUF_DELAY() Cy_SysLib_DelayUs(RELBUF_DELAY_IN_US) 34 #else 35 #define RELBUF_DELAY() 36 #endif 37 38 39 40 #endif // CYBT_PLATFORM_INTERNAL_H 41 42