3

I am learning assembly language programming in Raspberry Pi 2 model B. I know about Code::Blocks and gdb. Using assembly language the processor's register can be controlled, but I want to control the peripheral's registers (BCM2835 peripheral) because I need to control interrupts.

Can any one suggest, is it possible?

Greenonline
  • 2,969
  • 5
  • 27
  • 38
vivek
  • 97
  • 1
  • 7

1 Answers1

1

I expect your terminology is incorrect.

If you want to control interrupts you will either have to go bare metal or write a Linux kernel driver.

If you use Raspbian from userland you can not "control" interrupts. However you can request a callback when an interrupt happens.

Do you want to use interrupts to control peripherals? To do what?

joan
  • 71,852
  • 5
  • 76
  • 108