Simultaneous manufacturing of periphery and memory cells including only one type of peripheral transistor with a control gate layer also being used as part of the peripheral transistor