Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Linux/BEAGLEBK: pin mode change after boot

$
0
0

Part Number:BEAGLEBK

Tool/software: Linux

Hi,

I have implemented a pwm on a pin. However the polarity is wrong on boot up. When setting up the pwm pin mode in the dts file selecting PIN_OUTPUT_PULLUP makes no difference. A possible solution is to program the pin as GPIO with pullup in the dts. Let the application change the mode to pwm and enable the pwm with 100% duty cycle. Can you direct me to any information to program the pin mode in runtime/ userspace

dts

AM33XX_IOPAD(0x950, PIN_OUTPUT_PULLUP | MUX_MODE3)     // pwm but boot up polarity wrong

or

AM33XX_IOPAD(0x950, PIN_OUTPUT_PULLUP | MUX_MODE7)     // programmed as gpio with polarity high, but how can I change the pin mode after boot?

best regards

other info

ti SDK 5.00.00.15

ti SDK 4.02.00.09

beaglebone black


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>