mimuz / mimuz-ch55x

A Very Tiny (only support 3 message type) MIDI Library for Ch55xduino
GNU Lesser General Public License v2.1
8 stars 3 forks source link

Compile problem #7

Closed NoNamedCat closed 9 months ago

NoNamedCat commented 9 months ago

Can you tell me if this is normal? I can compile other projects with different libraries, but I cant compile the example of this lib:

C:\Users***\Desktop\arduino-1.8.19\portable\sketchbook\libraries\mimuz-ch55x\src\mimuz-ch55x.c:124: error 98: conflict with previous declaration of 'USBSerial_write' for attribute 'type' at C:/Users/***/Desktop/arduino-1.8.19/portable/packages/CH55xDuino/hardware/mcs51/0.0.20/cores/ch55xduino/Arduino.h:287 from type 'unsigned-char function ( char data) fixed' to type 'unsigned-char function ( char fixed) fixed' cp:: No such file or directory exit status 1 Error compiling for board CH552 Board.

NoNamedCat commented 9 months ago

I fixed the problem

File: mimuz-ch55x.c Line: 124

Change: uint8_t USBSerial_write(char c){ To: uint8_t USBSerial_write(__data char c){