mirror of https://github.com/ARMmbed/mbed-os.git
Rename the f parameter into hz to avoid confusion with a loopcounter
parent
a769d2b6a5
commit
b6581d317c
|
@ -34,14 +34,14 @@ CAN::CAN(PinName rd, PinName td) : _can(), _irq() {
|
|||
can_irq_init(&_can, (&CAN::_irq_handler), (uint32_t)this);
|
||||
}
|
||||
|
||||
CAN::CAN(PinName rd, PinName td, int f) : _can(), _irq() {
|
||||
CAN::CAN(PinName rd, PinName td, int hz) : _can(), _irq() {
|
||||
// No lock needed in constructor
|
||||
|
||||
for (int i = 0; i < sizeof _irq / sizeof _irq[0]; i++) {
|
||||
_irq[i].attach(donothing);
|
||||
}
|
||||
|
||||
can_init_freq(&_can, rd, td, f);
|
||||
can_init_freq(&_can, rd, td, hz);
|
||||
can_irq_init(&_can, (&CAN::_irq_handler), (uint32_t)this);
|
||||
}
|
||||
|
||||
|
|
|
@ -116,9 +116,9 @@ public:
|
|||
*
|
||||
* @param rd the rd pin
|
||||
* @param td the td pin
|
||||
* @param f the bus frequency in hertz
|
||||
* @param hz the bus frequency in hertz
|
||||
*/
|
||||
CAN(PinName rd, PinName td, int f);
|
||||
CAN(PinName rd, PinName td, int hz);
|
||||
|
||||
virtual ~CAN();
|
||||
|
||||
|
|
Loading…
Reference in New Issue