Files
FreeRTOS_LoRa_Environment_A…/STM32/Environment_Node/Drivers/LED.h

19 lines
563 B
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* 添加一个防止头文件重复包含的代码if not define如果没有定义该字符串那么就先定义一个 */
#ifndef __LED_H__
#define __LED_H__
#include "stm32f10x.h" // Device header
/* PC13LED的设置 */
#define LED_PC13_GPIO_CLOCK RCC_APB2Periph_GPIOC
#define LED_PC13_GPIO_PORT GPIOC
#define LED_PC13_GPIO_PIN GPIO_Pin_13
/* 变量声明 */
void vPc13LedInit(void);
void vPc13LedOn(void);
void vPc13LedOff(void);
void vPc13LedTurn(void);
#endif