Fixed bug 3586230.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4815 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
gdisirio 2012-11-11 18:26:55 +00:00
parent 2002722c01
commit 3d1a187a6a
3 changed files with 4 additions and 2 deletions

View File

@ -268,7 +268,7 @@ typedef LPC_GPIO_TypeDef *ioportid_t;
* @notapi
*/
#define pal_lld_writepad(port, pad, bit) \
((port)->MASKED_ACCESS[(mask) << (pad)] = (bit) << (pad))
((port)->MASKED_ACCESS[1 << (pad)] = (bit) << (pad))
/**
* @brief Sets a pad logical state to @p PAL_HIGH.

View File

@ -268,7 +268,7 @@ typedef LPC_GPIO_TypeDef *ioportid_t;
* @notapi
*/
#define pal_lld_writepad(port, pad, bit) \
((port)->MASKED_ACCESS[(mask) << (pad)] = (bit) << (pad))
((port)->MASKED_ACCESS[1 << (pad)] = (bit) << (pad))
/**
* @brief Sets a pad logical state to @p PAL_HIGH.

View File

@ -82,6 +82,8 @@
*****************************************************************************
*** 2.5.1 ***
- FIX: Fixed error in palWritePad() macro (bug 3586230)(backported to 2.2.10
and 2.4.3).
- FIX: Fixed missing ; in testmbox.c (bug 3585979)(backported to 2.4.3).
- FIX: Fixed STM32F4xx: Wrong CAN1 SCE interrupt number definition (bug
3581571).