I managed to find some example code for my chip and the compiler that I'm using. It did more than I needed but it was a great starting point. I took just the bits that I thought that I needed and now I have a blinking LED.
Now that I've managed to get this far I'm going to sit down and learn more of the details of how the chip works. I just needed a starting point from which I could build.