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
23extern "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
GBA specific definitions for internal peripheral handling.