the two ways of using GPIO peripheral
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-11-05 6:03 AM
Hello,
I am working with stm32mp157c-dk2
I have read the GPIO related parts in documents and wiki. I have also used GPIO from M4 side.
Are the following statements correct ?
Discovery board STM32MP157C-DK2 has two types of GPIOs connector:
- GPIO 40 pins connectors
- Arduino™ Uno connectors
There are two ways to use them;
- configure the required GPIO pins in c code and use it on M4 side
- configure device tree for the required GPIO pins, recompile linux and use it from A7 (linux) side
this is what I have understand from the documents. Did I understand correctly ?
Is something false or missing in the statements ?
Labels:
- Labels:
-
STM32MP15 Lines
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-11-05 6:29 PM
Things to add:
- There are also LD5~LD8 LEDs and USER 1 and USER 2 buttons that you can configure.
- You don't need to recompile Linux but device tree.
- If you are NOT using associated peripherals but just simple GPIO operations only, you don't even need to touch the device tree. You can control them using /sys/class/gpio .
