Newer
Older
mbed-os / features / FEATURE_BLE / targets / TARGET_CORDIO / stack_adaptation / wsf_cs.c
@Paul Szczeanek Paul Szczeanek on 2 Jul 2020 1 KB porting adaptation layer
/*************************************************************************************************/
/*!
 *  \file   wsf_cs.c
 *
 *  \brief  Software foundation OS main module.
 *
 *  Copyright (c) 2009-2019 Arm Ltd. All Rights Reserved.
 *
 *  Copyright (c) 2019-2020 Packetcraft, Inc.
 *  
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  
 *      http://www.apache.org/licenses/LICENSE-2.0
 *  
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
/*************************************************************************************************/

#include "wsf_types.h"
#include "wsf_cs.h"

#include "wsf_mbed_os_adaptation.h"

/* PORTING: WSF_CS_STATS are removed and critical section is handled by mbed-os */

/*************************************************************************************************/
/*!
 *  \brief  Enter a critical section.
 */
/*************************************************************************************************/
void WsfCsEnter(void)
{
  wsf_mbed_os_critical_section_enter();
}

/*************************************************************************************************/
/*!
 *  \brief  Exit a critical section.
 */
/*************************************************************************************************/
void WsfCsExit(void)
{
  wsf_mbed_os_critical_section_exit();
}