Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple definition of delay #7

Open
simon88 opened this issue Jul 12, 2022 · 0 comments
Open

Multiple definition of delay #7

simon88 opened this issue Jul 12, 2022 · 0 comments

Comments

@simon88
Copy link

simon88 commented Jul 12, 2022

Hi,
I got an error when I try to compiled for an SAMD21E17A multiple definition of delay conflit with delay.c in samd core and delay in FreeRTOSVariant.c

/*
 * override Arduino delay()
 */
extern void _real_delay(unsigned long ms);
void delay(unsigned long ms)
{
  if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED)
  {
    vTaskDelay(ms / portTICK_PERIOD_MS);
  }
  else
  {
    _real_delay(ms);
  }
}

If I renamed this function by delay2 for examle it's works but it's doesn't compile beceause delay2 was not declared in this scope...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant