Skip to content

Commit

Permalink
arduino dir update
Browse files Browse the repository at this point in the history
  • Loading branch information
FT9R committed Mar 26, 2024
1 parent 26f328d commit e5fc3cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Examples/ArduinoNano/w25qxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ enum w25qxx_ChipEraseTime {
/* Device constants */
#define W25QXX_MANUFACTURER_ID 0xEF
#define W25QXX_PAGE_SIZE 256
#define W25QXX_SECTOR_SIZE_4KB ((W25QXX_PAGE_SIZE) * 16)
#define W25QXX_BLOCK_SIZE_32KB ((W25QXX_PAGE_SIZE) * 128)
#define W25QXX_BLOCK_SIZE_64KB ((W25QXX_PAGE_SIZE) * 256)
#define W25QXX_SECTOR_SIZE_4KB (W25QXX_KB_TO_BYTE(4))
#define W25QXX_BLOCK_SIZE_32KB (W25QXX_KB_TO_BYTE(32))
#define W25QXX_BLOCK_SIZE_64KB (W25QXX_KB_TO_BYTE(64))

enum w25qxx_Device_e { W25Q80 = 0x13, W25Q16, W25Q32, W25Q64, W25Q128 };

Expand Down
2 changes: 1 addition & 1 deletion Examples/ArduinoNano/w25qxx_Demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ uint8_t w25qxx_Demo(void (*fpPrint)(const uint8_t *message))
return 1;

fpPrint("\nInterface link\n");
w25qxx_Link(&w25qxx_Handle, w25qxx_SPI1_Receive, w25qxx_SPI1_Transmit, w25qxx_SPI1_CS0_Set);
w25qxx_Link(&w25qxx_Handle, w25qxx_SPI1_Receive, w25qxx_SPI1_Transmit, w25qxx_SPI1_CS1_Set);

fpPrint("Device initialization\n");
w25qxx_Init(&w25qxx_Handle);
Expand Down

0 comments on commit e5fc3cb

Please sign in to comment.