-
Notifications
You must be signed in to change notification settings - Fork 13
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
[wip]add pinconfig and hal for gd32c10xxx #13
base: main
Are you sure you want to change the base?
Conversation
Add pin configurations for the GD32C103XX SoCs. Signed-off-by: YuLong Yao <[email protected]>
dt-bindings: add pinctrl gd32c403xx generated headers Signed-off-by: YuLong Yao <[email protected]>
gd32c103: add gd32c1xx hal code from gigadevice website. Signed-off-by: YuLong Yao <[email protected]>
hal,gd32c103:fix `timer` and `can` module Signed-off-by: YuLong Yao <[email protected]>
* SPDX-License-Identifier: Apache 2.0 | ||
*/ | ||
|
||
#include "gd32c103xx-afio.h" |
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.
I can't see this file in this PR
/* CAN communication mode */ | ||
#define CAN_NORMAL_MODE ((uint8_t)0x00U) /*!< normal communication mode */ | ||
#define CAN_LOOPBACK_MODE ((uint8_t)0x01U) /*!< loopback communication mode */ | ||
#define CAN_SILENT_MODE ((uint8_t)0x02U) /*!< silent communication mode */ | ||
#define CAN_SILENT_LOOPBACK_MODE ((uint8_t)0x03U) /*!< loopback and silent communication mode */ | ||
|
||
/* CAN timeout */ | ||
#define CAN_TIMEOUT ((uint32_t)0x0000FFFFU) /*!< timeout value */ |
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.
this definitions need to be public, see https://github.com/zephyrproject-rtos/hal_gigadevice/blob/main/gd32f4xx/standard_peripheral/include/gd32f4xx_can.h#L597
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.
Hi @feilongfl .
You need review dt-bindings: add pinctrl gd32c103xx generated headers
commit. There is mention to gd32c403xx MCU.
This can only be merged after a board be build at main repository,
Hi!
this PR add support for
gd32c10xxx
device and oldgd32e103xx
device.hal code from:
http://www.gd32mcu.com/cn/download/7?kw=GD32C1
-> GD32C10x Firmware Library
V1.0.1
I made some modifications to hal code with reference to #6