20260324
This commit is contained in:
34
IAPV1.1/Driver/led/led.h
Normal file
34
IAPV1.1/Driver/led/led.h
Normal 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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user