/**
*   @file      hal_f4xx.h
*   @author    IPC - Industrial BU
*   @date      16 september 2013
*   @brief     This code includes exported items for Background task
*   @note      (C) COPYRIGHT 2013 STMicroelectronics
*
* @attention
* THE PRESENT SOFTWARE 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 SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*
*/
#include "stdint.h"
#ifndef HAL_F4XX_H
#define HAL_F4XX_H

/*******************************************************************************
* INCLUDE FILES:
*******************************************************************************/

/** @addtogroup GENERIC
  * @{
  */


/*******************************************************************************
* CONSTANTS & MACROS:
*******************************************************************************/
#define HAL_USART_ENABLE_RX     0x01
#define HAL_USART_DISABLE_RX    0x02
#define HAL_USART_ENABLE_TX     0x04
#define HAL_USART_DISABLE_TX    0x08

#define RTC_ASYNCH_PREDIV  0x7F   /* LSE as RTC clock */
#define RTC_SYNCH_PREDIV   0x00FF /* LSE as RTC clock */

#define WDG_WINDOW              120
#define WDG_COUNTER             127 
/*******************************************************************************
* TYPES:
*******************************************************************************/


/*******************************************************************************
* GLOBAL VARIABLES:
*******************************************************************************/

/*******************************************************************************
* FUNCTIONS:
*******************************************************************************/



void HAL_SFLASH_Conf(void);
void HAL_SFLASH_SSOutputCmd(uint8_t enable);
uint8_t HAL_SFLASH_SendByte(uint8_t byte);



void HAL_SpiRxStart(uint16_t len,uint8_t* pData);
void HAL_SpiTxStart(uint16_t len,uint8_t* pdata);
void HAL_SpiReqpin(uint8_t enable);




/**
  * @}
  */

#endif /* HAL_F4XX_H */

/* End Of File */
