Compare commits

..

No commits in common. "3482a25afcebcf1819d0eaea9de7fa2e2723ed20" and "0a5b9635bb1352d5eb762a8d0941d94a57049482" have entirely different histories.

1 changed files with 3 additions and 36 deletions

View File

@ -21,40 +21,7 @@ void main(void)
SYSCTL_RCC_R &= ~(1 << 20); SYSCTL_RCC_R &= ~(1 << 20);
SYSCTL_RCGC0_R |= 0x00100000; SYSCTL_RCGC0_R |= 0x00100000;
SYSCTL_RCGCPWM_R = 0x3; SYSCTL_RCGCPWM_R = 0x3;
//SYSCTL_RCGC2_R |= 0x20; SYSCTL_RCGC2_R |= 0x20;
//GPIO_PORTF_DEN_R= 0x1F; GPIO_PORTF_DEN_R= 0x1F;
//GPIO_PORTF_DIR_R= 0x0E; GPIO_PORTF_DIR_R= 0x0E;
GPIOF_config();
GPIOF_Interrupt_config();
GPIO_PORTF_AFSEL_R |= 0x02;
GPIO_PORTF_PCTL_R |= 0x50;
PWM1_2_CTL_R= 0x00000000;
PWM1_2_GENB_R |= 0x80E;
PWM1_2_LOAD_R = 0xA0;
PWM1_2_CMPB_R = 0x50;
PWM1_2_CTL_R |=0x01;
PWM1_ENABLE_R |=(1<<5);
while(1);
} }