1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00

display: set minimum possible values for sram controller

This commit is contained in:
Pavol Rusnak 2017-10-15 22:07:34 +02:00
parent 46a0dd8648
commit b6f9df10bb
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -210,13 +210,13 @@ int display_init(void) {
// reference RM0090 section 37.5 Table 259, 37.5.4, Mode 1 SRAM, and 37.5.6
FMC_NORSRAM_TimingTypeDef normal_mode_timing;
normal_mode_timing.AddressSetupTime = 15; // works, not sure if optimal
normal_mode_timing.AddressHoldTime = 15; // don't care
normal_mode_timing.DataSetupTime = 5; // works, not sure if optimal
normal_mode_timing.BusTurnAroundDuration = 15; // works, not sure if optimal
normal_mode_timing.CLKDivision = 16; // don't care
normal_mode_timing.DataLatency = 17; // don't care
normal_mode_timing.AccessMode = FMC_ACCESS_MODE_A; // don't care
normal_mode_timing.AddressSetupTime = 4;
normal_mode_timing.AddressHoldTime = 1;
normal_mode_timing.DataSetupTime = 4;
normal_mode_timing.BusTurnAroundDuration = 0;
normal_mode_timing.CLKDivision = 2;
normal_mode_timing.DataLatency = 2;
normal_mode_timing.AccessMode = FMC_ACCESS_MODE_A;
HAL_SRAM_Init(&external_display_data_sram, &normal_mode_timing, NULL);