AQ32: fix the horizon spinning problem with newer compilers
  add volatile keywords to prevent compiler from reordering critical instructions.