From d1737f02d16977df8f3dcc061c859b27191b7160 Mon Sep 17 00:00:00 2001 From: asterix Date: Fri, 16 Sep 2011 13:59:49 +0000 Subject: [PATCH] Add i2s hw implementation file.bertos/hw/hw_i2s.h git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5058 38d2e660-2303-0410-9eaa-f027e97ec537 --- boards/sam3x-ek/hw/hw_i2s.h | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 boards/sam3x-ek/hw/hw_i2s.h diff --git a/boards/sam3x-ek/hw/hw_i2s.h b/boards/sam3x-ek/hw/hw_i2s.h new file mode 100644 index 00000000..fd3272dc --- /dev/null +++ b/boards/sam3x-ek/hw/hw_i2s.h @@ -0,0 +1,52 @@ +/** + * \file + * + * + * \brief I2S driver hardware-specific definitions. + * + * + * \author Daniele Basile + */ + +#ifndef HW_I2S_H +#define HW_I2S_H + +#define I2S_STROBE_ON() do { PIOE_SODR = BV(0); } while(0) +#define I2S_STROBE_OFF() do { PIOE_CODR = BV(0); } while(0) + +#define I2S_STROBE_INIT() \ + do { \ + PIOE_PER = BV(0); \ + PIOE_OER = BV(0);\ + PIOE_CODR = BV(0); \ + } while(0) + +#endif /* HW_I2S_H */ -- 2.25.1