mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-24 22:27:21 -04:00
[sw/example/demo_spi_irq/main.c]: fix wrong usage of memset, memset accepts size in byte, and sizeof returns umber of bytes. No element division necessary.
This commit is contained in:
parent
83d4450dd2
commit
52a826f022
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ int main()
|
|||
neorv32_spi_enable();
|
||||
|
||||
// IRQ based data transfer
|
||||
memset(uint8MemBuf, 0, sizeof(uint8MemBuf)/sizeof(uint8MemBuf[0])); // fill with 0's
|
||||
memset(uint8MemBuf, 0, sizeof(uint8MemBuf)); // fill with 0's
|
||||
uint8MemBuf[0] = 0x3;
|
||||
uint8MemBuf[1] = 0x0;
|
||||
uint8MemBuf[2] = 0x0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue