T:\T_Drive\tCode\libraries\SDRAM_t4\SDRAM_t4.cpp: In static member function 'static bool SDRAM_t4::init()':
T:\T_Drive\tCode\libraries\SDRAM_t4\SDRAM_t4.cpp:282:53: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
282 | SEMC_SDRAMCR1_ACT2PRE(ns_to_clocks(42, freq)-1) | // tRAS: ACTIVE to PRECHARGE
| ~~~~~~~~~~~~~~~~~~~~~~^~
T:\T_Drive\arduino-1.8.19\hardware\teensy\avr\cores\teensy4/imxrt.h:8542:53: note: in definition of macro 'SEMC_SDRAMCR1_ACT2PRE'
8542 | #define SEMC_SDRAMCR1_ACT2PRE
((uint32_t)(n & 0x0F)<<20)
| ^
T:\T_Drive\tCode\libraries\SDRAM_t4\SDRAM_t4.cpp:283:52: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
283 | SEMC_SDRAMCR1_CKEOFF(ns_to_clocks(42, freq)-1) | // self refresh
| ~~~~~~~~~~~~~~~~~~~~~~^~
T:\T_Drive\arduino-1.8.19\hardware\teensy\avr\cores\teensy4/imxrt.h:8543:53: note: in definition of macro 'SEMC_SDRAMCR1_CKEOFF'
8543 | #define SEMC_SDRAMCR1_CKEOFF
((uint32_t)(n & 0x0F)<<16)
| ^
T:\T_Drive\tCode\libraries\SDRAM_t4\SDRAM_t4.cpp:284:49: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
284 | SEMC_SDRAMCR1_WRC(ns_to_clocks(12, freq)-1) | // tWR: WRITE recovery
| ~~~~~~~~~~~~~~~~~~~~~~^~
T:\T_Drive\arduino-1.8.19\hardware\teensy\avr\cores\teensy4/imxrt.h:8544:53: note: in definition of macro 'SEMC_SDRAMCR1_WRC'
8544 | #define SEMC_SDRAMCR1_WRC
((uint32_t)(n & 0x07)<<13)
| ^
T:\T_Drive\tCode\libraries\SDRAM_t4\SDRAM_t4.cpp:285:50: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
285 | SEMC_SDRAMCR1_RFRC(ns_to_clocks(67, freq)-1) | // tRFC or tXSR: REFRESH recovery
| ~~~~~~~~~~~~~~~~~~~~~~^~
T:\T_Drive\arduino-1.8.19\hardware\teensy\avr\cores\teensy4/imxrt.h:8545:53: note: in definition of macro 'SEMC_SDRAMCR1_RFRC'
8545 | #define SEMC_SDRAMCR1_RFRC
((uint32_t)(n & 0x1F)<<8)
| ^
T:\T_Drive\tCode\libraries\SDRAM_t4\SDRAM_t4.cpp:286:52: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
286 | SEMC_SDRAMCR1_ACT2RW(ns_to_clocks(18, freq)-1) | // tRCD: ACTIVE to READ/WRITE
| ~~~~~~~~~~~~~~~~~~~~~~^~
T:\T_Drive\arduino-1.8.19\hardware\teensy\avr\cores\teensy4/imxrt.h:8546:53: note: in definition of macro 'SEMC_SDRAMCR1_ACT2RW'
8546 | #define SEMC_SDRAMCR1_ACT2RW
((uint32_t)(n & 0x0F)<<4)
| ^
T:\T_Drive\tCode\libraries\SDRAM_t4\SDRAM_t4.cpp:287:53: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
287 | SEMC_SDRAMCR1_PRE2ACT(ns_to_clocks(18, freq)-1); // tRP: PRECHARGE to ACTIVE/REFRESH
| ~~~~~~~~~~~~~~~~~~~~~~^~
T:\T_Drive\arduino-1.8.19\hardware\teensy\avr\cores\teensy4/imxrt.h:8547:53: note: in definition of macro 'SEMC_SDRAMCR1_PRE2ACT'
8547 | #define SEMC_SDRAMCR1_PRE2ACT
((uint32_t)(n & 0x0F)<<0)
|