The invention relates to compounds of formula (I)whereinX, Y, R1, R2, (R4)n, and (R5)mare as defined in the description, and to pharmaceutically acceptable salts of such compounds. These compounds are useful as calcium T-channel blockers.本發明係關於式(I)化合物其中X、Y、R1、R2、(R4)n及(R5)m係如說明書中所定義,及該等化合物之醫藥上可接受之鹽。該等化合物可用作鈣T通道阻斷劑。