Building file: ../example/src/cdc_main.c Invoking: MCU C Compiler arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_LPCOPEN -DCORE_M3 -I"D:\Mis documentos\DropBox\ARM LPC\GARBE\LPC1347_LPCOpen\lpc_chip_13xx\inc" -I"D:\Mis documentos\DropBox\ARM LPC\GARBE\LPC1347_LPCOpen\lpc_board_nxp_lpcxpresso_1347\inc" -I"D:\Mis documentos\DropBox\ARM LPC\GARBE\LPC1347_LPCOpen\usbd_rom_cdc\example\inc" -I"D:\Mis documentos\DropBox\ARM LPC\GARBE\LPC1347_LPCOpen\lpc_chip_13xx\usbd_rom\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"example/src/cdc_main.d" -MT"example/src/cdc_main.d" -o "example/src/cdc_main.o" "../example/src/cdc_main.c" ../example/src/cdc_main.c: In function 'main': ../example/src/cdc_main.c:181:4: warning: pointer targets in passing argument 1 of 'vcom_write' differ in signedness [-Wpointer-sign] D:\Mis documentos\DropBox\ARM LPC\GARBE\LPC1347_LPCOpen\usbd_rom_cdc\example\inc/cdc_vcom.h:117:10: note: expected 'uint8_t *' but argument is of type 'char *' Finished building: ../example/src/cdc_main.c |
vcom_write("Hello World!!\r\n", 15); |
while (1) { /* Check if host has connected and opened the VCOM port */ if ((vcom_connected() != 0) && (prompt == 0)) { vcom_write((unsigned char *)"Presione 1 para encender LED, 2 para apagarlo\r\n", 47); prompt = 1; } /* If VCOM port is opened echo whatever we receive back to host. */ if (prompt) { rdCnt = vcom_bread(&g_rxBuff[0], 256); if (rdCnt) { vcom_write(&g_rxBuff[0], rdCnt); if(g_rxBuff[0] == '1'){ vcom_write((unsigned char *)" -> Encendiendo LED\r\n", 21); Board_LED_Set(0, 1); }else if(g_rxBuff[0] == '2'){ vcom_write((unsigned char *)" -> Apagando LED\r\n", 18); Board_LED_Set(0, 0); }else{ vcom_write((unsigned char *)" -> Comando no reconocido\r\n", 27); } } } /* Sleep until next IRQ happens */ __WFI(); } } |