Required for the synthesis of glycogen. Expressed exclusively on media containing carbon sources that allow efficient sporulation. Belongs to the bacterial/plant glucose-1-phosphate adenylyltransferase family.