Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
397 changes: 397 additions & 0 deletions GD32E51x/GD/GD32E51x/Include/gd32e51x.h

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions GD32E51x/GD/GD32E51x/Include/system_gd32e51x.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*!
\file system_gd32e51x.h
\brief CMSIS Cortex-M33 Device Peripheral Access Layer Header File for
GD32E51x Device Series
*/

/*
* Copyright (c) 2009-2018 Arm Limited. All rights reserved.
* Copyright (c) 2024, GigaDevice Semiconductor Inc.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/* This file refers the CMSIS standard, some adjustments are made according to GigaDevice chips */

#ifndef SYSTEM_GD32E51X_H
#define SYSTEM_GD32E51X_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>

/* firmware version can be aquired by uncommenting the macro */
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo: "aquired" → "acquired".

Minor spelling error in the comment.

-/* firmware version can be aquired by uncommenting the macro */
+/* firmware version can be acquired by uncommenting the macro */
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
/* firmware version can be aquired by uncommenting the macro */
/* firmware version can be acquired by uncommenting the macro */
🤖 Prompt for AI Agents
In GD32E51x/GD/GD32E51x/Include/system_gd32e51x.h around line 37, the comment
contains a typo: replace "aquired" with the correct spelling "acquired" so the
comment reads "firmware version can be acquired by uncommenting the macro".

#define __FIRMWARE_VERSION_DEFINE

/* system clock frequency (core clock) */
extern uint32_t SystemCoreClock;

/* function declarations */
/* initialize the system and update the SystemCoreClock variable */
extern void SystemInit (void);
/* update the SystemCoreClock with current core clock retrieved from CPU registers */
extern void SystemCoreClockUpdate (void);
#ifdef __FIRMWARE_VERSION_DEFINE
/* get firmware version */
extern uint32_t gd32e51x_firmware_version_get(void);
#endif /* __FIRMWARE_VERSION_DEFINE */
#ifdef __cplusplus
}
#endif

#endif /* SYSTEM_GD32E51X_H */
438 changes: 438 additions & 0 deletions GD32E51x/GD/GD32E51x/Source/ARM/startup_gd32e51x_cl.s

Large diffs are not rendered by default.

418 changes: 418 additions & 0 deletions GD32E51x/GD/GD32E51x/Source/ARM/startup_gd32e51x_hd.s

Large diffs are not rendered by default.

392 changes: 392 additions & 0 deletions GD32E51x/GD/GD32E51x/Source/ARM/startup_gd32eprtxxa.s

Large diffs are not rendered by default.

459 changes: 459 additions & 0 deletions GD32E51x/GD/GD32E51x/Source/GCC/startup_gd32e51x_cl.S

Large diffs are not rendered by default.

433 changes: 433 additions & 0 deletions GD32E51x/GD/GD32E51x/Source/GCC/startup_gd32e51x_hd.S

Large diffs are not rendered by default.

397 changes: 397 additions & 0 deletions GD32E51x/GD/GD32E51x/Source/GCC/startup_gd32eprtxxa.S

Large diffs are not rendered by default.

Loading