After editing the library header file and how to consider as my own library header file

This library as 4 pins i have edited in this in header file(IBT2.h file and IBT2.ccp file) but i have Removed Both Enable pins and used only for 2 pins (LPWM, RPWM), while compiling i am facing this error .

Error Message: pinmap not found for peripheral
                                                            Location: 0x800DD19
                                                                               Error Value: 0xFFFFFFFF
                                                                                                      Current Thread: main  Id: 0x20006220 Entry: 0x800C687 StackSize: 0x1000 StackMem: 0x20004BA8 SP: 0x20005ACC
                     For more info, visit:
                                                                                                                                                     -- MbedOS Error Info --

                                                                                                                                                                            = System will be rebooted due to a fatal error =
                               = Reboot count(=34) reached maximum, system will halt after rebooting

                                                                                                     ++ MbedOS Error Info ++
                                                                                                                            Error Status: 0x80010130 Code: 304 Module: 1
                                                                                                                                                                        Error Message: pinmap not found for peripheral

if i consider this one as my own header file, what i should do for this IBT2.lib as given in the snap below



you use a pin what is not assigned for the peripheral. That mean you use wrong pin.
For example, you want to use PWM, then you have to use a pin what is connected to a hardware Timer (usually is marked with PWM) - ()PeripheralPins

BR, Jan