-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCO_can.cpp
More file actions
36 lines (32 loc) · 866 Bytes
/
CO_can.cpp
File metadata and controls
36 lines (32 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* @file CO_can.cpp
* @author Arella Matteo <br/>
* (mail: arella.1646983@studenti.uniroma1.it)
* @date 2018
* @brief CAN setup module implementation
*/
#include "CO_can.h"
#include "can_servizi.h"
#include "can_funzionale.h"
/** @addtogroup CAN_module_group
*
* @{
*/
/**
* @brief This function initializes both CAN funzionale and CAN servizi
* networks.
* @author Arella Matteo <br/>
* (mail: arella.1646983@studenti.uniroma1.it)
* @retval true CAN networks initialized successfully
* @retval false CAN networks initialization failed
*/
bool can_init() {
if (!can_funzionale_initialized())
can_funzionale_init();
if (!can_servizi_initialized())
return can_servizi_init();
return true;
}
/**
* @}
*/