1 #ifndef CSR_LOG_CONFIGURE_H__ 2 #define CSR_LOG_CONFIGURE_H__ 3 /***************************************************************************** 4 5 (c) Cambridge Silicon Radio Limited 2010 6 All rights reserved and confidential information of CSR 7 8 Refer to LICENSE.txt included with this source for details 9 on the license terms. 10 11 *****************************************************************************/ 12 13 #include "csr_log.h" 14 15 /*--------------------------------------------*/ 16 /* Filtering on log text warning levels */ 17 /*--------------------------------------------*/ 18 typedef u32 CsrLogLevelText; 19 #define CSR_LOG_LEVEL_TEXT_OFF ((CsrLogLevelText) 0x0000) 20 21 #define CSR_LOG_LEVEL_TEXT_CRITICAL ((CsrLogLevelText) 0x0001) 22 #define CSR_LOG_LEVEL_TEXT_ERROR ((CsrLogLevelText) 0x0002) 23 #define CSR_LOG_LEVEL_TEXT_WARNING ((CsrLogLevelText) 0x0004) 24 #define CSR_LOG_LEVEL_TEXT_INFO ((CsrLogLevelText) 0x0008) 25 #define CSR_LOG_LEVEL_TEXT_DEBUG ((CsrLogLevelText) 0x0010) 26 27 #define CSR_LOG_LEVEL_TEXT_ALL ((CsrLogLevelText) 0xFFFF) 28 29 /* The log text interface is used by both scheduler tasks and components outside the scheduler context. 30 * Therefore a CsrLogTextTaskId is introduced. It is effectively considered as two u16's. The lower 31 * 16 bits corresponds one2one with the scheduler queueId's (CsrSchedQid) and as such these bits can not be used 32 * by components outside scheduler tasks. The upper 16 bits are allocated for use of components outside the 33 * scheduler like drivers etc. Components in this range is defined independently by each technology. To avoid 34 * clashes the technologies are only allowed to assign values within the same restrictive range as allies to 35 * primitive identifiers. eg. for the framework components outside the scheduler is only allowed to assign 36 * taskId's in the range 0x0600xxxx to 0x06FFxxxx. And so on for other technologies. */ 37 typedef u32 CsrLogTextTaskId; 38 39 #endif 40