![]() |
![]() |
This is the sample OS Adaptation layer which is used by the TF Producer low level driver. More...
#include <ti/instrumentation/traceframework/producer.h>
Defines | |
#define | TF_PRODUCER_osalGetProcId Osal_producer_GetProcId |
The macro is used by the trace framework Library to get the process ID. | |
#define | TF_PRODUCER_osalMemAlloc Osal_producer_MemAlloc |
The macro is used by the producer Library to allocate the memory. | |
#define | TF_PRODUCER_osalMemFree Osal_producer_MemFree |
The macro is used by the producer Library to free the memory. | |
#define | TF_PRODUCER_osalBeginMemAccess Osal_producer_BeginMemAccess |
The macro is used by the producer Library to indicate that packet access has been accessed & updated . If the packet is in cached memory the implementation should writeback the contents of the packet. | |
#define | TF_PRODUCER_osalEndMemAccess Osal_producer_EndMemAccess |
This macro is used to alert the application that the PRODUCER has completed access to table memory. This call will always be made following a call to Osal_PRODUCER BeginMemAccess and have the same parameters. | |
#define | TF_PRODUCER_osalException Osal_producer_Exception |
This macro is used to alert the application that the PRODUCER has encountered an exception. |
This is the sample OS Adaptation layer which is used by the TF Producer low level driver.
The OSAL layer can be ported in either of the following manners to a native OS:
Approach 1:
Use Prebuilt Libraries
Approach 2:
Rebuilt Library
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of Texas Instruments Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.