[sw] cleanup legacy wrapper

This commit is contained in:
stnolting 2024-01-03 19:52:45 +01:00
parent 6bc6da70e7
commit 38f41b3ac7

View file

@ -3,7 +3,7 @@
// # ********************************************************************************************* #
// # BSD 3-Clause License #
// # #
// # Copyright (c) 2023, Stephan Nolting. All rights reserved. #
// # Copyright (c) 2024, Stephan Nolting. All rights reserved. #
// # #
// # Redistribution and use in source and binary forms, with or without modification, are #
// # permitted provided that the following conditions are met: #
@ -141,34 +141,4 @@ inline void __attribute__((deprecated("Use 'neorv32_uart0_puts()' instead."))) n
/**@}*/
// ================================================================================================
// CPU Core
// ================================================================================================
/**********************************************************************//**
* Get current system time from time[h] CSR.
* @note This function requires the MTIME system timer to be implemented.
* @return Current system time (64 bit).
**************************************************************************/
inline uint64_t __attribute__((deprecated("Use 'neorv32_mtime_get_time()' instead."))) neorv32_cpu_get_systime(void) {
return neorv32_mtime_get_time();
}
/**********************************************************************//**
* Enable global CPU interrupts (via MIE flag in mstatus CSR).
* @note Interrupts are always enabled when the CPU is in user-mode.
**************************************************************************/
inline void __attribute__ ((always_inline, deprecated("Use 'neorv32_cpu_csr_set(CSR_MSTATUS, 1 << CSR_MSTATUS_MIE)' instead."))) neorv32_cpu_eint(void) {
neorv32_cpu_csr_set(CSR_MSTATUS, 1 << CSR_MSTATUS_MIE);
}
/**********************************************************************//**
* Disable global CPU interrupts (via MIE flag in mstatus CSR).
* @note Interrupts are always enabled when the CPU is in user-mode.
**************************************************************************/
inline void __attribute__ ((always_inline, deprecated("Use 'neorv32_cpu_csr_clr(CSR_MSTATUS, 1 << CSR_MSTATUS_MIE)' instead."))) neorv32_cpu_dint(void) {
neorv32_cpu_csr_clr(CSR_MSTATUS, 1 << CSR_MSTATUS_MIE);
}
#endif // neorv32_legacy_h