sensor_2026/HARDWARE/LED/led.h

64 lines
1.3 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#ifndef __LED_H
#define __LED_H
#include "sys.h"
//////////////////////////////////////////////////////////////////////////////////
//本程序只供学习使用,未经作者许可,不得用于其它任何用途
//ALIENTEK STM32F407开发板
//LED驱动代码
//正点原子@ALIENTEK
//技术论坛:www.openedv.com
//创建日期:2014/5/2
//版本V1.0
//版权所有,盗版必究。
//Copyright(C) 广州市星翼电子科技有限公司 2014-2024
//All rights reserved
//////////////////////////////////////////////////////////////////////////////////
//LED端口定义
#define LED0 PFout(9) // DS0
#define LED1 PFout(10) // DS1
#define LLL_Pin GPIO_PIN_9
#define LLL_GPIO_Port GPIOE //左推杆正
#define L_D_Pin GPIO_PIN_13
#define L_D_GPIO_Port GPIOE //左推杆负
#define L_INT_Pin_Pin GPIO_PIN_4
#define L_INT_Pin_GPIO_Port GPIOE //左推杆中断
#define MMM_Pin GPIO_PIN_3
#define MMM_GPIO_Port GPIOB //中推杆正
#define M_D_Pin GPIO_PIN_14
#define M_D_GPIO_Port GPIOE //中推杆负
#define M_INT_Pin_Pin GPIO_PIN_5
#define M_INT_Pin_GPIO_Port GPIOE //中推杆中断
#define RRR_Pin GPIO_PIN_15
#define RRR_GPIO_Port GPIOD //右推杆正
#define R_D_Pin GPIO_PIN_15
#define R_D_GPIO_Port GPIOE //右推杆负
#define R_INT_Pin_Pin GPIO_PIN_6
#define R_INT_Pin_GPIO_Port GPIOE //右推杆中断
void LED_Init(void);//初始化
#endif