This commit is contained in:
2026-04-23 10:50:18 +08:00
commit a436fda935
844 changed files with 272643 additions and 0 deletions

34
IAPV1.1/Driver/led/led.h Normal file
View File

@ -0,0 +1,34 @@
#ifndef __LED_H
#define __LED_H
#include "sys.h"
#include "general_type.h"
#include "stm32l1xx.h"
#include "stm32l1xx_gpio.h"
#include "stm32l1xx_rcc.h"
void LED_Init(void);//<2F><>ʼ<EFBFBD><CABC>
#define LED1_PORT 1
#define LED1_RUN(sts) (sts?( GPIOA->ODR |= (unsigned int)(1<<LED1_PORT) ):( GPIOA->ODR &= ~((unsigned int)(1<<LED1_PORT) )))
void led_on(u8 num);
void Run_Led(int i);
#endif