Fix interrupt generation. Add PIC HAL.