MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
sema.h
1
6
/* ****************************************************************************
7
* Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
8
*
9
* Permission is hereby granted, free of charge, to any person obtaining a
10
* copy of this software and associated documentation files (the "Software"),
11
* to deal in the Software without restriction, including without limitation
12
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
13
* and/or sell copies of the Software, and to permit persons to whom the
14
* Software is furnished to do so, subject to the following conditions:
15
*
16
* The above copyright notice and this permission notice shall be included
17
* in all copies or substantial portions of the Software.
18
*
19
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22
* IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
23
* OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
24
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25
* OTHER DEALINGS IN THE SOFTWARE.
26
*
27
* Except as contained in this notice, the name of Maxim Integrated
28
* Products, Inc. shall not be used except as stated in the Maxim Integrated
29
* Products, Inc. Branding Policy.
30
*
31
* The mere transfer of this software does not imply any licenses
32
* of trade secrets, proprietary technology, copyrights, patents,
33
* trademarks, maskwork rights, or any other form of intellectual
34
* property whatsoever. Maxim Integrated Products, Inc. retains all
35
* ownership rights.
36
*
37
*************************************************************************** */
38
39
/* Define to prevent redundant inclusion */
40
#ifndef _SEMA_H_
41
#define _SEMA_H_
42
43
/* **** Includes **** */
44
#include "mxc_device.h"
45
#include "mxc_sys.h"
46
#include "sema_regs.h"
47
48
#ifdef __cplusplus
49
extern
"C"
{
50
#endif
51
58
/* **** Definitions **** */
59
60
/* **** Function Prototypes **** */
61
66
int
MXC_SEMA_Init
(
void
);
67
73
int
MXC_SEMA_GetSema
(
unsigned
sema);
74
81
int
MXC_SEMA_CheckSema
(
unsigned
sema);
82
88
uint32_t
MXC_SEMA_Status
(
void
);
89
94
void
MXC_SEMA_FreeSema
(
unsigned
sema);
95
100
int
MXC_SEMA_Shutdown
(
void
);
101
104
#ifdef __cplusplus
105
}
106
#endif
107
108
#endif
/* _SEMA_H_ */
MXC_SEMA_Init
int MXC_SEMA_Init(void)
Initialize the semaphore peripheral.
MXC_SEMA_Shutdown
int MXC_SEMA_Shutdown(void)
Shutdown the semaphore peripheral.
MXC_SEMA_GetSema
int MXC_SEMA_GetSema(unsigned sema)
Attempt to get a semaphore.
MXC_SEMA_FreeSema
void MXC_SEMA_FreeSema(unsigned sema)
Frees the semaphore.
MXC_SEMA_Status
uint32_t MXC_SEMA_Status(void)
Check all semaphores.
MXC_SEMA_CheckSema
int MXC_SEMA_CheckSema(unsigned sema)
Check a semaphore.
Include
MAX32665
sema.h
Generated on Fri Dec 4 2020 11:48:58 for MAX32665 Peripheral Driver API by
1.8.20