/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) 2021 CW.
  * All rights reserved.</center></h2>
  *
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "interrupts_cw32l012.h"
#include "cw32l012_startkit.h"


/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */


/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */
/* USER CODE END ET */


/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */
/* USER CODE END EC */


/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

#define ADC_RETRIEVE_POLLING        0
#define ADC_RETRIEVE_INTERRUPTION   1

#define ADC_RETRIEVE_MODE           ADC_RETRIEVE_POLLING

#ifndef ADC_RETRIEVE_MODE
#define ADC_RETRIEVE_MODE ADC_RETRIEVE_POLLING
#endif

#define ADC_CONVERT_ONCE             0
#define ADC_CONVERT_CONTINUE         1

#define ADC_CONVERT_MODE             ADC_CONVERT_CONTINUE

#ifndef ADC_CONVERT_MODE
#define ADC_CONVERT_MODE             ADC_CONVERT_CONTINUE
#endif
/* USER CODE END EM */


/* Exported functions prototypes ---------------------------------------------*/
/* USER CODE BEGIN EFP */

/* USER CODE END EFP */


/* Private defines -----------------------------------------------------------*/
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */


#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */

/************************ (C) COPYRIGHT CW *****END OF FILE****/
