mirror of https://github.com/ARMmbed/mbed-os.git
34 lines
1.2 KiB
C
34 lines
1.2 KiB
C
/*
|
|
* Copyright (c) , Arm Limited and affiliates.
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#ifndef __RTX_OS__
|
|
#define __RTX_OS__
|
|
|
|
#include "inttypes.h"
|
|
|
|
typedef struct osRtxSemaphore_s {
|
|
uint8_t id; ///< Object Identifier
|
|
uint8_t state; ///< Object State
|
|
uint8_t flags; ///< Object Flags
|
|
uint8_t reserved;
|
|
const char *name; ///< Object Name
|
|
uint16_t tokens; ///< Current number of tokens
|
|
uint16_t max_tokens; ///< Maximum number of tokens
|
|
} osRtxSemaphore_t;
|
|
|
|
#endif
|