So I have a project. It's nothing fancy and so far it's been easy to build both physically and in programming. However, I've reached a point where I'm going to need to use a bluetooth module with my project. I have a CC-41a (a HM-10 knock-off) which I've been able to use with my Arduino (that I use as a middle step before trying to make it work with the ATMega328p) just fine, successfully turning on and off a led with the help of my iPhone. So that's all nice.
With the Arduino everything was pretty straightforward: I used a software serial and set up which pin was RX and which pin was TX. I was ready to move on to the real deal and started searching the web for tutorials and information. I see myself as at least somewhat of a fast learner, as soon as I get a push in the right direction. But this time it's hard. I've spent hours trying to find something to give me a start, but I find nothing.
Right now all I want to do is setup the ATMega to send and receive serial transmissions through it's RX and TX pins to and from the Bluetooth module. That's all. But I can't find how to set it up. I've found Peter Fleury's uart library, but the documentation is hard for me to make anything of.
So, to make sure I get to an actual question (and stop whining): If someone could explain to me just how to set up the initialising code with UART to my Bluetooth module with a baud rate of 9600, I would be immensely happy. If I could get some example code as well, that would be even more awesome.
PS The picture just shows my setup for trying to make the UART and Bluetooth work