You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#include "led.h"
//////////////////////////////////////////////////////////////////////////////////
//������ֻ��ѧϰʹ�ã�δ���������ɣ��������������κ���;
//ALIENTEK STM32F407������
//LED��������
//����ԭ��@ALIENTEK
//������̳:www.openedv.com
//��������:2014/5/2
//�汾��V1.0
//��Ȩ���У������ؾ���
//Copyright(C) �������������ӿƼ�����˾ 2014-2024
//All rights reserved
//////////////////////////////////////////////////////////////////////////////////
//��ʼ��PF9��PF10Ϊ������.��ʹ���������ڵ�ʱ��
//LED IO��ʼ��
void LED_Init(void) { RCC->AHB1ENR|=1<<5;//ʹ��PORTFʱ��
GPIO_Set(GPIOF,PIN9|PIN10,GPIO_MODE_OUT,GPIO_OTYPE_PP,GPIO_SPEED_100M,GPIO_PUPD_PU); //PF9,PF10����
LED0=1;//LED0�ر�
LED1=1;//LED1�ر�
}
|