MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / bxcan1_hw_init

Function bxcan1_hw_init

bsp/loongson/ls1cdev/drivers/drv_can.c:230–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228
229#ifdef USING_BXCAN1
230static void bxcan1_hw_init(void)
231{
232 pin_set_purpose(56, PIN_PURPOSE_OTHER);
233 pin_set_purpose(57, PIN_PURPOSE_OTHER);
234 pin_set_remap(56, PIN_REMAP_THIRD);
235 pin_set_remap(57, PIN_REMAP_THIRD);
236}
237#endif
238
239static rt_err_t configure(struct rt_can_device *can, struct can_configure *cfg)

Callers 1

configureFunction · 0.70

Calls 2

pin_set_purposeFunction · 0.50
pin_set_remapFunction · 0.50

Tested by

no test coverage detected