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

Queue feature, compile error - Dynimical Library issue. #1018

Closed
Darma opened this issue Jun 7, 2016 · 4 comments · Fixed by #1019

Comments

@Darma
Copy link

commented Jun 7, 2016

Hi,

I am working around to use Queue-ing feature of the Photon Firmware, from both latest and development branch.

For example:

os_queue_t my_queue; 
os_queue_create( &my_queue, 10, 10);

when compile I get following error message:

.. undefined reference to `os_queue_create'`

It seems like the source code is already in the relevant files:

/firmware/hal/inc/concurrent_hal.h
/firmware/hal/src/stm32f2xx/concurrent_hal.cpp

But it looks like it's not implemented (linked) in the dynamical library hal_dynalib_concurrent.h file. At least current development branch.

/firmware/hal/inc/hal_dynalib_concurrent.h

Question:

  • How can or do I use Queue (os_queue*) functions?

Completeness:

  • Minimum test case added
  • Device, system and user firmware versions stated
  • Particle confirmed
@m-mcgowan

This comment has been minimized.

Copy link
Contributor

commented Jun 7, 2016

Thanks for bringing this up! At present the queues are intended only for use by the system, since it's quite a low-level interface. I can add that low-level interface to the dynalib for the 0.6.0 release, and then we'll add a high-level wiring Queue interface for 0.7.0

@m-mcgowan m-mcgowan referenced this issue Jun 7, 2016
4 of 4 tasks complete
@m-mcgowan

This comment has been minimized.

Copy link
Contributor

commented Jun 7, 2016

Please see the PR above - you can pull that into your local working copy. Then recompile system-part2 and flash that to your device, then recompile the app and the low-level queue interface will be available.

@m-mcgowan m-mcgowan added this to the 0.6.x milestone Jun 10, 2016

@Darma

This comment has been minimized.

Copy link
Author

commented Jun 20, 2016

Hey thanks @m-mcgowan , when will 0.6.x released? Any time estimation?

@aeris-ming

This comment has been minimized.

Copy link

commented Jul 16, 2018

Please update document If you guys do not want to export Free RT-OS API.
My suggestion is follow GUN style not stupid Aduino.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.