This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#include<avr/io.h>
void
Taster_init(void){
DDRD&=~(0b111<<5);/* Set bit 5-7 of Data Direction Register D as input */
DDRC&=~(1<<2);/* Set bit 2 of Data Direction Register C as input */
PORTD|=(0b111<<5);/* Initialize bit 5-7 of PORTD as for pull up resistor */
PORTC|=(1<<PINC2);/* Initialize bit 2 of PORTC as for pull up resistor */
/** Disable JTAG so Pin 2 of PORTC can be used as a GPIO
* Command needs to be run twice - see MCU Control Register Description (23.8.1)
* Bits 7 – JTD: JTAG Interface Disable
* [..] The application software must write this bit to the desired value
* twice within four cycles to change its value. [...]