hm60x/hm801: Fix blinking white screen.
[maemo-rb.git] / firmware / export / spi.h
blob93b531b7f39864c5644b27e5b06a161d5e0ac593
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2007 by Catalin Patulea
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
21 #ifndef __SPI_H__
22 #define __SPI_H__
24 #include <inttypes.h>
25 #include <stdbool.h>
26 #include "spi-target.h" /* for SPI_target */
28 void spi_init(void);
29 int spi_block_transfer(enum SPI_target target,
30 const uint8_t *tx_bytes, unsigned int tx_size,
31 uint8_t *rx_bytes, unsigned int rx_size);
34 #endif