forked from Imagelibrary/rtems
bsp/tms570: Remove double pin configuration
Do not set pins to the default function before the actual setting is applied. If a pin setting needs to be done in a certain order, then this should be done explicitly through multiple calls to tms570_bsp_pinmmr_config(). Update #4982.
This commit is contained in:
committed by
Sebastian Huber
parent
b995211907
commit
39fd4b142e
@@ -182,16 +182,6 @@ tms570_bsp_pinmmr_config(const uint32_t *pinmmr_values, int reg_start, int reg_c
|
||||
pval = pinmmr_values;
|
||||
cnt = reg_count;
|
||||
|
||||
do {
|
||||
*pinmmrx = *pinmmrx & *pval;
|
||||
pinmmrx++;
|
||||
pval++;
|
||||
} while( --cnt );
|
||||
|
||||
pinmmrx = (&TMS570_IOMM.PINMUX.PINMMR0) + reg_start;
|
||||
pval = pinmmr_values;
|
||||
cnt = reg_count;
|
||||
|
||||
do {
|
||||
*pinmmrx = *pval;
|
||||
pinmmrx++;
|
||||
|
||||
Reference in New Issue
Block a user