From bc781d73f00dc60aab4f04a8676deb34fbf724d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 22 Mar 2015 14:06:38 +0100 Subject: Prepare for nrf24l01p --- files.mk | 2 ++ nrf24l01p/base.h | 0 nrf24l01p/files.mk | 0 nrf24l01p/nrf.h | 24 ++++++++++++++++++++++++ nrf24l01p/src/base.c | 0 nrf24l01p/src/nrf.c | 30 ++++++++++++++++++++++++++++++ 6 files changed, 56 insertions(+) create mode 100644 nrf24l01p/base.h create mode 100644 nrf24l01p/files.mk create mode 100644 nrf24l01p/nrf.h create mode 100644 nrf24l01p/src/base.c create mode 100644 nrf24l01p/src/nrf.c diff --git a/files.mk b/files.mk index 26f4a55..75c047c 100644 --- a/files.mk +++ b/files.mk @@ -4,6 +4,8 @@ endif include charLCD/files.mk include dht22/files.mk +include nrf24l01p/files.mk + IOE_SPI_SRC = $(IOE_PREFIX)/src/spi.c IOE_SPI_USI_SRC = $(IOE_PREFIX)/src/spi_usi.c IOE_SPI_USART_SRC = $(IOE_PREFIX)/src/spi_usart.c diff --git a/nrf24l01p/base.h b/nrf24l01p/base.h new file mode 100644 index 0000000..e69de29 diff --git a/nrf24l01p/files.mk b/nrf24l01p/files.mk new file mode 100644 index 0000000..e69de29 diff --git a/nrf24l01p/nrf.h b/nrf24l01p/nrf.h new file mode 100644 index 0000000..9dcf572 --- /dev/null +++ b/nrf24l01p/nrf.h @@ -0,0 +1,24 @@ +#include + +#include "config.h" + +#if (defined IOE_NRF_SPI) +#include "../spi.h" +#elif (defined IOE_NRF_USI) +#include "../spi_usi.h" +#elif (defined IOE_NRF_USART) +#include "../spi_usart.h" +#endif + +#ifndef _IOE_NRF_H_ +#define _IOE_NRF_H_ + +void ioe_nrf_init(void); + +void ioe_nrf_set_address(); +int ioe_nrf_ready(void); +void ioe_nrf_joint(void); +void ioe_nrf_transmit(int8_t); +int8_t ioe_nrf_retrieve(void); + +#endif /* _IOE_NRF_H_ */ diff --git a/nrf24l01p/src/base.c b/nrf24l01p/src/base.c new file mode 100644 index 0000000..e69de29 diff --git a/nrf24l01p/src/nrf.c b/nrf24l01p/src/nrf.c new file mode 100644 index 0000000..9bd2e0f --- /dev/null +++ b/nrf24l01p/src/nrf.c @@ -0,0 +1,30 @@ +#include "../nrf.h" + +#if (defined IOE_NRF_SPI) +#define SPI_EXP +#elif (defined IOE_NRF_USI) +#define SPI_EXP usi_ +#elif (defined IOE_NRF_USART) +#define SPI_EXP usart_ +#endif + +void rw_nrf( + +void ioe_nrf_init(void) { +} + + +void ioe_nrf_set_address() { +} + +int ioe_nrf_ready(void) { +} + +void ioe_nrf_joint(void) { +} + +void ioe_nrf_transmit(int8_t d) { +} + +int8_t ioe_nrf_retrieve(void) { +} -- cgit v1.2.3