Rename the f parameter into hz to avoid confusion with a loopcounter

pull/4165/head
adustm 2017-05-16 10:37:50 +02:00
parent a769d2b6a5
commit b6581d317c
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View File

@ -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();