diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-04-23 20:53:26 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-04-23 20:53:26 +0000 |
commit | 010f8f1b07257938b44d032930919a061a03dbd0 (patch) | |
tree | 6c0b10e7787ff8af136226c8b330c97008674aa7 /os/hal/src/ext.c | |
parent | 86153d2f0a10355bc03c69b083fa3045c45a3da0 (diff) | |
download | ChibiOS-010f8f1b07257938b44d032930919a061a03dbd0.tar.gz ChibiOS-010f8f1b07257938b44d032930919a061a03dbd0.tar.bz2 ChibiOS-010f8f1b07257938b44d032930919a061a03dbd0.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4132 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src/ext.c')
-rw-r--r-- | os/hal/src/ext.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/os/hal/src/ext.c b/os/hal/src/ext.c index bd175d483..c53cd95fe 100644 --- a/os/hal/src/ext.c +++ b/os/hal/src/ext.c @@ -189,20 +189,17 @@ void extSetChannelModeI(EXTDriver *extp, chDbgCheck((extp != NULL) && (channel < EXT_MAX_CHANNELS) &&
(extcp != NULL), "extSetChannelModeI");
+ chDbgAssert(extp->state == EXT_ACTIVE,
+ "extSetChannelModeI(), #1", "invalid state");
+
/* Note that here the access is enforced as non-const, known access
violation.*/
oldcp = (EXTChannelConfig *)&extp->config->channels[channel];
- chSysLock();
-
- chDbgAssert(extp->state == EXT_ACTIVE,
- "extSetChannelModeI(), #1", "invalid state");
-
/* Overwiting the old channels configuration then the channel is reconfigured
by the low level driver.*/
*oldcp = *extcp;
ext_lld_channel_enable(extp, channel);
- chSysUnlock();
}
#endif /* HAL_USE_EXT */
|