URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
[/] [neorv32/] [trunk/] [sw/] [lib/] [source/] [neorv32_wdt.c] - Diff between revs 2 and 12
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 2 |
Rev 12 |
Line 50... |
Line 50... |
*
|
*
|
* @return 0 if WDT was not synthesized, 1 if WDT is available.
|
* @return 0 if WDT was not synthesized, 1 if WDT is available.
|
**************************************************************************/
|
**************************************************************************/
|
int neorv32_wdt_available(void) {
|
int neorv32_wdt_available(void) {
|
|
|
if (neorv32_cpu_csr_read(CSR_MFEATURES) & (1 << CPU_MFEATURES_IO_WDT)) {
|
if (SYSINFO_FEATURES & (1 << SYSINFO_FEATURES_IO_WDT)) {
|
return 1;
|
return 1;
|
}
|
}
|
else {
|
else {
|
return 0;
|
return 0;
|
}
|
}
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.