Use nested namespaces

This commit is contained in:
Màrius Montón 2022-10-06 17:23:14 +02:00
parent 61fbe8cecd
commit 6fa13b2056
No known key found for this signature in database
GPG Key ID: FA199E7A752699F0
3 changed files with 145 additions and 151 deletions

View File

@ -21,8 +21,7 @@
#include "BusCtrl.h" #include "BusCtrl.h"
namespace riscv_tlm { namespace riscv_tlm::peripherals {
namespace peripherals {
/** /**
* @brief Simple timer peripheral * @brief Simple timer peripheral
* *
@ -69,5 +68,4 @@ namespace riscv_tlm {
sc_core::sc_event timer_event; /**< event */ sc_core::sc_event timer_event; /**< event */
}; };
} }
}
#endif #endif

View File

@ -19,8 +19,7 @@
#include "tlm.h" #include "tlm.h"
#include "tlm_utils/simple_target_socket.h" #include "tlm_utils/simple_target_socket.h"
namespace riscv_tlm { namespace riscv_tlm::peripherals {
namespace peripherals {
/** /**
* @brief Simple trace peripheral * @brief Simple trace peripheral
* *
@ -62,5 +61,4 @@ namespace riscv_tlm {
int xtermPid{}; int xtermPid{};
}; };
} }
}
#endif #endif

View File

@ -20,8 +20,7 @@
#include "Trace.h" #include "Trace.h"
namespace riscv_tlm { namespace riscv_tlm::peripherals {
namespace peripherals {
void Trace::xtermLaunch(char *slaveName) const { void Trace::xtermLaunch(char *slaveName) const {
char *arg; char *arg;
@ -114,4 +113,3 @@ namespace riscv_tlm {
trans.set_response_status(tlm::TLM_OK_RESPONSE); trans.set_response_status(tlm::TLM_OK_RESPONSE);
} }
} }
}