STM32库函数 error: #136: struct "<unnamed>" 问题

显示的报错:

../Core/Src/main.c(115): error:  #136: struct "<unnamed>" has no field "HAL_GPIO_WritePin"

WritePin函数的定义:

void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
{
  /* Check the parameters */
  assert_param(IS_GPIO_PIN(GPIO_Pin));
  assert_param(IS_GPIO_PIN_ACTION(PinState));

  if (PinState != GPIO_PIN_RESET)
  {
    GPIOx->BSRR = (uint32_t)GPIO_Pin;
  }
  else
  {
    GPIOx->BSRR = (uint32_t)GPIO_Pin << 16;
  }
}


是不是库函数没有更新的缘故?