First Post
This is my first blog post on embedded systems.
I got to blink an LED using my Raspberry Pi’s GPIO pins. Used Chatgpt to write C code to access the correct memory address and registers. It accessed /dev/mem which is a special file that represents the physical memory space of the system. open() had to take a bitmask of O_RDWR | O_SYNC which is a way of saying read+write AND sync, meaning don’t return until the write has been physically completed. Learnt that those registers are a means of communication with the IO device, as opposed to memory locations that describe the state of the device. This is to say that the register is used as a means of communcation between the device and the hardware, kind of how a button doesnt show that it has been pressed a second earlier. This is cool! I’m used to just working with memory for coding.