STM8S/A Standard Peripherals Firmware Library: stm8_128_eval.c File Reference

STM8S/A

stm8_128_eval.c File Reference

This file provides firmware functions to manage Leds, push-buttons and COM ports available on STM8S Evaluation Boards from STMicroelectronics. More...

#include "stm8_128_eval.h" #include "stm8s_spi.h"
#include "stm8s_i2c.h"
#include "stm8s_clk.h"

Go to the source code of this file.

Functions

void SD_LowLevel_DeInit (void)
 DeInitializes the SD/SD communication.
void SD_LowLevel_Init (void)
 Initializes the SD_SPI and CS pins.
void sEE_LowLevel_DeInit (void)
 DeInitializes peripherals used by the I2C EEPROM driver.
void sEE_LowLevel_Init (void)
 Initializes peripherals used by the I2C EEPROM driver.
void STM_EVAL_LEDInit (Led_TypeDef Led)
 Configures LED GPIO.
void STM_EVAL_LEDOff (Led_TypeDef Led)
 Turns selected LED Off.
void STM_EVAL_LEDOn (Led_TypeDef Led)
 Turns selected LED On.
void STM_EVAL_LEDToggle (Led_TypeDef Led)
 Toggles the selected LED.
uint8_t STM_EVAL_PBGetState (Button_TypeDef Button)
 Returns the selected Button state.
void STM_EVAL_PBInit (Button_TypeDef Button, ButtonMode_TypeDef Button_Mode)
 Configures Button GPIO and EXTI Line.

Variables

const uint8_t BUTTON_EXTI [BUTTONn]
const uint8_t BUTTON_PIN [BUTTONn]
GPIO_TypeDefBUTTON_PORT [BUTTONn]
const uint8_t LED_PIN [LEDn]
GPIO_TypeDefLED_PORT [LEDn]

Detailed Description

This file provides firmware functions to manage Leds, push-buttons and COM ports available on STM8S Evaluation Boards from STMicroelectronics.

Author:
MCD Application Team
Version:
V1.0.1
Date:
30-September-2014 Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file stm8_128_eval.c.

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com