I want to create such library, that is compactable with any port or pins of the microcontroller.
For example:
There a function named Lcd_initialisation().I want to create its library such that,its configuration must be defined & declared in my main().
Thanks in Advance
I think you mean "compatible" ?
When you say "library", are you talking about a collection of source files, or a binary Library file that the user will just link to?
The trouble with the 8051 is that it has no indirect addressing of ports or pins - only direct addressing.