X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=hw%2Fhw_tc520.h;h=3ff492d5610c819c8544313ca960940b5de1ec4c;hb=HEAD;hp=34501ca53c3e08c9c3ce812fea062c583a54c7d4;hpb=77c1d6ba65a199f60faa0e0a68e63ef0eb87677c;p=bertos.git diff --git a/hw/hw_tc520.h b/hw/hw_tc520.h deleted file mode 100644 index 34501ca5..00000000 --- a/hw/hw_tc520.h +++ /dev/null @@ -1,76 +0,0 @@ -/** - * \file - * - * - * \version $Id$ - * - * \brief TC520 hardware-specific definitions - * - * \version $Id$ - * \author Francesco Sacchi - */ - -#ifndef HW_TC520_H -#define HW_TC520_H - -#include -#include - -#define CE_PIN PE6 -#define DV_PIN PE5 -#define LOAD_PIN PE3 -#define READ_PIN PE4 - -#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 CE_HIGH() (TC520_PORT |= BV(CE_PIN)) -#define CE_LOW() (TC520_PORT &= ~BV(CE_PIN)) - -#define LOAD_HIGH() (TC520_PORT |= BV(LOAD_PIN)) -#define LOAD_LOW() (TC520_PORT &= ~BV(LOAD_PIN)) - -#define READ_HIGH() (TC520_PORT |= BV(READ_PIN)) -#define READ_LOW() (TC520_PORT &= ~BV(READ_PIN)) - -#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) - -#endif /* HW_TC520_H */