Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # gcc -g -o CyUSBSerialTestUtility Test_Utility.c -lcyusbserial -w
- gcc -g -o CyUSBSerialCommandUtility Command_Utility.c -lcyusbserial
- Command_Utility.c: In function ‘deviceHotPlug’:
- Command_Utility.c:102:35: warning: passing argument 1 of ‘CyGetListofDevices’ from incompatible pointer type [-Wincompatible-pointer-types]
- 102 | rStatus = CyGetListofDevices (&numDevices);
- | ^~~~~~~~~~~
- | |
- | int *
- In file included from Command_Utility.c:33:
- ../../common/header/CyUSBSerial.h:706:12: note: expected ‘UINT8 *’ {aka ‘unsigned char *’} but argument is of type ‘int *’
- 706 | UINT8* numDevices /*Number of Devices connected*/
- | ~~~~~~~^~~~~~~~~~
- Command_Utility.c:105:16: warning: ‘return’ with a value, in function returning void
- 105 | return rStatus;
- | ^~~~~~~
- Command_Utility.c:95:6: note: declared here
- 95 | void deviceHotPlug () {
- | ^~~~~~~~~~~~~
- Command_Utility.c:107:5: warning: implicit declaration of function ‘printListOfDevices’; did you mean ‘CyGetListofDevices’? [-Wimplicit-function-declaration]
- 107 | printListOfDevices (false);
- | ^~~~~~~~~~~~~~~~~~
- | CyGetListofDevices
- Command_Utility.c: In function ‘main’:
- Command_Utility.c:139:35: warning: passing argument 1 of ‘CyGetListofDevices’ from incompatible pointer type [-Wincompatible-pointer-types]
- 139 | rStatus = CyGetListofDevices (&numDevices);
- | ^~~~~~~~~~~
- | |
- | int *
- In file included from Command_Utility.c:33:
- ../../common/header/CyUSBSerial.h:706:12: note: expected ‘UINT8 *’ {aka ‘unsigned char *’} but argument is of type ‘int *’
- 706 | UINT8* numDevices /*Number of Devices connected*/
- | ~~~~~~~^~~~~~~~~~
- Command_Utility.c:268:51: warning: passing argument 2 of ‘CyReadDeviceConfig’ from incompatible pointer type [-Wincompatible-pointer-types]
- 268 | rStatus=CyReadDeviceConfig(handle,&read_buffer);
- | ^~~~~~~~~~~~
- | |
- | unsigned char (*)[512]
- In file included from Command_Utility.c:34:
- ../../common/header/CyUSBBootloader.h:205:12: note: expected ‘UCHAR *’ {aka ‘unsigned char *’} but argument is of type ‘unsigned char (*)[512]’
- 205 | UCHAR *deviceConfig /* Device configuration value.*/
- | ~~~~~~~^~~~~~~~~~~~
- Command_Utility.c: At top level:
- Command_Utility.c:382:6: warning: conflicting types for ‘printListOfDevices’; have ‘void(_Bool)’
- 382 | void printListOfDevices (bool isPrint)
- | ^~~~~~~~~~~~~~~~~~
- Command_Utility.c:107:5: note: previous implicit declaration of ‘printListOfDevices’ with type ‘void(_Bool)’
- 107 | printListOfDevices (false);
- | ^~~~~~~~~~~~~~~~~~
- Command_Utility.c: In function ‘printListOfDevices’:
- Command_Utility.c:396:25: warning: passing argument 1 of ‘CyGetListofDevices’ from incompatible pointer type [-Wincompatible-pointer-types]
- 396 | CyGetListofDevices (&numDevices);
- | ^~~~~~~~~~~
- | |
- | int *
- In file included from Command_Utility.c:33:
- ../../common/header/CyUSBSerial.h:706:12: note: expected ‘UINT8 *’ {aka ‘unsigned char *’} but argument is of type ‘int *’
- 706 | UINT8* numDevices /*Number of Devices connected*/
- | ~~~~~~~^~~~~~~~~~
- Command_Utility.c:445:75: warning: backslash and newline separated by space
- 445 | printf ("%d |%x |%x | %d | %s\n", \
- |
- cp 90-cyusb.rules /etc/udev/rules.d
- cp CyUSBSerialCommandUtility /usr/bin
- cp CyUSBSerial.sh /usr/bin
- chmod 777 /usr/bin/CyUSBSerial.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement