This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2540: How to port code written from BLE1.3 to BLE 1.4 using IAR for CC2540

Part Number: CC2540

I got a question. I wrote a code using BLE 1.3 stack with IAR 8.10.3. There is no issue if I use IAR 8.10.3 or IAR 8.20 to compile and download it. 

However, when I copied my peripheral, central and profile code to BLE1.4 and used IAR 8.20, an error popped up as below.

Error[Pe165]: too few arguments in function call C:\Texas Instruments\BLE-CC254x-1.4.0\Projects\ble\Profiles\Roles\peripheral.c 662

Here it mentions the " return ( GAP_TerminateLinkReq( gapRole_TaskID, gapRole_ConnectionHandle ) );" , which is in peripheral.c

My question here is what is the general procedure to port code from BLE1.3 to BLE 1.4 (higher version of BLE stack)? 

Thanks in advance!

bStatus_t GAPRole_TerminateConnection( void )
{
  if ( gapRole_state == GAPROLE_CONNECTED )
  {
    return ( GAP_TerminateLinkReq( gapRole_TaskID, gapRole_ConnectionHandle ) );
  }
  else
  {
    return ( bleIncorrectMode );
  }
}