You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
207 lines
5.6 KiB
207 lines
5.6 KiB
////////////////////////////////////////////////////////////////////////////
|
|
///@copyright Copyright (c) 2017, ���ؿƼ� All rights reserved.
|
|
///-------------------------------------------------------------------------
|
|
/// @file hard_config.h
|
|
/// @brief hard config include
|
|
/// @info FILE FOR HARDWARE SETUP AND SOFTWARE SETUP///FOR EXAMPLE: BAORD ,MCU,IDE
|
|
/// @info YOU CAN CHANGE OR ADD THE DEFINE IF YOU NEED
|
|
/// @info ����Ƕ��ʽ��Ŀ����� ������ȷ�ϵ�·�� Ȼ��ȷ��cpu оƬ�ͺ� Ȼ��ȷ�ϱ����� ֮����������� �����Ӧ�ó���
|
|
/// @info bsp_CONFIG Ϊ����ͷ�ļ���ʼ�� TYPE_BOARD_xx
|
|
///-------------------------------------------------------------------------
|
|
/// @version 1.1
|
|
/// @author CC
|
|
/// @date 20180308
|
|
/// @note
|
|
/// @version 1.6
|
|
/// @author CC
|
|
/// @date 20190714
|
|
/// @note add TTSS_tick TYPE
|
|
/// @version 1.7
|
|
/// @author CC
|
|
/// @date 20191226
|
|
/// @note gsensor + 485
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
#ifndef _BSP_CONFIG0_H
|
|
#define _BSP_CONFIG0_H
|
|
#include <INTRINS.H>
|
|
|
|
#include "../clib/Type.h"
|
|
#include "../clib/bit.h"
|
|
#include "../ctask/task.h"
|
|
|
|
#include "../clib/clib.h"
|
|
////#define D_debug115200///
|
|
|
|
|
|
//#define D_cameralIndex 0
|
|
//#define D_cameralIndex 1
|
|
//#define D_cameralIndex 2
|
|
#define D_cameralIndex 3
|
|
//#define D_cameralIndex 4
|
|
//#define D_cameralIndex 5
|
|
|
|
|
|
#define SBIT_1 1 //1 stop bit
|
|
#define SBIT_2 2 //2 stop bit
|
|
|
|
|
|
#define BRT_115200 115200
|
|
#define BRT_19200 19200
|
|
#define BRT_9600 9600
|
|
#define BRT_4800 4800
|
|
#define BRT_SIM 900
|
|
#define MainFre_5M 0
|
|
#define MainFre_11M 1
|
|
#define MainFre_22M 2
|
|
#define MainFre_27M 3
|
|
#define MainFre_24M 4
|
|
#define MainFre_33M 5
|
|
#if 0
|
|
|
|
#define D_leda_OFF(); D_P35_OFF();
|
|
#define D_leda_ON(); D_P35_ON();
|
|
#define D_leda_REV(); D_P35_REV();
|
|
#define D_ledb_OFF(); D_P34_OFF();
|
|
#define D_ledb_ON(); D_P34_ON();
|
|
#define D_ledb_REV(); D_P34_REV();
|
|
|
|
#else
|
|
#define D_leda_OFF(); ///D_P35_OFF();
|
|
#define D_leda_ON(); ///D_P35_ON();
|
|
#define D_leda_REV(); ///D_P35_REV();
|
|
#define D_ledb_OFF(); ///D_P34_OFF();
|
|
#define D_ledb_ON(); ///D_P34_ON();
|
|
#define D_ledb_REV(); ///D_P34_REV();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 0
|
|
#define D_debug_sim
|
|
#endif
|
|
//#define D_iic_inspect
|
|
#define D_open_save_f
|
|
|
|
//>>>>>>>>>>>>>>>>>>>>>>.BORAD TYPE
|
|
//>>>>>>>>>>>>>>>>>>>>>>.BORAD TYPE
|
|
#define TYPE_BOARD_hhnew 1
|
|
#define TYPE_BOARD_st_sleep04_01 4
|
|
#define TYPE_BOARD_st_sleep03 5
|
|
#define TYPE_BOARD_SMMM_MB_VH032_0E 6
|
|
#define TYPE_BOARD_LPC17xx_ 8
|
|
#define TYPE_BOARD_STM32F_103ZET6_READBULL 1036
|
|
#define TYPE_BOARD_hh_CC_MD_VH05_anyriny_simple_m51 0x0551
|
|
#define TYPE_BOARD_hh_CC_MD_VH06_asMain_m6a7 0x6a7
|
|
#define TYPE_BOARD_TI26_MT01_M178 0x178 //会议计时器版v TI26_MT01-M178
|
|
#define TYPE_BOARD_stc5as32_WIFIBV01 532
|
|
#define TYPE_BOARD_SHC16LAXXQN32 1632 //SHC16LAXXQN32
|
|
#define TYPE_BOARD_PAPER6133_M0A6 0xa6 //打印机纸张传感
|
|
#define TYPE_BOARD_GSM_MAIN_V07 0xa7 //打印机运维板
|
|
#define TYPE_BOARD_ADDA_MAIN_V02 0xa8 //ADDA
|
|
#define TYPE_BOARD_433_0A 0xa9 //433
|
|
#define TYPE_BOARD_WEIGH_0B 0xaa //称重
|
|
//<<<<<<<<<<<<<<<<<<<<<<<<<<<.BORAD TYPE end
|
|
|
|
|
|
/*************************************
|
|
оƬ�ͺ� : IRC15W207S
|
|
HSY037.XA
|
|
���ڴ�оƬ����Ҫ˵��:
|
|
�ж�ʱ��0�Ͷ�ʱ��2 (ע��:��ʱ��1)
|
|
�бȽ��� (�ɵ���һ·ADCʹ��)
|
|
************************/
|
|
///cc_gsm_paper6133_m0a6_debug01
|
|
//STEP 1 <<<<<<<<<<<<<<<<<<<<<<<<<<<.BORAD TYPE
|
|
|
|
|
|
// BORAD,
|
|
// MCU:SHC6601
|
|
// IDE :KEIL
|
|
//>>>>>>>>>>>>>>>>>>>>>>mcu TYPE
|
|
#define TYPE_MCU_VENDOR_MSK 0xF0
|
|
#define TYPE_MCU_VENDOR_STC 0x10
|
|
#define TYPE_MCU_STC_8A 0x11
|
|
#define TYPE_MCU_STC_8F 0x12
|
|
#define TYPE_MCU_STC_8G 0x13
|
|
#define TYPE_MCU_STC_8H 0x14
|
|
|
|
#define TYPE_MCU_SHC6601 66
|
|
#define TYPE_MCU_LPC17xx 3217
|
|
#define TYPE_MCU_STM32 3232
|
|
|
|
#define D_CPUfamily_8bits 8
|
|
#define D_CPUfamily_16bits 16
|
|
#define D_CPUfamily_32bits 32
|
|
//<<<<<<<<<<<<<<<<<<<<<<mcu TYPE
|
|
#define TYPE_MCU_STC_stc15x201 201
|
|
#define TYPE_MCU_STC_stc8f1k 1
|
|
|
|
|
|
#define TYPE_MCU_stc_io TYPE_MCU_STC_stc15x201
|
|
|
|
|
|
|
|
//>>>>>>>>>>>>>>>>>>>>>>IDE TYPE
|
|
|
|
#define TYPE_IDE_KEIL 1
|
|
#define TYPE_IDE_MDK 2
|
|
#define TYPE_IDE_IAR 3
|
|
|
|
//<<<<<<<<<<<<<<<<<<<<<<IDE TYPE
|
|
|
|
//>>>>>>>>>>>>>>>>>>>>>>G-SENSOR TYPE
|
|
|
|
#define TYPE_ASENSOR_ADXL362 362
|
|
#define TYPE_ASENSOR_MSA300 362
|
|
#define TYPE_ASENSOR TYPE_ASENSOR_MSA300
|
|
//<<<<<<<<<<<<<<<<<<<<<<G-SENSOR TYPE
|
|
|
|
//>>>>>>>>>>>>>>>>>>>>>>TTSS_tick TYPE
|
|
|
|
#define D_TTSS_tick_5ms 5
|
|
#define D_TTSS_tick_10ms 10
|
|
#define D_TTSS_tick_25ms 25
|
|
|
|
|
|
//<<<<<<<<<<<<<<<<<<<<<<TTSS_tick TYPE
|
|
|
|
|
|
//STEP 1 TYPE_UASER_BOARD SELECT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
|
|
|
|
|
//#define TYPE_UASER_BOARD TYPE_BOARD_SMMM_MB_VH032_0E
|
|
//#define TYPE_UASER_BOARD TYPE_BOARD_stc90c516rd
|
|
//#define TYPE_UASER_BOARD TYPE_BOARD_hh_CC_MD_VH06_asMain_m6a7
|
|
//#define TYPE_UASER_BOARD TYPE_BOARD_stc5as32_WIFIBV01
|
|
//#define TYPE_UASER_BOARD TYPE_BOARD_hhnew
|
|
//STEP 1 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
|
//>>>>>>>>>>>>>>>>>>>>>>TTSS_tick TYPE
|
|
|
|
#define D_TTSS_tick_5ms 5
|
|
#define D_TTSS_tick_10ms 10
|
|
#define D_TTSS_tick_25ms 25
|
|
|
|
|
|
//<<<<<<<<<<<<<<<<<<<<<<TTSS_tick TYPE
|
|
//// 485 �ȶ��ͨѶʹ��
|
|
#define ADD_Master 0
|
|
#define ADD_slave1 1
|
|
#define ADD_slave2 2
|
|
#define ADD_slave3 3
|
|
#define ADD_slave4 4
|
|
#define ADD_slave5 5
|
|
#define ADD_slave6 6
|
|
|
|
#define ADD_slaveN 0xee ///����
|
|
|
|
|
|
#endif//_BSP_CONFIG0_H
|
|
/*********************************end file*********************************************/
|
|
|
|
|
|
|