What programming language to use for programming pi

nsaspook

Joined Aug 27, 2009
16,323
Actually your post wanted him to use a certain OS type. Point is, regardless of the OS (not that the OS has a choice), it is possible and not difficult. On every OS that runs on the Pi.
I agree it's not difficult because someone (usually a systems programmer) has done most of the work in the OS to make applications programming easy. If someone wants to use a HLL for programming then the Linux OS is a good choice.
 
Last edited:

odm4286

Joined Sep 20, 2009
265
Actually your post wanted him to use a certain OS type. Point is, regardless of the OS (not that the OS has a choice), it is possible and not difficult. On every OS that runs on the Pi.
A little confused now. Can I write directly to the registers? Also, what is ioremap?
 

nsaspook

Joined Aug 27, 2009
16,323
A little confused now. Can I write directly to the registers? Also, what is ioremap?

ioremap is a Kernel function that allows code to access hardware through a mechanism called I/O mapped memory that's used in the Linux kernel or drivers. (device or protocol) Most Linux user programs use mmap with root access to open /dev/mem and mmap to map the region of physical memory into User space memory as needed. Then you can read and write to IO registers.

https://www.raspberrypi.org/forums/viewtopic.php?t=8476
 
Top