Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

Raspberry PI - hot to access I/O Pins , UART , SPI , I2C from CodeTyphon App 2 years 9 months ago #16703

  • Tonko1
  • Tonko1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
Hi,
I'm learning how to use CT on raspberry PI with Cross compiling on Windows PC.
I can Cross Compile application on WIN-PC and I can run it on Raspberry.
Now I want to communicate over USART and I want to control I/O pins.
Can somenody please sugest me how to acces hardware perpipherals on Raspberry PI.

 Thanks

Please Log in or Create an account to join the conversation.

Raspberry PI - hot to access I/O Pins , UART , SPI , I2C from CodeTyphon App 2 years 3 weeks ago #17376

  • Vlad Wilhelm
  • Vlad Wilhelm's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 34
  • Thank you received: 2
working with uart is no different from working with ms windows serial ports. use the standard SerOpen, SerSetParams, SerClose, etc. from the Serial library.
work with GPIO is carried out through files in /sys/class/gpio/

an example of work in the attachment
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Vlad Wilhelm.
  • Page:
  • 1