1 /* 2 * Copyright 2020-2023, Cypress Semiconductor Corporation or 3 * an affiliate of Cypress Semiconductor Corporation. All rights reserved. 4 * 5 * This software, including source code, documentation and related 6 * materials ("Software") is owned by Cypress Semiconductor Corporation 7 * or one of its affiliates ("Cypress") and is protected by and subject to 8 * worldwide patent protection (United States and foreign), 9 * United States copyright laws and international treaty provisions. 10 * Therefore, you may use this Software only as provided in the license 11 * agreement accompanying the software package from which you 12 * obtained this Software ("EULA"). 13 * If no EULA applies, Cypress hereby grants you a personal, non-exclusive, 14 * non-transferable license to copy, modify, and compile the Software 15 * source code solely for use in connection with Cypress's 16 * integrated circuit products. Any reproduction, modification, translation, 17 * compilation, or representation of this Software except as specified 18 * above is prohibited without the express written permission of Cypress. 19 * 20 * Disclaimer: THIS SOFTWARE IS PROVIDED AS-IS, WITH NO WARRANTY OF ANY KIND, 21 * EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, NONINFRINGEMENT, IMPLIED 22 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress 23 * reserves the right to make changes to the Software without notice. Cypress 24 * does not assume any liability arising out of the application or use of the 25 * Software or any product or circuit described in the Software. Cypress does 26 * not authorize its products for use in any products where a malfunction or 27 * failure of the Cypress product may reasonably be expected to result in 28 * significant property damage, injury or death ("High Risk Product"). By 29 * including Cypress's product in a High Risk Product, the manufacturer 30 * of such system or application assumes all risk of such use and in doing 31 * so agrees to indemnify Cypress against all liability. 32 */ 33 // Trace definitions for script application. 34 // 35 #ifdef __cplusplus 36 extern "C" { 37 #endif 38 extern void BTU_trace_debug(const char* p_fmt, ...); 39 extern void BTU_trace_error(const char* p_fmt, ...); 40 41 #ifdef __cplusplus 42 } 43 #endif 44 45 /** 46 * @ingroup gentypes 47 * 48 * @{ 49 */ 50 /** Debug trace macro */ 51 #define WICED_BT_TRACE BTU_trace_debug 52 53 /** Debug trace array macro */ 54 #define WICED_BT_TRACE_ARRAY(ptr,len,string) WICED_BT_TRACE("%s %A",string,ptr,len); 55 56 /** Error trace array macro */ 57 #define WICED_BT_TRACE_CRIT BTU_trace_error 58