File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ static void sdram_init_seq(SDRAM_HandleTypeDef
259
259
260
260
void sdram_enter_low_power (void ) {
261
261
// Enter self-refresh mode.
262
- // In self-refresh mode the SDRAM retains data with external clocking.
262
+ // In self-refresh mode the SDRAM retains data without external clocking.
263
263
FMC_SDRAM_DEVICE -> SDCMR |= (FMC_SDRAM_CMD_SELFREFRESH_MODE | // Command Mode
264
264
FMC_SDRAM_CMD_TARGET_BANK | // Command Target
265
265
(0 << 5U ) | // Auto Refresh Number -1
@@ -276,6 +276,14 @@ void sdram_leave_low_power(void) {
276
276
(0 << 9U )); // Mode Register Definition
277
277
}
278
278
279
+ void sdram_enter_power_down (void ) {
280
+ // Enter power-down mode.
281
+ FMC_SDRAM_DEVICE -> SDCMR |= (FMC_SDRAM_CMD_POWERDOWN_MODE | // Command Mode
282
+ FMC_SDRAM_CMD_TARGET_BANK | // Command Target
283
+ (0 << 5U ) | // Auto Refresh Number -1
284
+ (0 << 9U )); // Mode Register Definition
285
+ }
286
+
279
287
#if __GNUC__ >= 11
280
288
// Prevent array bounds warnings when accessing SDRAM_START_ADDRESS as a memory pointer.
281
289
#pragma GCC diagnostic push
Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ void *sdram_start(void);
13
13
void * sdram_end (void );
14
14
void sdram_enter_low_power (void );
15
15
void sdram_leave_low_power (void );
16
+ void sdram_enter_power_down (void );
16
17
bool sdram_test (bool exhaustive );
17
18
#endif // __SDRAM_H__
You can’t perform that action at this time.
0 commit comments