blob: 1f0211c7f0cb09663658afd83bdd0243180a8320 [file] [log] [blame]
/* --COPYRIGHT--,ESD
* Copyright (c) 2008 Texas Instruments. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License
* v. 1.0 which accompanies this distribution. The Eclipse Public License is
* available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse
* Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Texas Instruments - initial implementation
* --/COPYRIGHT--*/
/*
* ======== Semaphore.c ========
*/
#include <xdc/std.h>
#include <xdc/runtime/Error.h>
#include <xdc/runtime/knl/ISemaphore.h>
#include "package/internal/Semaphore.xdc.h"
/*
* ======== Semaphore_pend ========
*/
Int Semaphore_pend(ISemaphore_Handle sem, UInt timeout, Error_Block *eb)
{
return (Semaphore_Proxy_pend(sem, timeout, eb));
}
/*
* ======== Semaphore_post ========
*/
Bool Semaphore_post(ISemaphore_Handle sem, Error_Block *eb)
{
return (Semaphore_Proxy_post(sem, eb));
}
/*
*! Revision History
*! ================
*! 17-Apr-2009 nitya Review updates
*/