#elif defined(TARGET_TMS570_RPP)
#include "hal/_tms570_rpp/gpio_def.h"
#include "hal/_tms570_rpp/port_def.h"
-#include "hal/port_spi.h"
-#include "hal/spi_tms570.h"
-#include "hal/spi.h"
-#include "hal/spi_resp_transl.h"
#else
#error No supported target specified!
#endif
#ifndef _SPI_DRV_H_
#define _SPI_DRV_H_
-//#include "sys_common.h"
-//#include "string.h"
-//#include "cpu_def.h"
-#include "hal/hal.h"
-
+#include "hal/spi_tms570.h"
UL_LIST_CUST_DEC(spi_rq_queue, spi_drv_t, spi_msg_head_t, rq_queue, node)
//#include "hal_port_def.h"
//#include "cmdproc_utils.h"
-#include "hal/hal.h"
#define NUM_SPI_DEVICES 7
#define DIN_NUM_GLOB_FD 24
//#include "sys_common.h"
//#include "drv_spi.h"
#include "ul/ul_list.h"
-#include "hal/hal.h"
+#include "types.h"
+#include "sys/cpu_def.h"
#define SPI_IFC_ON 1
#define SPI_CTRL_WAKE_RQ 1
#ifndef _UL_UTDEFS_H
#define _UL_UTDEFS_H
+#include <stddef.h> /* For size_t */
+
#ifdef __cplusplus
extern "C" {
#endif
-/* Copyright (C) 2013 Czech Technical University in Prague
+/* Copyright (C) 2013, 2015 Czech Technical University in Prague
*
* Authors:
* - Michal Horn
// PWM is available for HBR control.
#include "drv/drv.h"
#include <os/semphr.h>
+#include "hal/spi.h"
//Flag variable if pwm was initialized and is ready to start.
static boolean_t pwm_initialized = FALSE;
-/* Copyright (C) 2012-2013 Czech Technical University in Prague
+/* Copyright (C) 2012-2013, 2015 Czech Technical University in Prague
*
* Authors:
* - Michal Horn <hornmich@fel.cvut.cz>
#include "hal/hal.h"
+#include "hal/port_spi.h"
+#include "hal/spi.h"
+
// Lists of pins assigned to the ports
static uint32_t port_cfg_dinmcu[] = PORT_CFG_DINMCU;
static uint32_t port_cfg_dinspi[] = PORT_CFG_DINSPI;
-/* Copyright (C) 2012-2013 Czech Technical University in Prague
+/* Copyright (C) 2012-2013, 2015 Czech Technical University in Prague
*
* This document contains proprietary information belonging to Czech
* Technical University in Prague. Passing on and copying of this
* Code based on Halcogen generated source code
*/
-//#include "spi_tms570.h"
+#include "hal/spi.h"
+#include "sys/port.h"
//#include "drv_spi.h"
//#include "sys_common.h"
//#include "ti_drv_dmm.h"
-#include "hal/hal.h"
+#include "sys/ti_drv_dmm.h"
static int spi_tms570_ctrl_fnc(spi_drv_t *ifc, int ctrl, void *p);