aem.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Bas Stottelaar <basstottelaar@gmail.com>
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
22 #include "board.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
31 #define AEM_DWT_CTRL (0x400113FF)
32 
37 #define AEM_TPI_ACPR (0xf)
38 #define AEM_TPI_SPPR (0x2)
39 #define AEM_TPI_FFCR (0x100)
46 #define AEM_ITM_LAR (0xc5acce55)
47 #define AEM_ITM_TCR (0x10009)
56 void aem_init(void);
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
void aem_init(void)
Initialize the advanced energy monitor.