Revert "SPI API platform implementation stubs" (#7416)
This reverts commit 2dfa6ca72a2e8d43caf4932ca0d35792f0638917. Revert "Base HAL SPI Changes" This reverts commit 2afc521b8b6a81b2281a038f1b99a69f4a008e64. Revert "Initial HAL SPI API" This reverts commit 58f7ffe09ab5bc034b6510f5204f8d342138abaa.
This commit is contained in:
committed by
Scott Lahteine
parent
a5cf3a190c
commit
61c0a10efe
@ -1,51 +0,0 @@
|
||||
#ifdef ARDUINO_ARCH_AVR
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
namespace HAL {
|
||||
namespace SPI {
|
||||
|
||||
bool initialise(uint8_t channel) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool enable_cs(uint8_t channel) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void disable_cs(uint8_t channel) {
|
||||
|
||||
}
|
||||
|
||||
void set_frequency(uint8_t channel, uint32_t frequency) {
|
||||
|
||||
}
|
||||
|
||||
void read(uint8_t channel, uint8_t *buffer, uint32_t length) {
|
||||
|
||||
}
|
||||
|
||||
uint8_t read(uint8_t channel) {
|
||||
return '\0';
|
||||
}
|
||||
|
||||
void write(uint8_t channel, const uint8_t *buffer, uint32_t length) {
|
||||
|
||||
}
|
||||
|
||||
void write(uint8_t channel, uint8_t value) {
|
||||
|
||||
}
|
||||
|
||||
void transfer(uint8_t channel, const uint8_t *buffer_write, uint8_t *buffer_read, uint32_t length) {
|
||||
|
||||
}
|
||||
|
||||
uint8_t transfer(uint8_t channel, uint8_t value) {
|
||||
return '\0';
|
||||
}
|
||||
|
||||
} // namespace SPI
|
||||
} // namespace HAL
|
||||
|
||||
#endif //#ifdef ARDUINO_ARCH_AVR
|
@ -20,10 +20,6 @@
|
||||
#ifndef SPI_PINS_H_
|
||||
#define SPI_PINS_H_
|
||||
|
||||
#define SD_SPI_CHANNEL (HAL::SPI::CHANNEL_0)
|
||||
#define LCD_SPI_FREQUENCY 4000000
|
||||
#define LCD_SPI_CHANNEL (HAL::SPI::CHANNEL_1)
|
||||
|
||||
/**
|
||||
* Define SPI Pins: SCK, MISO, MOSI, SS
|
||||
*/
|
||||
|
Reference in New Issue
Block a user