0
|
1 |
/*
|
|
2 |
* Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef __SDIOPSU_INL__
|
|
20 |
#define __SDIOPSU_INL__
|
|
21 |
|
|
22 |
// ======== DSDIOPsu ========
|
|
23 |
|
|
24 |
inline void DSDIOPsu::Lock()
|
|
25 |
/**
|
|
26 |
Locks the PSU, preventing it from powering down
|
|
27 |
*/
|
|
28 |
{ (void)__e32_atomic_store_ord32(&iIsLocked, 1); }
|
|
29 |
|
|
30 |
inline void DSDIOPsu::Unlock()
|
|
31 |
/**
|
|
32 |
Unlocks the PSU, allowing it to be powered down
|
|
33 |
*/
|
|
34 |
{ (void)__e32_atomic_store_ord32(&iIsLocked, 0); }
|
|
35 |
|
|
36 |
|
|
37 |
#endif // #ifndef __SDIOPSU_INL__
|
|
38 |
|