milan.rajik
Banned
How to make a bit structure ?
I have ports like PORTB, PORTD, DDRD, etc... In mikroC PRO AVR Compiler we can write like DDRB.F0 = 1 to set bit 0 of DDRB register. I want to do a similar thing in Atmel Studio projects. How can I define a structure and use the DDRx, PORTx, PINx, or any required registers with bit access like DDRB.F4 ?
I have ports like PORTB, PORTD, DDRD, etc... In mikroC PRO AVR Compiler we can write like DDRB.F0 = 1 to set bit 0 of DDRB register. I want to do a similar thing in Atmel Studio projects. How can I define a structure and use the DDRx, PORTx, PINx, or any required registers with bit access like DDRB.F4 ?