Add RingBuffer class
Refactor NVIC configuration for readability
Add {} to empty while loops to comply with style guide