diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-03-31 15:13:55 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-03-31 15:13:55 +0000 |
commit | 4bc04c7835daccf943dbe299a7f79f9c33e16032 (patch) | |
tree | 2c4b7bf8166b8553e4e6526d280a50183c72fcf5 /os/ports/GCC/ARMCMx/nvic.c | |
parent | 77ae91f021782bad36ba0106d65b2e2eb1249a21 (diff) | |
download | ChibiOS-4bc04c7835daccf943dbe299a7f79f9c33e16032.tar.gz ChibiOS-4bc04c7835daccf943dbe299a7f79f9c33e16032.tar.bz2 ChibiOS-4bc04c7835daccf943dbe299a7f79f9c33e16032.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1820 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports/GCC/ARMCMx/nvic.c')
-rw-r--r-- | os/ports/GCC/ARMCMx/nvic.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/os/ports/GCC/ARMCMx/nvic.c b/os/ports/GCC/ARMCMx/nvic.c index 67551ec1d..5b0dd9782 100644 --- a/os/ports/GCC/ARMCMx/nvic.c +++ b/os/ports/GCC/ARMCMx/nvic.c @@ -18,8 +18,9 @@ */
/**
- * @file ARMCMx/nvic.c
- * @brief Cortex-Mx NVIC support code.
+ * @file ARMCMx/nvic.c
+ * @brief Cortex-Mx NVIC support code.
+ *
* @addtogroup ARMCMx_NVIC
* @{
*/
@@ -31,7 +32,7 @@ * @brief Sets the priority of an interrupt handler and enables it.
*
* @param n the interrupt number
- * @param prio the interrupt priority
+ * @param prio the interrupt priority mask
*
* @note The parameters are not tested for correctness.
*/
@@ -61,13 +62,14 @@ void NVICDisableVector(uint32_t n) { * @brief Changes the priority of a system handler.
*
* @param handler the system handler number
- * @param prio the system handler priority
+ * @param prio the system handler priority mask
* @note The parameters are not tested for correctness.
*/
void NVICSetSystemHandlerPriority(uint32_t handler, uint32_t prio) {
unsigned sh = (handler & 3) * 8;
- SCB_SHPR(handler >> 2) = (SCB_SHPR(handler >> 2) & ~(0xFF << sh)) | (prio << sh);
+ SCB_SHPR(handler >> 2) = (SCB_SHPR(handler >> 2) &
+ ~(0xFF << sh)) | (prio << sh);
}
/** @} */
|