[KINETIS] Fixed usage of port set/clear registers

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8427 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Fabio Utzig 2015-11-03 10:28:02 +00:00
parent 8f44f19e28
commit ad4a9e2fe3
1 changed files with 6 additions and 6 deletions

View File

@ -186,7 +186,7 @@ typedef struct {
*
* @notapi
*/
#define pal_lld_setport(port, bits) (port)->PSOR |= (bits)
#define pal_lld_setport(port, bits) (port)->PSOR = (bits)
/**
* @brief Clears a bits mask on a I/O port.
@ -199,7 +199,7 @@ typedef struct {
*
* @notapi
*/
#define pal_lld_clearport(port, bits) (port)->PCOR |= (bits)
#define pal_lld_clearport(port, bits) (port)->PCOR = (bits)
/**
* @brief Toggles a bits mask on a I/O port.
@ -212,7 +212,7 @@ typedef struct {
*
* @notapi
*/
#define pal_lld_toggleport(port, bits) (port)->PTOR |= (bits)
#define pal_lld_toggleport(port, bits) (port)->PTOR = (bits)
/**
* @brief Reads a group of bits.
@ -305,7 +305,7 @@ typedef struct {
*
* @notapi
*/
#define pal_lld_setpad(port, pad) (port)->PSOR |= ((uint32_t) 1 << (pad))
#define pal_lld_setpad(port, pad) (port)->PSOR = ((uint32_t) 1 << (pad))
/**
* @brief Clears a pad logical state to @p PAL_LOW.
@ -318,7 +318,7 @@ typedef struct {
*
* @notapi
*/
#define pal_lld_clearpad(port, pad) (port)->PCOR |= ((uint32_t) 1 << (pad))
#define pal_lld_clearpad(port, pad) (port)->PCOR = ((uint32_t) 1 << (pad))
/**
* @brief Toggles a pad logical state.
@ -331,7 +331,7 @@ typedef struct {
*
* @notapi
*/
#define pal_lld_togglepad(port, pad) (port)->PTOR |= ((uint32_t) 1 << (pad))
#define pal_lld_togglepad(port, pad) (port)->PTOR = ((uint32_t) 1 << (pad))
/**
* @brief Pad mode setup.