initialization code.


So what is the problem ?

You need to give much more detail. What device are you using ? Can you provide a link to it or much more detail ? How is it connected to the Arduino ? How much experience of the Arduino do you have ?

The comments aren't very helpful - maybe if you commented what was being done, rather than how, it would be easier to port. I'd start with a simple block wiring diagram, with functions (LCD, interrupt in etc) rather than actual ports and devices, to get a better idea of what has to be done.