How to configure GPIO as data and address bus

My nRF52840 DK needs to interface with a convential device using the data bus and address bus.
The following diagram (P.27) from the nRF52840 PDK user guide.shows the data/address bus assignments.

How do I configure the GPIO assigned to the data lines to be bidirectional?

Related