This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Bug in Motorware hal.h for boostxldrv8301_revB

I couldn't find bug submit form so I hope it's alright to post here.

Starting around line 700 (I know I've added some lines so it's probably not exact) in hal.h for the boostxldrv8301_revB is the function HAL_toggleGpio.  I've pasted the function that I see below:

//! \brief Toggles the GPIO pin
//! \details Takes in the enumeration GPIO_Number_e and toggles that GPIO
//! pin.
//! \param[in] handle The hardware abstraction layer (HAL) handle
//! \param[in] gpioNumber The GPIO number
static inline void HAL_toggleGpio(HAL_Handle handle,const GPIO_Number_e gpioNumber)
{
HAL_Obj *obj = (HAL_Obj *)handle;


// set GPIO high
GPIO_toggle(obj->gpioHandle,gpioNumber);

return;
} // end of HAL_setGpioHigh() function

It sounds like this function is supposed to pulse the GPIO pin but it is the exact same code that is found in the function HAL_setGpioHigh that is defined 2 functions prior in hal.h.  My guess is that the person writing the file just copied setGpioHigh and forgot to add the toggle part of the function.