Hi all,
I'm having some trouble accessing the CR2 register of TIMER1. At the line
TIMER1->regs->CR2 |= 1<<8;
the compiler throws an error "error: base operand of '->' has non-pointer type 'timer_reg_map'". This is very confusing to me, as a similar bit of code for the ADC,
ADC1->regs->SR ^= 1<<1;
will compile perfectly, and the variable all seem to be of similar types. I've poked around in the timer.h source and on the forum, though I haven't been able to find the source of my problem yet. I would appreciate some help! I'm new to developing in C and using the unix toolchain, so I apologize if it's a trivial issue.
Thanks in advance!