Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4821

C/C++ • Re: What are the Linux interrupt numbers for peripherals?

$
0
0
https://github.com/raspberrypi/linux/bl ... #L104-L167

thats the interrupt numbers within the RP1 chip
you then need to properly configure the RP1 irq controller, and the irq's you unmask will be forwarded over pcie, and show up as a single irq

then you need to configure the pcie and gic to allow that into the arm core

if running linux, then most of that is done for you, and you just need to use the right constant in device-tree
I am using the default raspian.

Could you explain the device tree more? I was interested in writing a Linux kernel module and planned on just using the kernel IRQ function to register a function handle and enable the interrupt.

Also for the PWM peripheral setup, would I just write to the registers directly to set it up using the RP1 datasheet or is there a Linux function call I would make?

I see the GPIO the interrupt system is already setup(I think) but I'm not sure if PWM driver allows for all the functionality on the chip.

Statistics: Posted by Arkas — Tue Apr 02, 2024 1:39 am



Viewing all articles
Browse latest Browse all 4821

Trending Articles