STM8S/A Standard Peripherals Firmware Library
|
This file contains definitions for STM8_128_EVAL's Leds, push-buttons and COM ports hardware resources. More...
#include "stm8s_eval.h"
Go to the source code of this file.
Defines | |
#define | BUTTONn 6 |
#define | DOWN_BUTTON_EXTI_PORT EXTI_PORT_GPIOB |
#define | DOWN_BUTTON_PIN GPIO_PIN_7 |
#define | DOWN_BUTTON_PORT GPIOB |
Joystick Down push-button. | |
#define | KEY_BUTTON_EXTI_PORT EXTI_PORT_GPIOC |
EXTI push-button definition. | |
#define | KEY_BUTTON_PIN GPIO_PIN_0 |
#define | KEY_BUTTON_PORT GPIOC |
Key push-button. | |
#define | LED1_GPIO_PIN GPIO_PIN_3 |
#define | LED1_GPIO_PORT GPIOH |
#define | LED2_GPIO_PIN GPIO_PIN_2 |
#define | LED2_GPIO_PORT GPIOH |
#define | LED3_GPIO_PIN GPIO_PIN_1 |
#define | LED3_GPIO_PORT GPIOH |
#define | LED4_GPIO_PIN GPIO_PIN_0 |
#define | LED4_GPIO_PORT GPIOH |
#define | LEDn 4 |
#define | LEFT_BUTTON_EXTI_PORT EXTI_PORT_GPIOB |
#define | LEFT_BUTTON_PIN GPIO_PIN_4 |
#define | LEFT_BUTTON_PORT GPIOB |
Joystick Left push-button. | |
#define | RIGHT_BUTTON_EXTI_PORT EXTI_PORT_GPIOB |
#define | RIGHT_BUTTON_PIN GPIO_PIN_5 |
#define | RIGHT_BUTTON_PORT GPIOB |
Joystick Right push-button. | |
#define | SD_CS_GPIO_PORT GPIOE |
#define | SD_CS_PIN GPIO_PIN_5 |
#define | SD_DETECT_GPIO_PORT GPIOE |
#define | SD_DETECT_PIN GPIO_PIN_4 |
#define | SD_SPI_CLK CLK_PERIPHERAL_SPI |
SD SPI Interface pins. | |
#define | SD_SPI_MISO_GPIO_PORT GPIOC |
#define | SD_SPI_MISO_PIN GPIO_PIN_7 |
#define | SD_SPI_MOSI_GPIO_PORT GPIOC |
#define | SD_SPI_MOSI_PIN GPIO_PIN_6 |
#define | SD_SPI_SCK_GPIO_PORT GPIOC |
#define | SD_SPI_SCK_PIN GPIO_PIN_5 |
#define | sEE_DIRECTION_RX 1 |
#define | sEE_DIRECTION_TX 0 |
#define | sEE_I2C I2C |
I2C EEPROM Interface pins. | |
#define | sEE_I2C_CLK CLK_PERIPHERAL_I2C |
#define | sEE_I2C_SCL_GPIO_PORT GPIOE |
#define | sEE_I2C_SCL_PIN GPIO_PIN_1 |
#define | sEE_I2C_SDA_GPIO_PORT GPIOE |
#define | sEE_I2C_SDA_PIN GPIO_PIN_2 |
#define | sEE_M24C64_32 |
#define | SEL_BUTTON_EXTI_PORT EXTI_PORT_GPIOD |
#define | SEL_BUTTON_PIN GPIO_PIN_7 |
#define | SEL_BUTTON_PORT GPIOD |
Joystick Sel push-button. | |
#define | UP_BUTTON_EXTI_PORT EXTI_PORT_GPIOB |
#define | UP_BUTTON_PIN GPIO_PIN_6 |
#define | UP_BUTTON_PORT GPIOB |
Joystick Up push-button. | |
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. |
Detailed Description
This file contains definitions for STM8_128_EVAL's Leds, push-buttons and COM ports hardware resources.
- 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.h.