STM32: simple init overload

This commit is contained in:
Pavel Kirienko
2015-07-25 00:54:19 +03:00
parent 0a5edf314c
commit ec6722ba28
@@ -281,6 +281,17 @@ public:
driver(queue_storage_)
{ }
/**
* This overload simply configures the provided bitrate.
* Auto bit rate detection will not be performed.
* Bitrate value must be positive.
* @return Negative value on error; non-negative on success.
*/
int init(uavcan::uint32_t bitrate)
{
return driver.init(bitrate, CanIface::NormalMode);
}
/**
* This function can either initialize the driver at a fixed bit rate, or it can perform
* automatic bit rate detection. For theory please refer to the CiA application note #801.