Pin 9 and 10 on ATMega328 question

Normally these 2 pins are used for external oscillator but the chip can be programmed to use internal clock instead for stand alone operation (not on Arduino board but custom PCB or breadboad). I looked at the pinouts and it's listed as PB6 and PB7 which means theoretically I can use that 2 pin via direct port manipulation as group port B. But there seems to be no way to control that 2 pins by itself like digitalWrite.

Is there a way to control pin 9 and 10 within IDE as individual pins?

Configure PB6 as an output...

DDRB |= (1 << DDRB6);

Configure PB6 as an input...

DDRB &= ~(1 << DDRB6);

Read PB6...

(PINB & (1 << PINB6));

Set PB6 HIGH...

PORTB |= (1 << PORTB6);

Set PB6 LOW...

PORTB &= ~(1 << PORTB6);

Toggle PB6...

PINB = (1<< PINB6);

Warning: may contain syntax or logical errors

MiniCore supports PB6 and PB7 as pins 20 and 21.

Cool it's easier than I thought. Thanks for the info