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

Fix some refefinition issues #208

Closed
wants to merge 5 commits into from

Conversation

gmarull
Copy link
Member

@gmarull gmarull commented Apr 11, 2023

DNM

@sylvioalves
Copy link
Collaborator

@gmarull, please, rebase this when completed.

@gmarull gmarull force-pushed the bit-redefinition-2 branch 5 times, most recently from b0bc35e to 818dfce Compare April 12, 2023 14:59
#include "sys/param.h"
#include "freertos/FreeRTOS.h"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can remove the freertos.h include.

gmarull added 5 commits April 14, 2023 10:47
sys/param.h can't be used in Zephyr context, due to conflicts with
MIN/MAX definitions. Sort headers so that Zephyr ones come first (so we
avoid any potential conflicts with redefinitions).

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
When building for Zephyr, use sys/util.h.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
sys/param.h is not needed in some cases, in others, it conflicts with
Zephyr so let's use Zephyr sys/util.h.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
The EMPTY enumeration collides with Zephyr EMPTY definition. Rename to
EMPTY_STATE.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
The definition collides with Zephyr definition.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
@gmarull gmarull force-pushed the bit-redefinition-2 branch from 818dfce to e9c8665 Compare April 14, 2023 08:47
@gmarull gmarull closed this Sep 19, 2023
@gmarull gmarull deleted the bit-redefinition-2 branch September 19, 2023 07:51
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

Successfully merging this pull request may close these issues.

3 participants