-
Notifications
You must be signed in to change notification settings - Fork 4
add gd32e51x #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
add gd32e51x #4
Changes from all commits
397e5b4
320fe5e
021e03c
a08da02
4c219e7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| 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 */ | ||
| #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 */ | ||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: "aquired" → "acquired".
Minor spelling error in the comment.
📝 Committable suggestion
🤖 Prompt for AI Agents