Simultaneous manufacturing of periphery and memory cells including different types of peripheral transistor