CMSIS2000  0.0.7
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Configurations files

BSP header file

BSP (BOARD SUPPORT PACKAGE) header file holds itself some definitions and constants that describe definite board, some examples of this :

  • list of some peripheral devices installed on board (PHY ETH)
  • necessary input and output frequencies (XTAL CPU frequency for example)
  • come board trasing information (CS outputs for для SPI for ex.)

This file MUST be protected with BSP_BOARD_DEF_H definitions

#ifndef BSP_BOARD_DEF_H
#define BSP_BOARD_DEF_H 1
..... contents of file here..............
#endif

Automatic generated files

This files are automatic generated. If you are not using CMAKE probably you should write this files manualy.

bsp_board_def.h file

This file is a primary file used for configuring code to board specific. It includes BSP header file of current board and mcu.id file.

#ifndef _BSP_BOARD_FILE_H_
#define _BSP_BOARD_FILE_H_ 1
*------------------------------------------------------------------------------
This file is autogenerated CMAKE generation utility at 01.11.2012
-------------THIS FILE MUST DEFINE BOARD AND COMPILLER DEFINITIONS -----------*
#define THIS_IS_BOARD(name) (bsp_board_##name > 0)
#define BSP_BOARD_VERSION(vers) (bsp_board_##vers )
#include "bsp_board_EA_v1_1.h"
#ifndef BSP_BOARD_DEF_H *BSP_BOARD_DEF_H must be in every board_def file*
#define BSP_CNC(bsp,a,b) bsp##a##b
#include "BSP_CNC(bsp_board_,i_BOARD,.h)"
#endif
#include "mcu_id.h"
#endif * _BSP_BOARD_FILE_H_ *
*----------------------------------------------------------------------------*
See Also

mcu_id.h file

This file is a primary file used for configuring code to MCU specific. Sets MCU model, makes mcu_id.h file with core type and MCU model definitions.

#ifndef _MCU_ID_FILE_
#define _MCU_ID_FILE_ 1
*------------------------------------------------------------------------------
!!! This file is auto-generated CMAKE generation utility at 01.11.2012
!!!
definitions can be redefined by bsp_board_file.h
or by -Di_ARCH=arch compiller switch at command line
-------------i_ is the i_DENTIFICATION DEFENITIONS --------------------------*
#ifndef i_ARCH
#define i_ARCH ARM7
#endif
#ifndef i_MCU_FAMILY
#define i_MCU_FAMILY LPC2xxx
#endif
#ifndef i_MCU_MODEL
#define i_MCU_MODEL 2478
#endif
it is used to include board support package board definitions*
#ifndef i_BOARD
#define i_BOARD EA_v1_1
#endif
#endif *_MCU_ID_FILE_
See Also