To use the FLAG pins in ADSP-2156x, it is necessary to enable the PINMUX and then program the pins as below:
sysreg_bit_set(sysreg_FLAGS, 0x2); // Enable FLG0O as Output
sysreg_bit_set(sysreg_FLAGS, 0x1); // FLAG0 pin as high
To use the FLAG pins in ADSP-2156x, it is necessary to enable the PINMUX and then program the pins as below:
sysreg_bit_set(sysreg_FLAGS, 0x2); // Enable FLG0O as Output
sysreg_bit_set(sysreg_FLAGS, 0x1); // FLAG0 pin as high