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