Revision 90e99d44

View differences:

core/src/aos_main.cpp
979 979
#endif
980 980

  
981 981
  /* periphery communication initialization */
982
#if (AMIROOS_CFG_SSSP_ENABLE == true)
982 983
  // CAN (mandatory)
983 984
  canStart(&MODULE_HAL_CAN, &moduleHalCanConfig);
985
#endif
984 986
  // module specific initialization (if any)
985 987
#ifdef MODULE_INIT_PERIPHERY_COMM
986 988
  MODULE_INIT_PERIPHERY_COMM();
......
1299 1301
#endif
1300 1302

  
1301 1303
  /* stop all periphery communication */
1304
#if (AMIROOS_CFG_SSSP_ENABLE == true)
1302 1305
  // CAN (mandatory)
1303 1306
  canStop(&MODULE_HAL_CAN);
1307
#endif
1304 1308
#ifdef MODULE_SHUTDOWN_PERIPHERY_COMM
1305 1309
  MODULE_SHUTDOWN_PERIPHERY_COMM();
1306 1310
#endif
modules/STM32F4Discovery/halconf.h
53 53
 * @brief   Enables the CAN subsystem.
54 54
 */
55 55
#if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
56
#define HAL_USE_CAN                         TRUE
56
#define HAL_USE_CAN                         FALSE
57 57
#endif
58 58

  
59 59
/**
modules/STM32F4Discovery/module.c
44 44
 */
45 45
/*===========================================================================*/
46 46

  
47
CANConfig moduleHalCanConfig = {
48
  /* mcr  */ CAN_MCR_ABOM | CAN_MCR_AWUM | CAN_MCR_TXFP,
49
  /* btr  */ CAN_BTR_SJW(1) | CAN_BTR_TS2(3) | CAN_BTR_TS1(15) | CAN_BTR_BRP(1),
50
};
51

  
52 47
SerialConfig moduleHalProgIfConfig = {
53 48
  /* bit rate */ 115200,
54 49
  /* CR1      */ 0,
modules/STM32F4Discovery/module.h
69 69
 * @{
70 70
 */
71 71
/*===========================================================================*/
72
#include <hal.h>
73

  
74
/**
75
 * @brief   CAN driver to use.
76
 */
77
#define MODULE_HAL_CAN                          CAND1
78

  
79
/**
80
 * @brief   Configuration for the CAN driver.
81
 */
82
extern CANConfig moduleHalCanConfig;
83 72

  
84 73
/**
85 74
 * @brief   Serial driver of the programmer interface.

Also available in: Unified diff