-
Notifications
You must be signed in to change notification settings - Fork 977
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
1 parent
8509fea
commit b0a0783
Showing
128 changed files
with
85,878 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
common: | ||
macros: | ||
- TARGET_MCU_PSOC6 | ||
includes: | ||
- source/family/infineon/PSoC6xxx | ||
sources: | ||
board: | ||
- source/board/cy8ckit.c | ||
target: | ||
- source/family/infineon/target.c | ||
- source/family/infineon/target_reset.c | ||
- source/family/infineon/PSoC6xxx/PSOC6xxx.c | ||
|
||
|
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,27 @@ | ||
common: | ||
target: | ||
- CY8C5868LTI-LP039 | ||
core: | ||
- Cortex-M3 | ||
macros: | ||
- INTERFACE_PSOC5LP | ||
- OS_CLOCK=64000000 | ||
- DAPLINK_HIC_ID=0x2E127069 # DAPLINK_HIC_ID_PSOC5LP | ||
includes: | ||
- source/hic_hal/infineon/psoc5lp | ||
- source/hic_hal/infineon/psoc5lp/PSoC5 | ||
sources: | ||
hic_hal: | ||
- source/hic_hal/infineon/psoc5lp | ||
- source/hic_hal/infineon/psoc5lp/PSoC5 | ||
- source/hic_hal/infineon/psoc5lp/armcc | ||
|
||
tool_specific: | ||
uvision: | ||
misc: | ||
ld_flags: | ||
- --predefine="-I..\..\..\source\hic_hal\infineon\psoc5lp" | ||
make_armcc: | ||
misc: | ||
ld_flags: | ||
- --predefine="-Isource\hic_hal\infineon\psoc5lp" |
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,49 @@ | ||
/******************************************************************************* | ||
* @file cy8ckit.c | ||
* @brief Board ID definitions for KitProg3 devices. | ||
* | ||
******************************************************************************** | ||
* Copyright (2019-2021) Cypress Semiconductor Corporation (an Infineon company) | ||
* or an affiliate of Cypress Semiconductor Corporation. | ||
* | ||
* 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 | ||
* | ||
* http://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. | ||
*****************************************************************************/ | ||
|
||
#include "target_board.h" | ||
#include "target_family.h" | ||
#include "kit_utils.h" | ||
|
||
// Called in main_task() to init before USB and files are configured | ||
static void prerun_board_config(void) | ||
{ | ||
// Define board ID | ||
define_board_id(); | ||
|
||
//Reset target | ||
(void)target_set_state(RESET_RUN); | ||
} | ||
|
||
|
||
// Default Daplink board_info | ||
// The g_board_info also defined in target_board.c but with __attribute__((weak)) | ||
// coverity[misra_c_2012_rule_8_6_violation] | ||
const board_info_t g_board_info = | ||
{ | ||
.info_version = (uint16_t)kBoardInfoVersion, | ||
.board_id = "19FF", | ||
.family_id = (uint16_t)kCypress_psoc6_FamilyID, | ||
.target_cfg = &target_device, | ||
.prerun_board_config = prerun_board_config, | ||
.flags = (uint32_t)kEnablePageErase | ||
}; | ||
|
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
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
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
Oops, something went wrong.