X-Git-Url: http://rtime.felk.cvut.cz/gitweb/arc.git/blobdiff_plain/07bbcb79799c461e4dc58be060a0c3e01f466c97..670aeff4a2ae2f7b626e1febbc86528c0fae0959:/boards/ti_tms570ls/examples/tms570_hdk_can/config/Dio_Cfg.h diff --git a/boards/ti_tms570ls/examples/tms570_hdk_can/config/Dio_Cfg.h b/boards/ti_tms570ls/examples/tms570_hdk_can/config/Dio_Cfg.h new file mode 100644 index 00000000..660a59f0 --- /dev/null +++ b/boards/ti_tms570ls/examples/tms570_hdk_can/config/Dio_Cfg.h @@ -0,0 +1,59 @@ +/* +* Configuration of module: Dio (Dio_Cfg.h) +* +* Created by: +* Copyright: +* +* Configured for (MCU): TMS570 +* +* Module vendor: ArcCore +* Generator version: 2.0.0 +* +* Generated by Arctic Studio (http://arccore.com) +*/ + + +#if !(((DIO_SW_MAJOR_VERSION == 1) && (DIO_SW_MINOR_VERSION == 0)) ) +#error Dio: Configuration file expected BSW module version to be 1.0.* +#endif + + +#ifndef DIO_CFG_H_ +#define DIO_CFG_H_ + +#include "Port.h" +#include "Std_Types.h" /** @req DIO131 */ + +// TODO - check if should change to STD_ON +#define DIO_VERSION_INFO_API STD_ON +#define DIO_DEV_ERROR_DETECT STD_OFF + +#define DIO_END_OF_LIST (-1u) + +// Physical ports +typedef enum +{ + DIO_PORT_A = 0, + DIO_PORT_B = 1, + DIO_PORT_N2HET1 = 2, +} Dio_PortTypesType; + + +// Channels +/** @req DIO015: Parameters of type Dio_ChannelType contain the numeric ID of a DIO channel */ +#define DIO_CHANNEL_NAME_LED_CHANNEL PORT_PIN_LED1 + +// Channel group + +// Ports +#define DIO_PORT_NAME_LED_PORT (DIO_PORT_N2HET1) + +// Pointers for convenience. +// Channels +extern const Dio_ChannelType DioChannelConfigData[]; +// Channel group +extern const Dio_ChannelGroupType DioConfigData[]; +// Port +extern const Dio_PortType DioPortConfigData[]; + +#endif /*DIO_CFG_H_*/