mirror of https://github.com/ARMmbed/mbed-os.git
Add can_init_frequency to RENESAS targets
hz is not used in can_init functionspull/4165/head
parent
f740d2f3bc
commit
a912d05f3b
|
@ -539,7 +539,7 @@ static void can4_bus_err_irq(void) {
|
|||
can_err_irq(CAN_4, IRQ_BUS);
|
||||
}
|
||||
|
||||
void can_init(can_t *obj, PinName rd, PinName td) {
|
||||
void can_init_freq(can_t *obj, PinName rd, PinName td, int hz) {
|
||||
__IO uint32_t *dmy_ctr;
|
||||
|
||||
/* determine the CAN to use */
|
||||
|
@ -575,6 +575,10 @@ void can_init(can_t *obj, PinName rd, PinName td) {
|
|||
pinmap_pinout(td, PinMap_CAN_TD);
|
||||
}
|
||||
|
||||
void can_init(can_t *obj, PinName rd, PinName td) {
|
||||
can_init_freq(obj, rd, td, 0);
|
||||
}
|
||||
|
||||
void can_free(can_t *obj) {
|
||||
/* disable CAN clock */
|
||||
CPGSTBCR3 |= CPG_STBCR3_BIT_MSTP32;
|
||||
|
|
|
@ -556,7 +556,7 @@ static void can4_bus_err_irq(void) {
|
|||
can_err_irq(CAN_4, IRQ_BUS);
|
||||
}
|
||||
|
||||
void can_init(can_t *obj, PinName rd, PinName td) {
|
||||
void can_init_freq(can_t *obj, PinName rd, PinName td, int hz) {
|
||||
__IO uint32_t *dmy_ctr;
|
||||
|
||||
/* determine the CAN to use */
|
||||
|
@ -592,6 +592,10 @@ void can_init(can_t *obj, PinName rd, PinName td) {
|
|||
pinmap_pinout(td, PinMap_CAN_TD);
|
||||
}
|
||||
|
||||
void can_init(can_t *obj, PinName rd, PinName td) {
|
||||
can_init_freq(obj, rd, td, 0);
|
||||
}
|
||||
|
||||
void can_free(can_t *obj) {
|
||||
/* disable CAN clock */
|
||||
CPGSTBCR3 |= CPG_STBCR3_BIT_MSTP32;
|
||||
|
|
Loading…
Reference in New Issue