|
volatile S3C2450_IOPORT_REG *s2450IOP;
volatile S3C2450_PWM_REG *s2450PWM;
s2450IOP = (S3C2450_IOPORT_REG *)OALPAtoVA(S3C2450_BASE_REG_PA_IOPORT, FALSE);
s2450PWM = (S3C2450_PWM_REG *) OALPAtoVA(S3C2450_BASE_REG_PA_IOPORT,FALSE);
s2450IOP->GPBCON = s2450IOP->GPBCON & (~(3<<0))|(1<<0); //Tout0
s2450IOP->GPBUDP = s2450IOP->GPBUDP & (~(3<<0))|(2<<0); //pull_up enable
s2450IOP->GPBDAT = s2450->GPBDAT &(~(1<<0));
这样也不行 难道是没控制到? 可硬件是GPB0口(timer0),应该没问题的
|
|