My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

spi_impl.cpp 773B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifdef ARDUINO_ARCH_SAM
  2. #include <stdint.h>
  3. namespace HAL {
  4. namespace SPI {
  5. bool initialise(uint8_t channel) {
  6. return false;
  7. }
  8. bool enable_cs(uint8_t channel) {
  9. return false;
  10. }
  11. void disable_cs(uint8_t channel) {
  12. }
  13. void set_frequency(uint8_t channel, uint32_t frequency) {
  14. }
  15. void read(uint8_t channel, uint8_t *buffer, uint32_t length) {
  16. }
  17. uint8_t read(uint8_t channel) {
  18. return '\0';
  19. }
  20. void write(uint8_t channel, const uint8_t *buffer, uint32_t length) {
  21. }
  22. void write(uint8_t channel, uint8_t value) {
  23. }
  24. void transfer(uint8_t channel, const uint8_t *buffer_write, uint8_t *buffer_read, uint32_t length) {
  25. }
  26. uint8_t transfer(uint8_t channel, uint8_t value) {
  27. return '\0';
  28. }
  29. } // namespace SPI
  30. } // namespace HAL
  31. #endif //#ifdef ARDUINO_ARCH_AVR