embkernel
 All Classes Functions Variables Typedefs Groups Pages
FsDrive.cpp
1 //------------------------------------------------------------------------------
2 //This file is part of embKernel.
3 //See license.txt for the full license governing this code.
4 //------------------------------------------------------------------------------
5 
6 #include "FsDrive.hpp"
7 
8 FsDrive::FsDrive() :
9  mSema(1, 1) {
10  mIsReady = false;
11 }
12 
13 FsDrive::~FsDrive() {
14 
15 }
16 
17 void FsDrive::lock() {
18  mSema.take(Rtos::TICK_INFINITE);
19 }
20 
21 void FsDrive::unlock() {
22  mSema.give(Rtos::TICK_INFINITE);
23 }
24