I found a bug in the code. When trig event source is selected as AC Trig, it didn't generate any events. I looked through the manual and found the address of the AcTrigMap, and found that the Mask and Shift are not correct.
Macros AcTrigMap_EvtMASK and AcTrigMap_EvtSHIFT are corrected.
After this fix, I added the feature to allow external synchronization sources for the AC trig, in another commit.
After these changes, I tested them and they worked.
I found a bug in the code. When trig event source is selected as AC Trig, it didn't generate any events. I looked through the manual and found the address of the AcTrigMap, and found that the Mask and Shift are not correct. Macros AcTrigMap_EvtMASK and AcTrigMap_EvtSHIFT are corrected. After this fix, I added the feature to allow external synchronization sources for the AC trig, in another commit. After these changes, I tested them and they worked.