ADC DMA能读取
This commit is contained in:
@@ -13,11 +13,21 @@ leddef red;
|
||||
leddef green;
|
||||
leddef blue;
|
||||
|
||||
leddef led_m1;
|
||||
leddef led_m2;
|
||||
leddef led_m3;
|
||||
leddef led_m4;
|
||||
|
||||
void LED_Init(void)
|
||||
{
|
||||
LED_install(&red,"red",GPIOA,GPIO_Pin_7,0);
|
||||
LED_install(&green,"green",GPIOC,GPIO_Pin_4,0);
|
||||
LED_install(&blue,"blue",GPIOC,GPIO_Pin_5,0);
|
||||
|
||||
LED_install(&led_m1,"led_m1",GPIOA,GPIO_Pin_5,0);
|
||||
LED_install(&led_m2,"led_m2",GPIOA,GPIO_Pin_15,0);
|
||||
LED_install(&led_m3,"led_m3",GPIOD,GPIO_Pin_3,0);
|
||||
LED_install(&led_m4,"led_m4",GPIOA,GPIO_Pin_4,0);
|
||||
}
|
||||
|
||||
void LED_install(leddef *e,char *name,GPIO_TypeDef *GPIOx,uint16_t GPIO_Pin,uint8_t State)
|
||||
|
||||
Reference in New Issue
Block a user