-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
9,952 additions
and
9,644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
DEFINES=#MEM_DEBUG | ||
#DEFINES=MEM_DEBUG | ||
|
||
include ../firmware-template-gd32/lib/Rules.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/** | ||
* @file logic_analyzer.h | ||
* | ||
*/ | ||
/* Copyright (C) 2022 by Arjan van Vught mailto:[email protected] | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
* THE SOFTWARE. | ||
*/ | ||
|
||
#ifndef BOARD_LOGIC_ANALYZER_H_ | ||
#define BOARD_LOGIC_ANALYZER_H_ | ||
|
||
#if defined (BOARD_GD32F207C_EVAL) | ||
# define LOGIC_ANALYZER_CH0_GPIO_PINx GPIO_PIN_0 | ||
# define LOGIC_ANALYZER_CH1_GPIO_PINx GPIO_PIN_1 | ||
# define LOGIC_ANALYZER_CH2_GPIO_PINx GPIO_PIN_7 | ||
//#define LOGIC_ANALYZER_CH3_GPIO_PINx | ||
//#define LOGIC_ANALYZER_CH4_GPIO_PINx | ||
//#define LOGIC_ANALYZER_CH5_GPIO_PINx | ||
//#define LOGIC_ANALYZER_CH6_GPIO_PINx | ||
//#define LOGIC_ANALYZER_CH7_GPIO_PINx | ||
|
||
# define LOGIC_ANALYZER_CH0_GPIOx GPIOE | ||
# define LOGIC_ANALYZER_CH1_GPIOx GPIOE | ||
# define LOGIC_ANALYZER_CH2_GPIOx GPIOD | ||
# define LOGIC_ANALYZER_CH3_GPIOx | ||
# define LOGIC_ANALYZER_CH4_GPIOx | ||
# define LOGIC_ANALYZER_CH5_GPIOx | ||
# define LOGIC_ANALYZER_CH6_GPIOx | ||
# define LOGIC_ANALYZER_CH7_GPIOx | ||
|
||
# define LOGIC_ANALYZER_CH0_RCU_GPIOx RCU_GPIOE | ||
# define LOGIC_ANALYZER_CH1_RCU_GPIOx RCU_GPIOE | ||
# define LOGIC_ANALYZER_CH2_RCU_GPIOx RCU_GPIOD | ||
# define LOGIC_ANALYZER_CH3_RCU_GPIOx | ||
# define LOGIC_ANALYZER_CH4_RCU_GPIOx | ||
# define LOGIC_ANALYZER_CH5_RCU_GPIOx | ||
# define LOGIC_ANALYZER_CH6_RCU_GPIOx | ||
# define LOGIC_ANALYZER_CH7_RCU_GPIOx | ||
#else | ||
# define LOGIC_ANALYZER_CH0_GPIO_PINx GPIO_PIN_3 // GPIO_EXT_23 | ||
# define LOGIC_ANALYZER_CH1_GPIO_PINx GPIO_PIN_4 // GPIO_EXT_21 | ||
# define LOGIC_ANALYZER_CH2_GPIO_PINx GPIO_PIN_5 // GPIO_EXT_19 | ||
# define LOGIC_ANALYZER_CH3_GPIO_PINx GPIO_PIN_14 // GPIO_EXT_26 | ||
//# define LOGIC_ANALYZER_CH4_GPIO_PINx GPIO_PIN_11 // GPIO_EXT_22 | ||
# define LOGIC_ANALYZER_CH5_GPIO_PINx GPIO_PIN_13 // GPIO_EXT_18 | ||
//# define LOGIC_ANALYZER_CH6_GPIO_PINx GPIO_PIN_ | ||
//# define LOGIC_ANALYZER_CH7_GPIO_PINx GPIO_PIN_ | ||
|
||
# define LOGIC_ANALYZER_CH0_GPIOx GPIOB | ||
# define LOGIC_ANALYZER_CH1_GPIOx GPIOB | ||
# define LOGIC_ANALYZER_CH2_GPIOx GPIOB | ||
# define LOGIC_ANALYZER_CH3_GPIOx GPIOA | ||
# define LOGIC_ANALYZER_CH4_GPIOx GPIOA | ||
# define LOGIC_ANALYZER_CH5_GPIOx GPIOA | ||
# define LOGIC_ANALYZER_CH6_GPIOx GPIO | ||
# define LOGIC_ANALYZER_CH7_GPIOx GPIO | ||
|
||
# define LOGIC_ANALYZER_CH0_RCU_GPIOx RCU_GPIOB | ||
# define LOGIC_ANALYZER_CH1_RCU_GPIOx RCU_GPIOB | ||
# define LOGIC_ANALYZER_CH2_RCU_GPIOx RCU_GPIOB | ||
# define LOGIC_ANALYZER_CH3_RCU_GPIOx RCU_GPIOA | ||
# define LOGIC_ANALYZER_CH4_RCU_GPIOx RCU_GPIOA | ||
# define LOGIC_ANALYZER_CH5_RCU_GPIOx RCU_GPIOA | ||
# define LOGIC_ANALYZER_CH6_RCU_GPIOx RCU_GPIO | ||
# define LOGIC_ANALYZER_CH7_RCU_GPIOx RCU_GPIO | ||
#endif | ||
|
||
#endif /* BOARD_LOGIC_ANALYZER_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.