1 #ifndef CSR_FRAMEWORK_EXT_H__
2 #define CSR_FRAMEWORK_EXT_H__
3 /*****************************************************************************
5 (c) Cambridge Silicon Radio Limited 2010
6 All rights reserved and confidential information of CSR
8 Refer to LICENSE.txt included with this source for details
11 *****************************************************************************/
13 #include "csr_result.h"
14 #include "csr_framework_ext_types.h"
17 #define CSR_FE_RESULT_NO_MORE_EVENTS ((CsrResult) 0x0001)
18 #define CSR_FE_RESULT_INVALID_POINTER ((CsrResult) 0x0002)
19 #define CSR_FE_RESULT_INVALID_HANDLE ((CsrResult) 0x0003)
20 #define CSR_FE_RESULT_NO_MORE_MUTEXES ((CsrResult) 0x0004)
21 #define CSR_FE_RESULT_TIMEOUT ((CsrResult) 0x0005)
22 #define CSR_FE_RESULT_NO_MORE_THREADS ((CsrResult) 0x0006)
24 /* Thread priorities */
25 #define CSR_THREAD_PRIORITY_HIGHEST ((u16) 0)
26 #define CSR_THREAD_PRIORITY_HIGH ((u16) 1)
27 #define CSR_THREAD_PRIORITY_NORMAL ((u16) 2)
28 #define CSR_THREAD_PRIORITY_LOW ((u16) 3)
29 #define CSR_THREAD_PRIORITY_LOWEST ((u16) 4)
31 #define CSR_EVENT_WAIT_INFINITE ((u16) 0xFFFF)
33 void CsrThreadSleep(u16 sleepTimeInMs);