sm130: updated new implementation to C++ types

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu 2015-09-11 16:23:10 -07:00
parent 3af7cccb93
commit b44995da74
2 changed files with 4 additions and 3 deletions

View File

@ -53,7 +53,7 @@ SM130::~SM130()
{
}
mraa_result_t SM130::setBaudRate(int baud)
mraa::Result SM130::setBaudRate(int baud)
{
m_baud = baud;
return m_uart.setBaudRate(baud);

View File

@ -35,6 +35,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <mraa/common.hpp>
#include <mraa/uart.hpp>
#include <mraa/gpio.hpp>
@ -171,9 +172,9 @@ namespace upm {
* Sets the baud rate for the device. The default is 19200.
*
* @param baud Desired baud rate, default 19200
* @return mraa_result_t value
* @return mraa::Result value
*/
mraa_result_t setBaudRate(int baud=19200);
mraa::Result setBaudRate(int baud=19200);
/**
* Gets the firmware version string.