mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-15 07:39:33 +08:00
f51bce3fed
We currently only support building with CCS and SCons is not using. bsp/rm48x50/HALCoGen/HALCoGen.{hcg,dil} is the HALCoGen project file. You may need to regenerate the source file as you like, providing that: 1, IRQ is in Dispatch Mode and the table entry is IRQ_Handler. The channel 5 in enabled and connected to IRQ. 2, RTI driver is enabled and compare3 source is selected to counter1 and the compare3 will generate tick in the period of 10ms. This value is coresponding with RT_TICK_PER_SECOND in rtconfig.h. In CCS, you need to create a new CCS project and create link folders pointing at bsp/rm48x50, libcpu/arm/rm48x50 and src/, include/. Remember to add the include path to the Build Properties.
81 lines
2.0 KiB
C
81 lines
2.0 KiB
C
/** @file sys_common.h
|
|
* @brief Common Header File
|
|
* @date 23.May.2013
|
|
* @version 03.05.01
|
|
*
|
|
* This file contains:
|
|
* - General Definitions
|
|
* .
|
|
* which are relevant for all drivers.
|
|
*/
|
|
|
|
/* (c) Texas Instruments 2009-2013, All rights reserved. */
|
|
|
|
#ifndef __SYS_COMMON_H__
|
|
#define __SYS_COMMON_H__
|
|
|
|
#include "hal_stdtypes.h"
|
|
|
|
/* USER CODE BEGIN (0) */
|
|
/* USER CODE END */
|
|
|
|
/************************************************************/
|
|
/* Type Definitions */
|
|
/************************************************************/
|
|
|
|
#ifndef _TBOOLEAN_DECLARED
|
|
typedef boolean tBoolean;
|
|
#define _TBOOLEAN_DECLARED
|
|
#endif
|
|
|
|
/** @enum loopBackType
|
|
* @brief Loopback type definition
|
|
*/
|
|
/** @typedef loopBackType_t
|
|
* @brief Loopback type Type Definition
|
|
*
|
|
* This type is used to select the module Loopback type Digital or Analog loopback.
|
|
*/
|
|
typedef enum loopBackType
|
|
{
|
|
Digital = 0U,
|
|
Analog = 1U
|
|
}loopBackType_t;
|
|
|
|
/** @enum config_value_type
|
|
* @brief config type definition
|
|
*/
|
|
/** @typedef config_value_type_t
|
|
* @brief config type Type Definition
|
|
*
|
|
* This type is used to specify the Initial and Current value.
|
|
*/
|
|
typedef enum config_value_type
|
|
{
|
|
InitialValue,
|
|
CurrentValue
|
|
}config_value_type_t;
|
|
|
|
/* USER CODE BEGIN (1) */
|
|
/* USER CODE END */
|
|
|
|
/********************************************************************************/
|
|
/* The ASSERT macro, which does the actual assertion checking. Typically, this */
|
|
/* will be for procedure arguments. */
|
|
/********************************************************************************/
|
|
#ifdef DEBUG
|
|
#define ASSERT(expr) { \
|
|
if(!(expr)) \
|
|
{ \
|
|
__error__(__FILE__, __LINE__); \
|
|
} \
|
|
}
|
|
#else
|
|
#define ASSERT(expr)
|
|
#endif
|
|
|
|
/* USER CODE BEGIN (2) */
|
|
/* USER CODE END */
|
|
|
|
#endif
|