@Strefz, I may have misunderstood you the first time. I think you are looking for something lower level, such as the HAL (hardware abstraction layer) or the hardware driver firmware. If I got it right this time, then this thread will have the clues to what you are looking for. I have not delved into it that deeply, so I might not be able to offer much more than this: