From cdb89b44e64781a922844e3bdb6968fac500fe81 Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 19 May 2008 10:44:28 +0000 Subject: [PATCH] Mark this module as broken. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1279 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/tc520.c | 8 +++++++- bertos/hw/hw_tc520.h | 38 ++++++++++++++++---------------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/bertos/drv/tc520.c b/bertos/drv/tc520.c index 615a94e0..b7495ea1 100644 --- a/bertos/drv/tc520.c +++ b/bertos/drv/tc520.c @@ -29,11 +29,11 @@ * Copyright 2005 Develer S.r.l. (http://www.develer.com/) * --> * - * \version $Id$ * * \brief TC520 ADC driver (implementation) * * \version $Id$ + * * \author Francesco Sacchi * \author Marco Benelli */ @@ -46,6 +46,10 @@ #include #include +#warning This implementation is obsolete. Refactor with KFile interface. + +#if 0 + #include static Serial *spi_ser; @@ -160,3 +164,5 @@ void tc520_init(Serial *spi_port) ser_drain(spi_ser); LOAD_HIGH(); } + +#endif diff --git a/bertos/hw/hw_tc520.h b/bertos/hw/hw_tc520.h index 34501ca5..cd6f4d53 100644 --- a/bertos/hw/hw_tc520.h +++ b/bertos/hw/hw_tc520.h @@ -29,7 +29,6 @@ * Copyright 2005 Develer S.r.l. (http://www.develer.com/) * --> * - * \version $Id$ * * \brief TC520 hardware-specific definitions * @@ -41,36 +40,31 @@ #define HW_TC520_H #include -#include -#define CE_PIN PE6 -#define DV_PIN PE5 -#define LOAD_PIN PE3 -#define READ_PIN PE4 +#warning This is hw example for TC520, you must implement it for your specific hardware + +#define CE_PIN 0 +#define DV_PIN 0 +#define LOAD_PIN 0 +#define READ_PIN 0 -#define TC520_DDR DDRE -#define TC520_PORT PORTE -#define TC520_PIN PINE -#define DV_HIGH() (TC520_PIN & BV(DV_PIN)) -#define DV_LOW() (!DV_HIGH()) +#define DV_HIGH() /* Implement me! */ +#define DV_LOW() /* Implement me! */ -#define CE_HIGH() (TC520_PORT |= BV(CE_PIN)) -#define CE_LOW() (TC520_PORT &= ~BV(CE_PIN)) +#define CE_HIGH() /* Implement me! */ +#define CE_LOW() /* Implement me! */ -#define LOAD_HIGH() (TC520_PORT |= BV(LOAD_PIN)) -#define LOAD_LOW() (TC520_PORT &= ~BV(LOAD_PIN)) +#define LOAD_HIGH() /* Implement me! */ +#define LOAD_LOW() /* Implement me! */ -#define READ_HIGH() (TC520_PORT |= BV(READ_PIN)) -#define READ_LOW() (TC520_PORT &= ~BV(READ_PIN)) +#define READ_HIGH() /* Implement me! */ +#define READ_LOW() /* Implement me! */ #define TC520_HW_INIT \ do\ {\ - TC520_PORT |= (BV(CE_PIN) | BV(LOAD_PIN) | BV(READ_PIN));\ - TC520_DDR |= (BV(CE_PIN) | BV(LOAD_PIN) | BV(READ_PIN));\ - TC520_DDR &= ~BV(DV_PIN);\ -}\ -while(0) + /* Put here your code to init hardware */ \ +} while(0) #endif /* HW_TC520_H */ -- 2.25.1