-
Notifications
You must be signed in to change notification settings - Fork 3k
SDP-K1: Updates to target code #10471
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
869e48d
Improvements made to PinNames.h of SDP-K1 board.
malavikasajikumar f11f63d
AWAKE signal turned on at system init for SDP-K1 board.
malavikasajikumar e0faeb2
Fixing alignment.
malavikasajikumar d41962a
SDP_K1: Fix year change in the system clock
0xc0170 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,7 +1,7 @@ | ||
/* mbed Microcontroller Library | ||
* Copyright (c) 2006-2019 ARM Limited | ||
* Copyright (c) 2006-2017 ARM Limited | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2019 as this one is being edited this year |
||
* 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 | ||
|
@@ -58,6 +58,7 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass); | |
uint8_t SetSysClock_PLL_HSI(void); | ||
#endif /* ((CLOCK_SOURCE) & USE_PLL_HSI) */ | ||
|
||
static void TurnOnAwakeSignal(void); | ||
|
||
/** | ||
* @brief Setup the microcontroller system | ||
|
@@ -102,6 +103,7 @@ void SystemInit(void) | |
SCB->VTOR = NVIC_FLASH_VECTOR_ADDRESS; /* Vector Table Relocation in Internal FLASH */ | ||
#endif | ||
|
||
TurnOnAwakeSignal(); | ||
} | ||
|
||
|
||
|
@@ -274,3 +276,27 @@ uint8_t SetSysClock_PLL_HSI(void) | |
return 1; // OK | ||
} | ||
#endif /* ((CLOCK_SOURCE) & USE_PLL_HSI) */ | ||
|
||
/** | ||
* @brief Sets F469 "Awake" signal (PK3 pin) to turn on daughterboard power supplies | ||
* @param None | ||
* @retval None | ||
* | ||
*/ | ||
static void TurnOnAwakeSignal(void) | ||
{ | ||
GPIO_InitTypeDef GPIO_InitStruct; | ||
|
||
/* Enable peripheral clock */ | ||
__HAL_RCC_GPIOK_CLK_ENABLE(); | ||
|
||
/* GPIO Configuration */ | ||
GPIO_InitStruct.Pin = GPIO_PIN_3; | ||
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; | ||
GPIO_InitStruct.Pull = GPIO_NOPULL; | ||
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; | ||
HAL_GPIO_Init(GPIOK, &GPIO_InitStruct); | ||
|
||
/* Enable AWAKE pin */ | ||
HAL_GPIO_WritePin(GPIOK, GPIO_PIN_3, GPIO_PIN_SET); | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Please fix alignment in this file (LED_ORANGE aligned with LED_RED and others for instance)
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.
Thanks, @0xc0170.
e0faeb2