CC2340R5: How can I put a longer execution time function in the callback function?

Part Number: CC2340R5

Tool/software:

Hello friend,
I'm using CC2340R5-Q1 MCU and SDK simplelink_lowpower_f3_sdk_8_10_01_02. I created a new project without BLE functionality. Functions called from interrupt callback (button 0) take longer to execute. But it seems to be stuck on the callback function. How can I put a longer execution time function in the callback function?

Thank you in advance.
Ted Wu