43 #include "clock_config.h"    46 #include "Driver_USART.h"    49 #include "issdk_hal.h"    50 #include "gpio_driver.h"    53 #include "auto_detection_service.h"    59 #define APPLICATION_NAME "HOST_DEMO"    61 #define APPLICATION_VERSION "1.0"    74     uint8_t tag, uint8_t *hostCommand, uint8_t *hostResponse, 
size_t *hostMsgSize, 
size_t respBufferSize)
    89         if (respBufferSize >= boardNameLen + shieldNameLen + appNameLen + 3)
    98         hostResponse[*hostMsgSize] = appNameLen;
   101         memcpy(hostResponse + *hostMsgSize, 
embAppName, appNameLen);
   102         *hostMsgSize += appNameLen;
   104         hostResponse[*hostMsgSize] = boardNameLen;
   107         memcpy(hostResponse + *hostMsgSize, 
boardString, boardNameLen);
   108         *hostMsgSize += boardNameLen;
   110         hostResponse[*hostMsgSize] = shieldNameLen;
   113         memcpy(hostResponse + *hostMsgSize, 
shieldString, shieldNameLen);
   114         *hostMsgSize += shieldNameLen;
   128     uint8_t bannerLength, bannerString[256];
   147     bannerLength = sprintf((
char *)bannerString,
   148                            "\r\n Application Name [%s] \r\n Board Name       [%s] \r\n Shield Name      [%s] \r\n",
   155     if (ARM_DRIVER_OK != status)
   161     status = pUartDriver->PowerControl(ARM_POWER_FULL);
   162     if (ARM_DRIVER_OK != status)
   169     if (ARM_DRIVER_OK != status)
 #define HOST_S_SIGNAL_EVENT
 
void Host_IO_Receive(host_cmd_proc_fn_t process_host_command, uint8_t encoding)
 
void(* pin_init)(pinID_t aPinId, gpio_direction_t dir, void *apPinConfig, gpio_isr_handler_t aIsrHandler, void *apUserData)
 
#define BOARD_BootClockRUN
 
char embAppName[ADS_MAX_STRING_LENGTH]
 
void(* toggle_pin)(pinID_t aPinId)
 
char boardString[ADS_MAX_STRING_LENGTH]
 
#define ADS_MAX_STRING_LENGTH
 
#define HOST_PRO_INT_DEV_TAG
 
GENERIC_DRIVER_GPIO * pGpioDriver
 
gpioHandleKSDK_t GREEN_LED
 
bool process_host_command(uint8_t tag, uint8_t *hostCommand, uint8_t *hostResponse, size_t *hostMsgSize, size_t respBufferSize)
 
void Host_IO_Send(uint8_t *pMsg, size_t size, uint8_t encoding)
 
char shieldString[ADS_MAX_STRING_LENGTH]
 
void BOARD_SystickEnable(void)
Function to enable systicks framework. 
 
GENERIC_DRIVER_GPIO Driver_GPIO_KSDK
 
#define BOARD_DEBUG_UART_BAUDRATE
 
int main(void)
Main function. 
 
Access structure of the GPIO Driver. 
 
#define APPLICATION_VERSION
Version to distinguish between instances the same application based on target Shield and updates...
 
void BOARD_RunADS(const char *appName, char *boardString, char *shieldString, size_t bufferLength)
The function to register Application Name and initialte ADS. 
 
uint8_t Host_IO_Init(ARM_DRIVER_USART *pDrv, void *pBus, void *pDevInfo, void *spiSlaveParams, uint16_t slaveAddress)
 
The host_io_uart.h file contains the Host Protocol interface definitions and configuration. 
 
status_t SMC_SetPowerModeWait(void *arg)
Configures the system to WAIT power mode. API name used from Kinetis family to maintain compatibility...
 
#define APPLICATION_NAME
Unique Name for this application which should match the target GUI pkg name.