mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
89 lines
3.5 KiB
C
89 lines
3.5 KiB
C
/*
|
|
******************************************************************************
|
|
*
|
|
* COPYRIGHT(c) 2020, China Mobile IOT
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without modification,
|
|
* are permitted provided that the following conditions are met:
|
|
* 1. Redistributions of source code must retain the above copyright notice,
|
|
* this list of conditions and the following disclaimer.
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
* this list of conditions and the following disclaimer in the documentation
|
|
* and/or other materials provided with the distribution.
|
|
* 3. Neither the name of China Mobile IOT nor the names of its contributors
|
|
* may be used to endorse or promote products derived from this software
|
|
* without specific prior written permission.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
|
|
/**
|
|
* @file cm32m101a_conf.h
|
|
* @author CMIOT
|
|
* @version v1.0.0
|
|
*
|
|
* @COPYRIGHT(c) 2020, China Mobile IOT. All rights reserved.
|
|
*/
|
|
#ifndef __CM32M101A_CONF_H__
|
|
#define __CM32M101A_CONF_H__
|
|
|
|
/* Uncomment/Comment the line below to enable/disable peripheral header file inclusion */
|
|
|
|
#include "cm32m101a_adc.h"
|
|
#include "cm32m101a_can.h"
|
|
#include "cm32m101a_comp.h"
|
|
#include "cm32m101a_crc.h"
|
|
#include "cm32m101a_dac.h"
|
|
#include "cm32m101a_dbg.h"
|
|
#include "cm32m101a_dma.h"
|
|
#include "cm32m101a_exti.h"
|
|
#include "cm32m101a_flash.h"
|
|
#include "cm32m101a_gpio.h"
|
|
#include "cm32m101a_i2c.h"
|
|
#include "cm32m101a_iwdg.h"
|
|
#include "cm32m101a_opamp.h"
|
|
#include "cm32m101a_pwr.h"
|
|
#include "cm32m101a_rcc.h"
|
|
#include "cm32m101a_rtc.h"
|
|
#include "cm32m101a_spi.h"
|
|
#include "cm32m101a_tim.h"
|
|
#include "cm32m101a_usart.h"
|
|
#include "cm32m101a_lpuart.h"
|
|
#include "cm32m101a_wwdg.h"
|
|
#include "cm32m101a_tsc.h"
|
|
#include "cm32m101a_lcd.h"
|
|
|
|
#include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */
|
|
|
|
/* Uncomment the line below to expanse the "assert_param" macro in the
|
|
Standard Peripheral Library drivers code */
|
|
/* #define USE_FULL_ASSERT 1 */
|
|
|
|
#ifdef USE_FULL_ASSERT
|
|
|
|
/**
|
|
* @brief The assert_param macro is used for function's parameters check.
|
|
* @param expr If expr is false, it calls assert_failed function which reports
|
|
* the name of the source file and the source line number of the call
|
|
* that failed. If expr is true, it returns no value.
|
|
*/
|
|
#define assert_param(expr) ((expr) ? (void)0 : assert_failed((const uint8_t*)#expr, (const uint8_t*)__FILE__, __LINE__))
|
|
|
|
void assert_failed(const uint8_t* expr, const uint8_t* file, uint32_t line);
|
|
#else
|
|
#define assert_param(expr) ((void)0)
|
|
#endif /* USE_FULL_ASSERT */
|
|
|
|
#endif /* __CM32M101A_CONF_H__ */
|