Deep power down mode in LPC17xx
Yes - after configuring the power/sleep mode you have to issue a WFE or WFI instruction to make the MCU enter the desired sleep mode.

You are not including CMSIS headers (eg. cmsis_gcc.h or another, it probably has to be included via another file like core_cm3.h).

You can also simply use:

asm("wfe");