2012-03-14 20:37:28 +01:00
|
|
|
/****************************************************************************
|
|
|
|
* arch/arm/src/stm32/stm32_pminitialize.c
|
|
|
|
*
|
2021-03-24 09:35:39 +01:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership. The
|
|
|
|
* ASF licenses this file to you 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
|
2012-03-14 20:37:28 +01:00
|
|
|
*
|
2021-03-24 09:35:39 +01:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2012-03-14 20:37:28 +01:00
|
|
|
*
|
2021-03-24 09:35:39 +01:00
|
|
|
* 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.
|
2012-03-14 20:37:28 +01:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Included Files
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include <nuttx/config.h>
|
2022-04-22 03:13:30 +02:00
|
|
|
#include <nuttx/power/pm.h>
|
2012-03-14 20:37:28 +01:00
|
|
|
|
2020-05-01 03:20:29 +02:00
|
|
|
#include "arm_internal.h"
|
2012-03-14 20:37:28 +01:00
|
|
|
#include "stm32_pm.h"
|
|
|
|
|
|
|
|
#ifdef CONFIG_PM
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Public Functions
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/****************************************************************************
|
2020-05-01 16:50:23 +02:00
|
|
|
* Name: arm_pminitialize
|
2012-03-14 20:37:28 +01:00
|
|
|
*
|
|
|
|
* Description:
|
|
|
|
* This function is called by MCU-specific logic at power-on reset in
|
2019-09-05 16:10:42 +02:00
|
|
|
* order to provide one-time initialization the power management subsystem.
|
2013-12-05 17:37:55 +01:00
|
|
|
* This function must be called *very* early in the initialization sequence
|
2012-03-14 20:37:28 +01:00
|
|
|
* *before* any other device drivers are initialized (since they may
|
|
|
|
* attempt to register with the power management subsystem).
|
|
|
|
*
|
2018-02-01 17:00:02 +01:00
|
|
|
* Input Parameters:
|
2012-03-14 20:37:28 +01:00
|
|
|
* None.
|
|
|
|
*
|
2018-02-01 17:00:02 +01:00
|
|
|
* Returned Value:
|
2019-09-05 16:10:42 +02:00
|
|
|
* None.
|
2012-03-14 20:37:28 +01:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2020-05-01 16:50:23 +02:00
|
|
|
void arm_pminitialize(void)
|
2012-03-14 20:37:28 +01:00
|
|
|
{
|
2022-04-22 03:13:30 +02:00
|
|
|
/* Initialize the NuttX power management subsystem proper */
|
|
|
|
|
|
|
|
pm_initialize();
|
2012-03-14 20:37:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CONFIG_PM */
|