Skip to content

Commit b239321

Browse files
committed
stm32: canio: remove unused functions
1 parent e763eed commit b239321

File tree

1 file changed

+0
-15
lines changed
  • ports/stm/common-hal/canio

1 file changed

+0
-15
lines changed

ports/stm/common-hal/canio/CAN.c

-15
Original file line numberDiff line numberDiff line change
@@ -181,21 +181,6 @@ int common_hal_canio_can_receive_error_count_get(canio_can_obj_t *self)
181181
return (self->handle.Instance->ESR & CAN_ESR_REC) >> CAN_ESR_REC_Pos;
182182
}
183183

184-
int common_hal_canio_can_error_warning_state_count_get(canio_can_obj_t *self)
185-
{
186-
return self->error_warning_state_count;
187-
}
188-
189-
int common_hal_canio_can_error_passive_state_count_get(canio_can_obj_t *self)
190-
{
191-
return self->error_passive_state_count;
192-
}
193-
194-
int common_hal_canio_can_bus_off_state_count_get(canio_can_obj_t *self)
195-
{
196-
return self->bus_off_state_count;
197-
}
198-
199184
canio_bus_state_t common_hal_canio_can_state_get(canio_can_obj_t *self) {
200185
uint32_t esr = self->handle.Instance->ESR;
201186
if (READ_BIT(esr, CAN_ESR_BOFF)) {

0 commit comments

Comments
 (0)