添加一些关于midi播放的项目

This commit is contained in:
terryLP
2025-03-24 14:30:56 +08:00
parent e31eb22077
commit 498b4ef13b
699 changed files with 186162 additions and 1 deletions
@@ -0,0 +1,50 @@
/*
** ###################################################################
* @brief Device specific configuration file for MKE02Z2 (implementation file)
*
* Provides a system configuration function and a global variable that contains
* the system frequency. It configures the device and initializes the oscillator
* (PLL) that is part of the microcontroller device.
*/
#include <stdint.h>
#include "NV32F100.h"
#define DISABLE_WDOG 1
#define DEFAULT_SYSTEM_CLOCK 20971520u /* Default System clock value */
/* ----------------------------------------------------------------------------
-- Core clock
---------------------------------------------------------------------------- */
uint32_t SystemCoreClock = DEFAULT_SYSTEM_CLOCK;
/* ----------------------------------------------------------------------------
-- SystemInit()
---------------------------------------------------------------------------- */
#define WDOG_TOVAL *((volatile uint16_t *)(&WDOG->TOVALH))
#define WDOG_CNT *((volatile uint16_t *)(&WDOG->CNTH))
void SystemInit (void) {
#if (DISABLE_WDOG)
/* Disable the WDOG module */
WDOG_CNT = 0x20C5;
WDOG_CNT = 0x28D9;
WDOG_TOVAL = 0xFFFF;
//WDOG_WIN = 0; /* NOTE: this will cause HARDFAULT error*/
WDOG->WINH = 0xFF;
WDOG->WINL = 0xFF;
WDOG->CS2 = 0x01;
WDOG->CS1 = 0x20; /* WDOGA = 1 to allow reconfigure watchdog at any time by executing an unlock sequence */
#endif
}
/* ----------------------------------------------------------------------------
-- SystemCoreClockUpdate()
---------------------------------------------------------------------------- */
void SystemCoreClockUpdate (void) {
}