Software APIs
sw
device
silicon_creator
rom
e2e
bootstrap
rom_e2e_bootstrap_rma_test.c
1
// Copyright lowRISC contributors (OpenTitan project).
2
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3
// SPDX-License-Identifier: Apache-2.0
4
5
#include <
stdint.h
>
6
7
#include "
sw/device/lib/runtime/log.h
"
8
#include "
sw/device/lib/testing/test_framework/ottf_main.h
"
9
#include "sw/device/silicon_creator/lib/drivers/retention_sram.h"
10
11
OTTF_DEFINE_TEST_CONFIG();
12
13
bool
test_main
(
void
) {
14
uint32_t bitfield = retention_sram_get()->
creator
.
reset_reasons
;
15
LOG_INFO
(
"reset_info_bitfield: 0x%x"
, bitfield);
16
return
true
;
17
}
Return to
OpenTitan Documentation