EEPROM on Sky9x

This commit is contained in:
Bertrand Songis
2015-04-19 22:37:55 +02:00
committed by bsongis
parent c6cf0f915e
commit 1964ac207c
14 changed files with 476 additions and 571 deletions
+8 -2
View File
@@ -36,7 +36,9 @@
#include "../../opentx.h"
extern volatile uint32_t Spi_complete; // TODO in the driver ?
volatile uint32_t Spi_complete;
uint8_t Spi_tx_buf[24] ;
uint8_t Spi_rx_buf[24] ;
uint32_t spi_PDC_action( register uint8_t *command, register uint8_t *tx, register uint8_t *rx, register uint32_t comlen, register uint32_t count )
{
@@ -186,9 +188,13 @@ void eeprom_write_enable()
eeprom_write_one(6, 0);
}
uint32_t eeprom_read_status()
uint32_t eepromReadStatus()
{
#if defined(SIMU)
return 0;
#else
return eeprom_write_one(5, 1);
#endif
}
// SPI i/f to EEPROM (4Mb)