...
Implementation will differ based on the peripheral, but now you should understand the basic intention behind the BSP. Credit to Tianda Huang for developing this scheme, and to Connor Leu, Lakshay Gupta and Nathaniel Delgado for developing it further.