A more specific question.
In the KSDK V1.1.0, it has a usb_class.h file. Found in "usb_core\devices\sources\drivers\include". The compile error above "expected ")" before....." is yelling at the "_CODE_PTR" declaration. This is defined in types.h as "*" in the usb stack code as well. But.... usb_class.h does not include any file at all. How can this code now what "_CODE_PTR" is if it does not include any other file? The example CDC code does not have this defined or undefined in the project settings or anything. Why is it yelling at me?
usb_class.h code:
/**HEADER********************************************************************
*
* Copyright (c) 2008, 2013 - 2014 Freescale Semiconductor;
* All Rights Reserved
*
* Copyright (c) 1989-2008 ARC International;
* All Rights Reserved
*
***************************************************************************
*
* THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESSED 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 FREESCALE OR ITS 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.
*
**************************************************************************
*
* $FileName: usb_class.h$
* $Version :
* $Date :
*
* Comments:
*
* @brief The file contains USB stack class layer api header function.
*
*****************************************************************************/
#ifndef _USB_CLASS_H
#define _USB_CLASS_H 1
/******************************************************************************
* Includes
*****************************************************************************/
/******************************************************************************
* Global Variables
*****************************************************************************/
/******************************************************************************
* Macro's
*****************************************************************************/
/*#define DELAYED_PROCESSING 1 This define is used to delay the control
processing and not have it executed as part
of the interrupt routine */
//#define UNINITIALISED_VAL (0xffffffff)
/* Events to the Application */
/*
#define USB_APP_BUS_RESET (0)
#define USB_APP_CONFIG_CHANGED (1)
#define USB_APP_ENUM_COMPLETE (2)
#define USB_APP_SEND_COMPLETE (3)
#define USB_APP_DATA_RECEIVED (4)
#define USB_APP_ERROR (5)
#define USB_APP_GET_DATA_BUFF (6)
#define USB_APP_EP_STALLED (7)
#define USB_APP_EP_UNSTALLED (8)
#define USB_APP_GET_TRANSFER_SIZE (9)
*/
/******************************************************************************
* Types
*****************************************************************************/
typedef uint32_t class_handle_t;
/*callback function pointer structure for application to provide class params*/
typedef uint8_t (_CODE_PTR_ usb_class_specific_handler_func)(
uint8_t,
uint16_t,
uint8_t **,
uint32_t*,
void* arg);
typedef struct usb_class_specific_handler_callback_struct
{
usb_class_specific_handler_func callback;
void* arg;
}usb_class_specific_callback_struct_t;
#endif
/* EOF */