Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
periph_cpu.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2023 HAW Hamburg
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
17
18
#include <stdint.h>
19
20
#include "
periph_gba.h
"
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
29
#define CLOCK_CORECLOCK (16780000U)
/* 16.78MHz */
30
35
#define TIMER_NUMOF (4U)
36
#define TIMER_CHANNEL_NUMOF (1U)
37
#define TIMER_0_MAX_VALUE (0xffff)
38
#define TIMER_1_MAX_VALUE (0xffff)
39
#define TIMER_2_MAX_VALUE (0xffff)
40
#define TIMER_3_MAX_VALUE (0xffff)
41
#define PERIPH_TIMER_PROVIDES_SET
43
56
#define CONFIG_ZTIMER_USEC_DEV (TIMER_DEV(0))
57
#define CONFIG_ZTIMER_USEC_BASE_FREQ (GBA_TIMER_FRQ_262K)
58
#define CONFIG_ZTIMER_USEC_WIDTH (16)
59
#define CONFIG_ZTIMER_USEC_ADJUST_SET (308)
60
#define CONFIG_ZTIMER_USEC_ADJUST_SLEEP (312)
62
63
#ifdef __cplusplus
64
}
65
#endif
66
periph_gba.h
GBA specific definitions for internal peripheral handling.
Generated on Tue Nov 3 2026 15:01:15 by
1.13.2