STM8L15x Standard Peripherals Drivers: Refresh window and Counter configuration functions

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

Refresh window and Counter configuration functions

Refresh window and Counter configuration functions. More...

Functions

void WWDG_Init (uint8_t Counter, uint8_t WindowValue)
 Initializes the WWDG peripheral.
void WWDG_SetCounter (uint8_t Counter)
 Sets the WWDG counter value.
void WWDG_SetWindowValue (uint8_t WindowValue)
 Sets the WWDG window value.

Detailed Description

Refresh window and Counter configuration functions.

 ===============================================================================
              Refresh window and Counter configuration functions
 ===============================================================================  


Function Documentation

void WWDG_Init ( uint8_t  Counter,
uint8_t  WindowValue 
)

Initializes the WWDG peripheral.

This function set Window Register = WindowValue, Counter Register according to Counter and ENABLE WWDG

Parameters:
Counter: WWDG counter value
WindowValue: specifies the WWDG Window Register, range is 0x00 to 0x7F.
Return values:
None

Definition at line 113 of file stm8l15x_wwdg.c.

References BIT_MASK, IS_WWDG_WINDOW_LIMIT_VALUE, WWDG, WWDG_CR_WDGA, and WWDG_WR_RESET_VALUE.

void WWDG_SetCounter ( uint8_t  Counter)

Sets the WWDG counter value.

Parameters:
Counter,:specifies the watchdog counter value. This parameter must be a number between 0x40 and 0x7F (to prevent generating an immediate reset)
Return values:
None

Definition at line 150 of file stm8l15x_wwdg.c.

References BIT_MASK, IS_WWDG_COUNTER_VALUE, and WWDG.

void WWDG_SetWindowValue ( uint8_t  WindowValue)

Sets the WWDG window value.

Parameters:
WindowValue,:specifies the window value to be compared to the downcounter. This parameter value must be lower than 0x80.
Return values:
None

Definition at line 129 of file stm8l15x_wwdg.c.

References __IO, BIT_MASK, IS_WWDG_WINDOW_LIMIT_VALUE, and WWDG.

STM8S Firmware Library: Overview

 

 

 

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