WP8548 How to extend GPIO

Dear Sir,
I need more GPIO pins for my application. Therefore, I want using some pins: UART1_DTR, UART1_DCD, UART2_RTS, UART2_CTS, SDIO_DATA_0, SDIO_DATA_1, SDIO_DATA_2, SDIO_DATA_3 such as GPIO. How to configuration pins such as GPIO? can you give me sample code?
Brs,
Peter.

I am not sure about code level but you can configure after WP85XX module is up.
when you boot WP85XX module with AT command you can find all the GPIO pins that are available
this can be configured according to your requirement. steps as follows.
at+wiocfg?
Example:
at+wiocfg?
+WIOCFG: 2,16,0,0,1,0,0
+WIOCFG: 6,16,0,0,1,0,0
+WIOCFG: 7,16,0,0,1,0,0
+WIOCFG: 8,16,0,0,1,0,0
+WIOCFG: 13,16,0,0,1,0,0
+WIOCFG: 21,16,0,0,1,0,0
+WIOCFG: 22,16,0,0,1,0,0
+WIOCFG: 23,16,0,0,1,0,0
+WIOCFG: 24,16,0,0,1,0,0
+WIOCFG: 25,16,0,0,1,0,0
+WIOCFG: 28,0,0,0,1,0,0
+WIOCFG: 29,0,0,0,1,0,0
+WIOCFG: 30,0,0,0,1,0,0
+WIOCFG: 31,0,0,0,1,0,0
+WIOCFG: 32,16,0,0,1,0,0
+WIOCFG: 33,16,0,0,1,0,0
+WIOCFG: 34,0,0,0,1,0,0
+WIOCFG: 35,0,0,0,1,0,0
+WIOCFG: 36,16,0,0,1,0,0
+WIOCFG: 37,0,0,0,1,0,0
+WIOCFG: 42,16,0,0,1,0,0

If the 2nd element is “0” then its unallocated.
Allocate GPIO (example GPIO36) if it is unallocated using AT commands and reset the module:
16 is the configuration that we need to assign for GPIO (example GPIO36) as below,
microcom -E /dev/ttyAT
AT+WIOCFG=36,16,0,0,1,0,0
AT+WIOCFG=13,16,0,0,1,0,0
AT+WIOCFG=8,16,0,0,1,0,0
at!reset

If the GPIO pin which you are expecting is not listed above then probably that GPIO pin is not enabled.