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

core: kernel: improved doxygen documentation #977

Merged
merged 1 commit into from
May 20, 2014
Merged

core: kernel: improved doxygen documentation #977

merged 1 commit into from
May 20, 2014

Conversation

mehlis
Copy link
Contributor

@mehlis mehlis commented Apr 6, 2014

there is no doxygen warning for this file

@mehlis mehlis changed the title core: irq: improved doxygen documentation core: kernel: improved doxygen documentation Apr 6, 2014
/**
* @def PRIORITY_MIN
* @brief Minimal priority a thread can have
*/
#define PRIORITY_MIN SCHED_PRIO_LEVELS-1
Copy link
Contributor

Choose a reason for hiding this comment

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

Please put this in parens while you're at it.

@OlegHahm OlegHahm added arm and removed arm labels Apr 6, 2014
@mehlis
Copy link
Contributor Author

mehlis commented Apr 9, 2014

@ALL I need help to document some defines in kernel.h

@OlegHahm OlegHahm self-assigned this Apr 9, 2014
@mehlis mehlis added this to the Release 2014.04 milestone Apr 11, 2014
#define PRIORITY_MAIN (PRIORITY_MIN - (SCHED_PRIO_LEVELS/2))

/**
* @def LPM_PREVENT_SLEEP_UART
* @brief ???
Copy link
Member

Choose a reason for hiding this comment

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

e.g. @brief Bitmask to use with lpm_prevent_sleep in power management.

@mehlis
Copy link
Contributor Author

mehlis commented May 2, 2014

@OlegHahm can you review?

extern volatile int lpm_prevent_sleep;

/**
* @brief Variable sysconfig defined externally
Copy link
Member

Choose a reason for hiding this comment

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

I don't think there's a reason to say that it is defined externally:
1.) It should be obvious that one does not define variables in header files.
2.) It says extern one line below.

The sysconfig variable however is used to store system configuration (like node's ID, name, default channel and so on.)

@OlegHahm
Copy link
Member

Anything else were you need help?

@mehlis
Copy link
Contributor Author

mehlis commented May 15, 2014

updated, rebased, please review again, PR is mergeable from my side

@Kijewski
Copy link
Contributor

I commented on the commit again. -_- Sorry.

@OlegHahm OlegHahm assigned haukepetersen and unassigned OlegHahm May 15, 2014
@mehlis
Copy link
Contributor Author

mehlis commented May 16, 2014

@Kijewski noooo, but I can show you how it works, again :)

@OlegHahm
Copy link
Member

ACK

@OlegHahm
Copy link
Member

Still WIP?

@Kijewski
Copy link
Contributor

Please amend disableIRQ() and enableIRQ(): The return value should not interpreted as a boolean value. The actual value is only significant for restoreIRQ().

@Kijewski
Copy link
Contributor

Otherwise the files look good. 👍

@mehlis
Copy link
Contributor Author

mehlis commented May 18, 2014

@Kijewski what do you want me to change?

can we merge this now?

@OlegHahm OlegHahm removed the WIP label May 18, 2014
@thomaseichinger
Copy link
Member

I think what @Kijewski means is to mention in the docs that the return values of disableIRQ() and enableIRQ() are only useful to restoreIRQ() since they do not indicate success or error.
And while you are at it, maybe also mention for enableIRQ() that it should be used in favour to eINT as it is done for disableIRQ() and dINT.

Otherwise I think you are good to go.

@mehlis
Copy link
Contributor Author

mehlis commented May 20, 2014

@Kijewski & @thomaseichinger updated to match your comments

also added param[in] to irq.h and fix order of doxygen endguards
@thomaseichinger
Copy link
Member

ACK & GO

thomaseichinger added a commit that referenced this pull request May 20, 2014
core: kernel: improved doxygen documentation
@thomaseichinger thomaseichinger merged commit 1e12d58 into RIOT-OS:master May 20, 2014
@mehlis mehlis deleted the doxygen-irq branch May 26, 2014 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: doc Area: Documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants