Bluecore Check Battery Voltage

Hi. I’m new to Bluecore, and rusty with C, so that’s two strikes against me.

I would like to check the voltage on AIO[0] every 30 seconds. According to the documentation, I need a function like:

void BatteryInit (BatteryState*, Task, AIO0, 30000)

I’m getting build errors:

main.c:768: error: parse error before “AIO0”

main.c: In function ‘BatteryInit’:

main.c:769: error: number of arguments doesn’t match prototype

Should “BatteryState*” be literally “BatteryState*” or something I customize? Same for “Task.”

Any other suggestions would be greatly appreciated. Thanks!