STM8L15x Standard Peripherals Drivers: stm8l15x_rst.c File Reference

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

stm8l15x_rst.c File Reference

This file provides firmware functions to manage the following functionalities of the RST peripheral:

  • Flag management
  • NRST Pin configuration.
More...
#include "stm8l15x_rst.h"

Go to the source code of this file.

Defines

#define RST_CR_MASK   0xD0

Functions

void RST_ClearFlag (RST_FLAG_TypeDef RST_Flag)
 Clears the specified RST flag.
FlagStatus RST_GetFlagStatus (RST_FLAG_TypeDef RST_Flag)
 Checks whether the specified RST flag is set or not.
void RST_GPOutputEnable (void)
 Configures the reset pad as GP output.

Detailed Description

This file provides firmware functions to manage the following functionalities of the RST peripheral:

  • Flag management
  • NRST Pin configuration.
Author:
MCD Application Team
Version:
V1.5.0
Date:
13-May-2011
  *               
  *          ===================================================================
  *                               RST specific features
  *          ===================================================================
  *
  *           When a reset occurs, there is a reset phase from the external pin 
  *           pull-down to the internal reset signal release. During this phase,
  *           the microcontroller sets some hardware configurations before going
  *           to the reset vector.
  *           At the end of this phase, most of the registers are configured with
  *           their �reset state� values. 
  *           During the reset phase, some pin configurations may be different from
  *           their �reset state� configuration.
  *           
  *           The NRST pin is an input and can be configured as open-drain output
  *           using the RST_GPOutputEnable() function 
  *
  *  
Attention:

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2011 STMicroelectronics

Definition in file stm8l15x_rst.c.

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com