Libraries for internal modules and microcontroller peripherals