forked from cora35/dr6p
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmcuconf.h
38 lines (26 loc) · 887 Bytes
/
mcuconf.h
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
// Copyright 2024 SDK (@sdk66)
// 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_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_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