git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6835 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
259628a569
commit
6b063bc396
|
@ -65,8 +65,8 @@ CANDriver CAND2;
|
||||||
* @notapi
|
* @notapi
|
||||||
*/
|
*/
|
||||||
static void can_lld_set_filters(uint32_t can2sb,
|
static void can_lld_set_filters(uint32_t can2sb,
|
||||||
uint32_t num,
|
uint32_t num,
|
||||||
const CANFilter *cfp) {
|
const CANFilter *cfp) {
|
||||||
|
|
||||||
/* Temporarily enabling CAN1 clock.*/
|
/* Temporarily enabling CAN1 clock.*/
|
||||||
rccEnableCAN1(FALSE);
|
rccEnableCAN1(FALSE);
|
||||||
|
@ -383,7 +383,6 @@ void can_lld_init(void) {
|
||||||
#else
|
#else
|
||||||
can_lld_set_filters(STM32_CAN_MAX_FILTERS, 0, NULL);
|
can_lld_set_filters(STM32_CAN_MAX_FILTERS, 0, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -355,6 +355,7 @@ extern "C" {
|
||||||
void can_lld_sleep(CANDriver *canp);
|
void can_lld_sleep(CANDriver *canp);
|
||||||
void can_lld_wakeup(CANDriver *canp);
|
void can_lld_wakeup(CANDriver *canp);
|
||||||
#endif /* CAN_USE_SLEEP_MODE */
|
#endif /* CAN_USE_SLEEP_MODE */
|
||||||
|
void canSTM32SetFilters(uint32_t can2sb, uint32_t num, const CANFilter *cfp);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue