-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmcuconf.h
More file actions
44 lines (30 loc) · 1.01 KB
/
mcuconf.h
File metadata and controls
44 lines (30 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright 2025 EPOMAKER (@Epomaker)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include_next <mcuconf.h>
#undef WB32_USB_HOST_WAKEUP_DURATION
#define WB32_USB_HOST_WAKEUP_DURATION 2
#undef WB32_SERIAL_USE_UART1
#define WB32_SERIAL_USE_UART1 TRUE
#undef WB32_SERIAL_USE_UART3
#define WB32_SERIAL_USE_UART3 TRUE
#undef WB32_SPI_USE_SPIM2
#define WB32_SPI_USE_SPIM2 TRUE
#undef WB32_SPI_USE_QSPI
#define WB32_SPI_USE_QSPI TRUE
// The interrupt priority of the WS2812 driver must be higher than that of other SPI devices.
#undef WB32_SPI_SPIM2_IRQ_PRIORITY
#define WB32_SPI_SPIM2_IRQ_PRIORITY 9
#undef WB32_SERIAL_UART1_PRIORITY
#define WB32_SERIAL_UART1_PRIORITY 10
#undef WB32_SPI_QSPI_IRQ_PRIORITY
#define WB32_SPI_QSPI_IRQ_PRIORITY 10
#undef WB32_SERIAL_UART3_PRIORITY
#define WB32_SERIAL_UART3_PRIORITY 8
/* system clock set to 96Mhz */
#undef WB32_PLLDIV_VALUE
#define WB32_PLLDIV_VALUE 2
#undef WB32_PLLMUL_VALUE
#define WB32_PLLMUL_VALUE 16
#undef WB32_USBPRE
#define WB32_USBPRE WB32_USBPRE_DIV2