Thanks for your question online. You can use the SWD pins (P1_4 ./ P1_5) as GPIO's when the debugger is disabled. To do so, the SYS_CTRL_REG[DEBUGGER_ENABLE] bit should be set to 0 in your software. According to datasheet, if this bit is not set, the SWDIO and SW_CLK can be used as gpio ports. Then you should just configure any of them as you are doing with other GPIOs in the periph_init() and you will be able to use them.
Hi ltdev,
Thanks for your question online. You can use the SWD pins (P1_4 ./ P1_5) as GPIO's when the debugger is disabled. To do so, the SYS_CTRL_REG[DEBUGGER_ENABLE] bit should be set to 0 in your software. According to datasheet, if this bit is not set, the SWDIO and SW_CLK can be used as gpio ports. Then you should just configure any of them as you are doing with other GPIOs in the periph_init() and you will be able to use them.
Thanks, PM_Dialog