FRDM-KL26Z_SC\FRDM-KL26Z_SC_Rev_1.0\klxx-sc-baremetal\src\cpu\arm_cm0.c 里的三个函数
void enable_irq (int irq)
void disable_irq (int irq)
void set_irq_priority (int irq, int prio)
copy到PE工程里不起作用。 求解决方法,
void TPM0_Init(void)
{
//enable_irq_backup(17); set_irq_priority_backup(17, 3);
TPM0_CNT = 0;
TPM0_MOD = 0x12C0;
TPM0_SC = TPM_SC_TOIE_MASK|TPM_SC_CMOD(1);
TPM0_C1SC = TPM_CnSC_MSB_MASK| TPM_CnSC_ELSB_MASK;
TPM0_C1V = 0x00;
TPM0_C2SC = TPM_CnSC_MSB_MASK| TPM_CnSC_ELSA_MASK;
TPM0_C2V = 0x00;
//TPM0_C1SC |= (1<<6);
//TPM0_C2SC |= (1<<6);
TPM0_SC |= (1<<6);
} |