Reducing use of global pointers to DSP peripherals