led.c 208 B

123456789101112
  1. #include "led.h"
  2. #include "stm8l15x.h"
  3. void LED_Init()
  4. {
  5. GPIO_Init(LED1_GPIO_PORT, LED1_GPIO_PIN, GPIO_Mode_Out_PP_High_Fast);
  6. }
  7. void LED1_toggle()
  8. {
  9. GPIO_ToggleBits(LED1_GPIO_PORT,LED1_GPIO_PIN);
  10. }