leon,can: introduce common CAN baud-rate calculation function

Reimplemented the baud-rate algorithm from scratch to cope with
GRCAN, GRCANFD and OC_CAN devices.

Update #4323.
This commit is contained in:
Daniel Hellstrom
2019-04-12 11:01:38 +02:00
parent 68c882ef45
commit cff99cf1fa
7 changed files with 246 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
/**
* @file
* @ingroup can
* @brief Driver API for the GRLIB GRCAN and GRCANFD controllers
*/
/*
@@ -25,6 +26,8 @@
* @{
*/
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif