Loading...
Searching...
No Matches
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
20#ifndef AEM_H
21#define AEM_H
22
23#include "board.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
32#define AEM_DWT_CTRL (0x400113FF)
33
38#define AEM_TPI_ACPR (0xf)
39#define AEM_TPI_SPPR (0x2)
40#define AEM_TPI_FFCR (0x100)
47#define AEM_ITM_LAR (0xc5acce55)
48#define AEM_ITM_TCR (0x10009)
57void aem_init(void);
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif /* AEM_H */
void aem_init(void)
Initialize the advanced energy monitor.