mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-19 04:48:12 +00:00
fix(core): fix optiga warm reset start-up time
[no changelog]
This commit is contained in:
parent
140e17039a
commit
024ea604ca
@ -12,11 +12,14 @@ void optiga_hal_init(void) {
|
|||||||
GPIO_InitStructure.Pin = GPIO_PIN_9;
|
GPIO_InitStructure.Pin = GPIO_PIN_9;
|
||||||
HAL_GPIO_Init(GPIOD, &GPIO_InitStructure);
|
HAL_GPIO_Init(GPIOD, &GPIO_InitStructure);
|
||||||
HAL_GPIO_WritePin(GPIOD, GPIO_PIN_9, GPIO_PIN_SET);
|
HAL_GPIO_WritePin(GPIOD, GPIO_PIN_9, GPIO_PIN_SET);
|
||||||
hal_delay(1);
|
// warm reset startup time min 15ms
|
||||||
|
hal_delay(20);
|
||||||
}
|
}
|
||||||
|
|
||||||
void optiga_reset(void) {
|
void optiga_reset(void) {
|
||||||
HAL_GPIO_WritePin(GPIOD, GPIO_PIN_9, GPIO_PIN_RESET);
|
HAL_GPIO_WritePin(GPIOD, GPIO_PIN_9, GPIO_PIN_RESET);
|
||||||
hal_delay(10);
|
hal_delay(10);
|
||||||
HAL_GPIO_WritePin(GPIOD, GPIO_PIN_9, GPIO_PIN_SET);
|
HAL_GPIO_WritePin(GPIOD, GPIO_PIN_9, GPIO_PIN_SET);
|
||||||
|
// warm reset startup time min 15ms
|
||||||
|
hal_delay(20);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user