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

Can you please export following defines/macros? #554

Open
Harvie opened this issue Oct 3, 2020 · 2 comments
Open

Can you please export following defines/macros? #554

Harvie opened this issue Oct 3, 2020 · 2 comments

Comments

@Harvie
Copy link

Harvie commented Oct 3, 2020

Hello,
i have developed module which adds multithreaded event loop functionality to mgos ( see #537 ). And it seems to work great!
But i had to copypaste following mongoose defines from .c files, because they cannot be included in the form of header files. Can you please export following defines in some header file, so i can include it directly rather than copypasting to my module?

#define MGOS_TASK_PRIORITY 5
#define STACK_SIZE_UNIT 1
#define MGOS_TASK_QUEUE_LENGTH 32
#define MGOS_TASK_STACK_SIZE_BYTES 8192

#define YIELD_FROM_ISR(should_yield)        \
  {                                         \
    if (should_yield) portYIELD_FROM_ISR(); \
  }

(YIELD_FROM_ISR is not really critical i guess... as i can just call portYIELD_FROM_ISR() directly in my module)

Thanks!

@Harvie
Copy link
Author

Harvie commented Oct 28, 2020

@rojer Can you please help with exporting these defines?

@Harvie
Copy link
Author

Harvie commented Nov 4, 2020

I made a pull request, can you please merge it?
mongoose-os-libs/freertos#2

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