mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
sm130: updated new implementation to C++ types
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
3af7cccb93
commit
b44995da74
@ -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);
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user