/*********************************************************************************************/

*

-ƣGPIOʹù̼LED
-ʵƽ̨: ҰSTM32 Ե  

 ܼ飺
GPIOߵ͵ƽLEDƵʵˮƵЧ

 ʵ
벢س򵽿壬λLEDƻԺ----------˳򷴸˸

/*********************************************************************************************/

* ŷ

LED
ԵV1װ壺
PB5 
PB0 ̵
PB1 
͵ƽ ʵλڰ½ǰɫɫD3˿ӡ

ԵV2װ壺
PB5 
PB0 ̵
PB1 
͵ƽ  ʵλڰ½ǰɫɫD6˿ӡиJ73ñΪӵ3.3V

/*********************************************************************************************/

*

< bsp_led.h > 

	1.궨LEDƶӦGPIO˿ڣGPIOʱӣGPIO
	2.LEDĳ״̬״̬תҲֱӶɺ
	3.ѿRGBƵĲͬ״̬ͬɫӦ״̬ɺ



< bsp_led.c >     

- LED GPIOʼ

	1.ýṹ
	2.GPIOӦʱ
	3.šģʽٶ
	4.ʼGPIO趨 GPIO
	5.رеLED

< main.c >

	1.LED GPIOʼʼLED˿
	2.LED

/*********************************************************************************************/

GPIOĴ STM32οֲ-p75

1˿õͼĴ(GPIOx_CRL)(x = A...E)
2˿ø߼Ĵ(GPIOx_CRH)(x = A...E)

3˿ݼĴ(GPIOx_IDR)(x = A...E)
   ЩλΪֻֻ(16λ)ʽֵΪӦI/Oڵ״̬
   
4˿ݼĴ(GPIOx_ODR)(x = A...E)
   ֻ(16bit)ʽλֵȫ0д00д11
   
5˿λ/Ĵ(GPIOx_BSRR)(x = A...E)
   16bitд1016bitд1λͬʱд1Ļ16biЧ
   
6˿λĴ(GPIOx_BRR)(x = A...E)
   16λд1λ
   
7˿Ĵ(GPIOx_LCKR)(x = A...E)

GPIOģʽ
typedef enum
{ GPIO_Mode_AIN = 0x0,            /* ģ */   
  GPIO_Mode_IN_FLOATING = 0x04,   /* 룬λ״̬ */
  GPIO_Mode_IPD = 0x28,           /*  */
  GPIO_Mode_IPU = 0x48,           /*  */
  GPIO_Mode_Out_OD = 0x14,        /* © */
  GPIO_Mode_Out_PP = 0x10,        /*  */
  GPIO_Mode_AF_OD = 0x1C,         /* ÿ© */
  GPIO_Mode_AF_PP = 0x18          /*  */
}GPIOMode_TypeDef;




/*********************************************************************************************/

* ϵ

-Ұ  :https://embedfire.com
-Ұ̳  :http://www.firebbs.cn
-Ұ̳  :https://yehuosm.tmall.com/
-Ұ :http://doc.embedfire.com/products/link

/*********************************************************************************************/