-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlib.rs
63 lines (57 loc) · 2.38 KB
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! Auto-generated bindings for ThreadX 6.3
//!
//! ```quote
//! /**************************************************************************/
//! /* */
//! /* Copyright (c) Microsoft Corporation. All rights reserved. */
//! /* */
//! /* This software is licensed under the Microsoft Software License */
//! /* Terms for Microsoft Azure RTOS. Full text of the license can be */
//! /* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */
//! /* and in the root directory of this software. */
//! /* */
//! /**************************************************************************/
//! ```
// The notice above applies to the build output of this crate, including the
// bindings.rs file.
//
// The notice below applies to this file, without the bindings.rs file.
//
// SPDX-FileCopyrightText: Copyright (c) 2023 Ferrous Systems
// SPDX-License-Identifier: CC0-1.0
#![no_std]
#![allow(non_snake_case)]
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#![allow(clippy::missing_safety_doc)]
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
// Bindgen couldn't pick these constants out of the header file
// So I added them manually.
pub const TX_NO_WAIT: ULONG = 0;
pub const TX_WAIT_FOREVER: ULONG = 0xFFFFFFFF;
pub const TX_AND: UINT = 2;
pub const TX_AND_CLEAR: UINT = 3;
pub const TX_OR: UINT = 0;
pub const TX_OR_CLEAR: UINT = 1;
pub const TX_1_ULONG: UINT = 1;
pub const TX_2_ULONG: UINT = 2;
pub const TX_4_ULONG: UINT = 4;
pub const TX_8_ULONG: UINT = 8;
pub const TX_16_ULONG: UINT = 16;
pub const TX_NO_TIME_SLICE: ULONG = 0;
pub const TX_AUTO_START: UINT = 1;
pub const TX_DONT_START: UINT = 0;
pub const TX_AUTO_ACTIVATE: UINT = 1;
pub const TX_NO_ACTIVATE: UINT = 0;
pub const TX_TRUE: UINT = 1;
pub const TX_FALSE: UINT = 0;
pub const TX_INHERIT: UINT = 1;
pub const TX_NO_INHERIT: UINT = 0;
pub const TX_THREAD_ENTRY: UINT = 0;
pub const TX_THREAD_EXIT: UINT = 1;
pub const TX_NO_SUSPENSIONS: UINT = 0;
pub const TX_NO_MESSAGES: UINT = 0;
pub const TX_EMPTY: ULONG = 0;
pub const TX_CLEAR_ID: ULONG = 0;
/// Operation completed successfully
pub const TX_SUCCESS: UINT = 0;