aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJonny Svärd <jonny.svaerd@arm.com>2021-12-17 17:00:57 +0100
committerJonny Svärd <jonny.svaerd@arm.com>2021-12-22 13:11:51 +0100
commit20ce37ffbafcd76775c7011fea4d017de4669d0a (patch)
treee5a8d0aac839378fef7b4bff9b04261da4c9d532 /include
parent6d5b083e2e4279284f406d73c7f92e48ef28b218 (diff)
downloadethos-u-core-driver-20ce37ffbafcd76775c7011fea4d017de4669d0a.tar.gz
Add func to get nbr of PMU event counters
Small bugfix to a print in driver Change-Id: I277a441a9f65c647c338b92af5a908176929102c
Diffstat (limited to 'include')
-rw-r--r--include/pmu_ethosu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/pmu_ethosu.h b/include/pmu_ethosu.h
index 0c1475d..1a9bfd8 100644
--- a/include/pmu_ethosu.h
+++ b/include/pmu_ethosu.h
@@ -154,6 +154,12 @@ void ETHOSU_PMU_Disable(struct ethosu_driver *drv);
void ETHOSU_PMU_Set_EVTYPER(struct ethosu_driver *drv, uint32_t num, enum ethosu_pmu_event_type type);
/**
+ * \brief Get number of PMU event counters
+ * \return Number of event counters
+ */
+uint32_t ETHOSU_PMU_Get_NumEventCounters(void);
+
+/**
* \brief Get event to count for PMU eventer counter
* \param [in] num Event counter (0-ETHOSU_PMU_NCOUNTERS) to configure
* \return type Event to count