Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
67428b58
Commit
67428b58
authored
11 years ago
by
Christian Mehlis
Browse files
Options
Downloads
Patches
Plain Diff
core: kernel: improved doxygen documentation
also added param[in] to irq.h and fix order of doxygen endguards
parent
05a3570f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
core/include/irq.h
+15
-4
15 additions, 4 deletions
core/include/irq.h
core/include/kernel.h
+51
-5
51 additions, 5 deletions
core/include/kernel.h
core/include/kernel_internal.h
+1
-1
1 addition, 1 deletion
core/include/kernel_internal.h
with
67 additions
and
10 deletions
core/include/irq.h
+
15
−
4
View file @
67428b58
...
@@ -29,13 +29,22 @@
...
@@ -29,13 +29,22 @@
*
*
* @note This function should be used in favour of dINT().
* @note This function should be used in favour of dINT().
*
*
* @return previous value of status register
* @return Previous value of status register. The return value should not
* interpreted as a boolean value. The actual value is only
* significant for restoreIRQ().
*
* @see restoreIRQ
*/
*/
unsigned
disableIRQ
(
void
);
unsigned
disableIRQ
(
void
);
/**
/**
* @brief This function clears the IRQ disable bit in the status register
* @brief This function clears the IRQ disable bit in the status register
* @return previous value of status register
*
* @note This function should be used in favour of eINT().
*
* @return Previous value of status register. The return value should not
* interpreted as a boolean value. The actual value is only
* significant for restoreIRQ().
*
*
* @see restoreIRQ
* @see restoreIRQ
*/
*/
...
@@ -44,10 +53,12 @@ unsigned enableIRQ(void);
...
@@ -44,10 +53,12 @@ unsigned enableIRQ(void);
/**
/**
* @brief This function restores the IRQ disable bit in the status register
* @brief This function restores the IRQ disable bit in the status register
* to the value contained within passed state
* to the value contained within passed state
* @param state state to restore
*
* @param[in] state state to restore
*
*
* @note This function should be used in favour of eINT().
* @note This function should be used in favour of eINT().
*
*
* @see enableIRQ
* @see disableIRQ
* @see disableIRQ
*/
*/
void
restoreIRQ
(
unsigned
state
);
void
restoreIRQ
(
unsigned
state
);
...
@@ -58,5 +69,5 @@ void restoreIRQ(unsigned state);
...
@@ -58,5 +69,5 @@ void restoreIRQ(unsigned state);
*/
*/
int
inISR
(
void
);
int
inISR
(
void
);
/** @} */
#endif
/* IRQ_H_ */
#endif
/* IRQ_H_ */
/** @} */
This diff is collapsed.
Click to expand it.
core/include/kernel.h
+
51
−
5
View file @
67428b58
...
@@ -13,7 +13,8 @@
...
@@ -13,7 +13,8 @@
* @file kernel.h
* @file kernel.h
* @brief Kernel compile time configuration
* @brief Kernel compile time configuration
*
*
* A int reboot(int mode) function is also provided (and used by core_panic() when needed).
* A reboot() function is also provided
* (and used by core_panic() when needed).
*
*
* @author Freie Universität Berlin, Computer Systems & Telematics
* @author Freie Universität Berlin, Computer Systems & Telematics
* @author Kaspar Schleiser <kaspar@schleiser.de>
* @author Kaspar Schleiser <kaspar@schleiser.de>
...
@@ -67,19 +68,60 @@
...
@@ -67,19 +68,60 @@
/* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */
/**
* @def PID_NULL
* @brief Identifier to detect an invalid PID
*/
#define PID_NULL -1
#define PID_NULL -1
#define PRIORITY_MIN SCHED_PRIO_LEVELS-1
/**
* @def PRIORITY_MIN
* @brief Least priority a thread can have
*/
#define PRIORITY_MIN (SCHED_PRIO_LEVELS-1)
/**
* @def PRIORITY_IDLE
* @brief Priority of the idle thread
*/
#define PRIORITY_IDLE PRIORITY_MIN
#define PRIORITY_IDLE PRIORITY_MIN
/**
* @def PRIORITY_MAIN
* @brief Priority of the main thread
*/
#define PRIORITY_MAIN (PRIORITY_MIN - (SCHED_PRIO_LEVELS/2))
#define PRIORITY_MAIN (PRIORITY_MIN - (SCHED_PRIO_LEVELS/2))
/**
* @def LPM_PREVENT_SLEEP_UART
* @brief This flag tells the kernel that the deepest power saving
* mode that currently can be used must still allow UART
* communication. Bitmask to use with `lpm_prevent_sleep`
* in power management.
*/
#define LPM_PREVENT_SLEEP_UART BIT2
#define LPM_PREVENT_SLEEP_UART BIT2
/**
* @def LPM_PREVENT_SLEEP_HWTIMER
* @brief This flag tells the kernel that the deepest power saving
* mode that currently can be used must still allow the hwtimer
* to run. Bitmask to use with `lpm_prevent_sleep` in power management.
*/
#define LPM_PREVENT_SLEEP_HWTIMER BIT1
#define LPM_PREVENT_SLEEP_HWTIMER BIT1
/**
* @brief This bitfield is used to configure which modules are
* currently active and prevent the kernel to go to the
* deepest power modes. It is used with `LPM_PREVENT_SLEEP_HWTIMER`
* and/or `LPM_PREVENT_SLEEP_UART`.
*/
extern
volatile
int
lpm_prevent_sleep
;
extern
volatile
int
lpm_prevent_sleep
;
/**
* @brief Variable used to store system configurationi
*
* @detail This contains e.g. the node ID, name, default channel and so on
*/
extern
config_t
sysconfig
;
extern
config_t
sysconfig
;
/* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */
...
@@ -95,7 +137,11 @@ extern config_t sysconfig;
...
@@ -95,7 +137,11 @@ extern config_t sysconfig;
*/
*/
int
reboot
(
int
mode
);
int
reboot
(
int
mode
);
#define RB_AUTOBOOT 0
/* << Reboot the system in the usual fashion */
/**
* @def RB_AUTOBOOT
* @brief Reboot the system in the usual fashion
*/
#define RB_AUTOBOOT 0
/** @} */
#endif
/* KERNEL_H_ */
#endif
/* KERNEL_H_ */
/** @} */
This diff is collapsed.
Click to expand it.
core/include/kernel_internal.h
+
1
−
1
View file @
67428b58
...
@@ -53,5 +53,5 @@ NORETURN void sched_task_exit(void);
...
@@ -53,5 +53,5 @@ NORETURN void sched_task_exit(void);
*/
*/
void
thread_print_stack
(
void
);
void
thread_print_stack
(
void
);
/** @} */
#endif
/* KERNEL_INTERNAL_H_ */
#endif
/* KERNEL_INTERNAL_H_ */
/** @} */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment