-
Notifications
You must be signed in to change notification settings - Fork 3k
STM32F4 - Add low power timer #2760
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
Conversation
@@ -39,12 +40,31 @@ static int rtc_inited = 0; | |||
|
|||
static RTC_HandleTypeDef RtcHandle; | |||
|
|||
#if DEVICE_RTC_LSI |
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.
DEVICE_ reserved for device_has list. macros can use STM or just RTC_LSI
RtcHandle.Init.OutPut = RTC_OUTPUT_DISABLE; | ||
RtcHandle.Init.OutPutPolarity = RTC_OUTPUT_POLARITY_HIGH; | ||
RtcHandle.Init.OutPutType = RTC_OUTPUT_TYPE_OPENDRAIN; | ||
|
||
if (HAL_RTC_Init(&RtcHandle) != HAL_OK) { | ||
error("RTC error: RTC initialization failed."); | ||
} | ||
|
||
#if DEVICE_LOWPOWERTIMER | ||
#if DEVICE_RTC_LSI |
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.
same as above about DEVICE_
@@ -129,6 +159,7 @@ void rtc_free(void) | |||
RCC_OscInitStruct.LSIState = RCC_LSI_OFF; | |||
RCC_OscInitStruct.LSEState = RCC_LSE_OFF; | |||
HAL_RCC_OscConfig(&RCC_OscInitStruct); | |||
|
|||
#if DEVICE_RTC_LSI |
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.
same as above about DEVICE_
@svastm can this be rebased and conflicts resolved? |
rebased |
@@ -862,7 +862,8 @@ | |||
"progen": {"target": "nucleo-f446ze"}, | |||
"detect_code": ["0778"], | |||
"macros": ["TRANSACTION_QUEUE_SIZE_SPI=2"], | |||
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES"] | |||
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES"], | |||
"release_versions": ["2", "5"] |
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.
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.
Looks like it.
@sg- I don't understand the |
There is a conflict or something blocking the next step, CI
|
Enable the low power timer for the following targets: - NUCLEO_F411RE - NUCLEO_F401RE - DISCO_F429ZI - NUCLEO_F446RE - NUCLEO_F410RB - DISCO_F469NI - NUCLEO_F446ZE - B86B_F446VE
Rebased |
@svastm Can you address |
/morph test |
@mbed-bot: TEST HOST_OSES=ALL |
[Build ${MBED_BUILD_ID}] |
@mbed-bot: TEST HOST_OSES=ALL |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 982 All builds and test passed! |
[Build 994] |
This PR add a low power timer implementation for STM32F0 targets.
Concern:
Results
Tests