Advertisement
Guest User

Untitled

a guest
Sep 19th, 2022
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.20 KB | None | 0 0
  1. #   gcc -g -o CyUSBSerialTestUtility Test_Utility.c -lcyusbserial -w
  2. gcc -g -o CyUSBSerialCommandUtility Command_Utility.c -lcyusbserial
  3. Command_Utility.c: In function ‘deviceHotPlug’:
  4. Command_Utility.c:102:35: warning: passing argument 1 of ‘CyGetListofDevices’ from incompatible pointer type [-Wincompatible-pointer-types]
  5.   102 |     rStatus = CyGetListofDevices (&numDevices);
  6.       |                                   ^~~~~~~~~~~
  7.       |                                   |
  8.       |                                   int *
  9. In file included from Command_Utility.c:33:
  10. ../../common/header/CyUSBSerial.h:706:12: note: expected ‘UINT8 *{aka ‘unsigned char *} but argument is of type ‘int *
  11.   706 |     UINT8* numDevices                            /*Number of Devices connected*/
  12.       |     ~~~~~~~^~~~~~~~~~
  13. Command_Utility.c:105:16: warning: ‘return’ with a value, in function returning void
  14.   105 |         return rStatus;
  15.       |                ^~~~~~~
  16. Command_Utility.c:95:6: note: declared here
  17.    95 | void deviceHotPlug () {
  18.       |      ^~~~~~~~~~~~~
  19. Command_Utility.c:107:5: warning: implicit declaration of function ‘printListOfDevices’; did you mean ‘CyGetListofDevices’? [-Wimplicit-function-declaration]
  20.   107 |     printListOfDevices (false);
  21.       |     ^~~~~~~~~~~~~~~~~~
  22.       |     CyGetListofDevices
  23. Command_Utility.c: In function ‘main’:
  24. Command_Utility.c:139:35: warning: passing argument 1 of ‘CyGetListofDevices’ from incompatible pointer type [-Wincompatible-pointer-types]
  25.   139 |     rStatus = CyGetListofDevices (&numDevices);
  26.       |                                   ^~~~~~~~~~~
  27.       |                                   |
  28.       |                                   int *
  29. In file included from Command_Utility.c:33:
  30. ../../common/header/CyUSBSerial.h:706:12: note: expected ‘UINT8 *{aka ‘unsigned char *} but argument is of type ‘int *
  31.   706 |     UINT8* numDevices                            /*Number of Devices connected*/
  32.       |     ~~~~~~~^~~~~~~~~~
  33. Command_Utility.c:268:51: warning: passing argument 2 of ‘CyReadDeviceConfig’ from incompatible pointer type [-Wincompatible-pointer-types]
  34.   268 |                 rStatus=CyReadDeviceConfig(handle,&read_buffer);
  35.       |                                                   ^~~~~~~~~~~~
  36.       |                                                   |
  37.       |                                                   unsigned char (*)[512]
  38. In file included from Command_Utility.c:34:
  39. ../../common/header/CyUSBBootloader.h:205:12: note: expected ‘UCHAR *{aka ‘unsigned char *} but argument is of type ‘unsigned char (*)[512]
  40.   205 |     UCHAR *deviceConfig                               /* Device configuration value.*/
  41.       |     ~~~~~~~^~~~~~~~~~~~
  42. Command_Utility.c: At top level:
  43. Command_Utility.c:382:6: warning: conflicting types for ‘printListOfDevices’; have ‘void(_Bool)
  44.   382 | void printListOfDevices (bool isPrint)
  45.       |      ^~~~~~~~~~~~~~~~~~
  46. Command_Utility.c:107:5: note: previous implicit declaration of ‘printListOfDevices’ with type ‘void(_Bool)
  47.   107 |     printListOfDevices (false);
  48.       |     ^~~~~~~~~~~~~~~~~~
  49. Command_Utility.c: In function ‘printListOfDevices’:
  50. Command_Utility.c:396:25: warning: passing argument 1 of ‘CyGetListofDevices’ from incompatible pointer type [-Wincompatible-pointer-types]
  51.   396 |     CyGetListofDevices (&numDevices);
  52.       |                         ^~~~~~~~~~~
  53.       |                         |
  54.       |                         int *
  55. In file included from Command_Utility.c:33:
  56. ../../common/header/CyUSBSerial.h:706:12: note: expected ‘UINT8 *{aka ‘unsigned char *} but argument is of type ‘int *
  57.   706 |     UINT8* numDevices                            /*Number of Devices connected*/
  58.       |     ~~~~~~~^~~~~~~~~~
  59. Command_Utility.c:445:75: warning: backslash and newline separated by space
  60.   445 |                 printf ("%d             |%x  |%x    | %d     | %s\n", \
  61.       |                                                                        
  62.  
  63. cp 90-cyusb.rules /etc/udev/rules.d
  64. cp CyUSBSerialCommandUtility /usr/bin
  65. cp CyUSBSerial.sh /usr/bin
  66. chmod 777 /usr/bin/CyUSBSerial.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement