refactor getClkFreq, SPIDMA use generic getClkFreq from SPIBasic
https://github.com/ag88/stm32duino_spi_ ... A.cpp#L300
Search found 1912 matches
- Mon Feb 03, 2025 2:12 pm
- Forum: Ideas & suggestions
- Topic: DMA for SPI
- Replies: 24
- Views: 18783
- Sat Feb 01, 2025 5:41 am
- Forum: Ideas & suggestions
- Topic: DMA for SPI
- Replies: 24
- Views: 18783
Re: DMA for SPI
updated SPI.h
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPI.h
added externs to SPI instance (this defaults to SPI 1)
SPIDMA classes are different for each series and SPIDMA uses a different/specific class for each SPI peripheral.
Typedefs are defined for SPIClass1, SPIClass2 ...
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPI.h
added externs to SPI instance (this defaults to SPI 1)
SPIDMA classes are different for each series and SPIDMA uses a different/specific class for each SPI peripheral.
Typedefs are defined for SPIClass1, SPIClass2 ...
- Mon Jan 27, 2025 7:52 pm
- Forum: Ideas & suggestions
- Topic: DMA for SPI
- Replies: 24
- Views: 18783
Re: DMA for SPI
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIClass.h
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIClass.cpp
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIBasic.h
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIBasic.cpp ...
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIClass.cpp
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIBasic.h
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIBasic.cpp ...
- Sun Jan 26, 2025 1:45 pm
- Forum: Projects
- Topic: PWM not working on STM32F401CEU6
- Replies: 1
- Views: 3417
Re: PWM not working on STM32F401CEU6
if you are using Arduino_Core_STM32
https://github.com/stm32duino/Arduino_Core_STM32/wiki
https://github.com/stm32duino/Arduino_Core_STM32/
you can try using the HardwareTimer
https://github.com/stm32duino/Arduino_Core_STM32/wiki/HardwareTimer-library
e.g.
HardwareTimer *MyTim = new HardwareTimer ...
https://github.com/stm32duino/Arduino_Core_STM32/wiki
https://github.com/stm32duino/Arduino_Core_STM32/
you can try using the HardwareTimer
https://github.com/stm32duino/Arduino_Core_STM32/wiki/HardwareTimer-library
e.g.
HardwareTimer *MyTim = new HardwareTimer ...
- Sat Jan 25, 2025 10:15 am
- Forum: Ideas & suggestions
- Topic: DMA for SPI
- Replies: 24
- Views: 18783
Re: DMA for SPI
added stm32f3
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIDMA_F3XX.h
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIDMA_F3XX.cpp
again, this is based on using one variant as example to make the codes, untested codes, just compiled.
STM32F3 DMA is closer to F1 ...
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIDMA_F3XX.h
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIDMA_F3XX.cpp
again, this is based on using one variant as example to make the codes, untested codes, just compiled.
STM32F3 DMA is closer to F1 ...
- Sat Jan 25, 2025 7:23 am
- Forum: Ideas & suggestions
- Topic: DMA for SPI
- Replies: 24
- Views: 18783
Re: DMA for SPI
I did a refactor for SPIDMA to make 2 different implementations of single buffer transfer
In the Arduino SPI API, buffer transfer is provided for only a single buffer
https://docs.arduino.cc/language-reference/en/functions/communication/SPI/transfer/
SPI transfer is based on a simultaneous send ...
In the Arduino SPI API, buffer transfer is provided for only a single buffer
https://docs.arduino.cc/language-reference/en/functions/communication/SPI/transfer/
SPI transfer is based on a simultaneous send ...
- Fri Jan 24, 2025 3:10 pm
- Forum: Ideas & suggestions
- Topic: DMA for SPI
- Replies: 24
- Views: 18783
Re: DMA for SPI
added stm32h5
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIDMA_H5XX.h
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIDMA_H5XX.cpp
again, this is based on using one variant as example to make the codes, untested codes, just compiled.
stm32h5 spi peripheral is ...
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIDMA_H5XX.h
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIDMA_H5XX.cpp
again, this is based on using one variant as example to make the codes, untested codes, just compiled.
stm32h5 spi peripheral is ...
- Fri Jan 24, 2025 12:47 pm
- Forum: General discussion
- Topic: LVGL Light and Versatile Graphics Library, TouchGFX etc
- Replies: 0
- Views: 4044
LVGL Light and Versatile Graphics Library, TouchGFX etc
LVGL Light and Versatile Graphics Library
https://lvgl.io/
https://github.com/lvgl/lvgl
ok, this should probably be in off-topic or perhaps Ideas section. But posting here (at least for a while) as I stumbled into this.
my thoughts are going full gui is likely difficult to run on the resource ...
https://lvgl.io/
https://github.com/lvgl/lvgl
ok, this should probably be in off-topic or perhaps Ideas section. But posting here (at least for a while) as I stumbled into this.
my thoughts are going full gui is likely difficult to run on the resource ...
- Thu Jan 23, 2025 3:48 pm
- Forum: General discussion
- Topic: Compilation error: base operand of '->' is not a pointer
- Replies: 3
- Views: 3195
Re: Compilation error: base operand of '->' is not a pointer
if you don't need too much speeds, well you could do codes like
uint8_t state = 0;
void setup() {
pinMode(PA1, INPUT);
Serial.begin();
}
void loop() {
if (digitalRead(PA1) != state)
Serial.println("state changed");
state = digitalRead(PA1);
delay(100);
}
and you can replace that ...
uint8_t state = 0;
void setup() {
pinMode(PA1, INPUT);
Serial.begin();
}
void loop() {
if (digitalRead(PA1) != state)
Serial.println("state changed");
state = digitalRead(PA1);
delay(100);
}
and you can replace that ...
- Thu Jan 23, 2025 1:58 pm
- Forum: Ideas & suggestions
- Topic: DMA for SPI
- Replies: 24
- Views: 18783
Re: DMA for SPI
added stm32h7
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIDMA_H7XX.h
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIDMA_H7XX.cpp
again, this is based on using one variant as example to make the codes, untested codes, just compiled.
stm32h7xx has both variations ...
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIDMA_H7XX.h
https://github.com/ag88/stm32duino_spi_dma/blob/main/src/SPI/SPIDMA_H7XX.cpp
again, this is based on using one variant as example to make the codes, untested codes, just compiled.
stm32h7xx has both variations ...