styling: convert TAB to four SPACES

Signed-off-by: Kiveisha Yevgeniy <yevgeniy.kiveisha@intel.com>
This commit is contained in:
Kiveisha Yevgeniy
2014-06-03 09:12:47 +00:00
parent 0db7af89f9
commit 5b8922f7bf
20 changed files with 635 additions and 635 deletions

View File

@ -30,22 +30,22 @@
using namespace upm;
Buzzer::Buzzer (int pinNumber) {
m_pwm_context = maa_pwm_init (pinNumber);
m_name = "Buzzer";
m_pwm_context = maa_pwm_init (pinNumber);
m_name = "Buzzer";
}
int Buzzer::playSound (int note) {
maa_pwm_enable (m_pwm_context, 1);
maa_pwm_period_us (m_pwm_context, note);
maa_pwm_write (m_pwm_context, 50.0);
usleep (10000);
maa_pwm_enable (m_pwm_context, 0);
maa_pwm_enable (m_pwm_context, 1);
maa_pwm_period_us (m_pwm_context, note);
maa_pwm_write (m_pwm_context, 50.0);
usleep (10000);
maa_pwm_enable (m_pwm_context, 0);
return 0;
return 0;
}
Buzzer::~Buzzer() {
maa_pwm_close(m_pwm_context);
std::cout << "executed maa_pwm_close" << std::endl;
maa_pwm_close(m_pwm_context);
std::cout << "executed maa_pwm_close" << std::endl;
}

View File

@ -38,16 +38,16 @@ namespace upm {
class Buzzer {
public:
Buzzer (int pinNumber);
~Buzzer ();
int playSound (int note);
Buzzer (int pinNumber);
~Buzzer ();
int playSound (int note);
std::string name()
{
return m_name;
}
protected:
std::string m_name;
private:
maa_pwm_context m_pwm_context;
private:
maa_pwm_context m_pwm_context;
};
}