1 /**
2  *
3  * Copyright (c) 2021 Microchip Technology Inc. and its subsidiaries.
4  *
5  * \asf_license_start
6  *
7  * \page License
8  *
9  * SPDX-License-Identifier: Apache-2.0
10  *
11  * Licensed under the Apache License, Version 2.0 (the "License"); you may
12  * not use this file except in compliance with the License.
13  * You may obtain a copy of the Licence at
14  *
15  * http://www.apache.org/licenses/LICENSE-2.0
16  *
17  * Unless required by applicable law or agreed to in writing, software
18  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
19  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  * See the License for the specific language governing permissions and
21  * limitations under the License.
22  *
23  * \asf_license_stop
24  *
25  */
26 
27 /** @file mec_defs.h
28  *MEC Peripheral library return values
29  */
30 /** @defgroup MEC type and bit defines
31  */
32 
33 #ifndef _MEC_DEFS_H
34 #define _MEC_DEFS_H
35 
36 #ifndef BIT
37 #define BIT(n) (1ul << (n))
38 #endif
39 
40 #ifndef SHLU32
41 #define SHLU32(v, n) ((unsigned long)(v) << (n))
42 #endif
43 
44 #ifndef BIT_CLR
45 #define BIT_CLR(v, bpos) (v) &= ~BIT(bpos)
46 #endif
47 
48 #endif /* #ifndef _MEC_DEFS_H */
49 /* end mec_defs.h */
50 /**   @}
51  */
52