Changeset a67b9b0 in rtems


Ignore:
Timestamp:
Jun 18, 2019, 10:52:53 AM (5 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
373cd1c5
Parents:
522cde4
Message:

atsam: Add ATSAM_POWER_WAIT_MODE

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/atsam/include/bsp/power.h

    r522cde4 ra67b9b0  
    180180 * @brief Power handler to enter the processor sleep mode.
    181181 *
    182  * For the power off state, the processor is set into the sleep mode and issues
    183  * a wait for interrupt instruction.
    184  *
    185182 * @see ATSAM_POWER_SLEEP_MODE().
    186183 */
    187184void atsam_power_handler_sleep_mode(
     185  const atsam_power_control *controls,
     186  atsam_power_state state
     187);
     188
     189/**
     190 * @brief Power handler to enter the processor wait mode.
     191 *
     192 * The internal flash is put into deep sleep mode.
     193 *
     194 * @see ATSAM_POWER_WAIT_MODE().
     195 */
     196void atsam_power_handler_wait_mode(
    188197  const atsam_power_control *controls,
    189198  atsam_power_state state
     
    214223 { .handler = atsam_power_handler_sleep_mode }
    215224
     225#define ATSAM_POWER_WAIT_MODE \
     226 { .handler = atsam_power_handler_wait_mode }
     227
    216228/**
    217229 * @brief Data for RTC driver power support.
  • c/src/lib/libbsp/arm/atsam/Makefile.am

    r522cde4 ra67b9b0  
    101101librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/start/power-clock.c
    102102librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/start/power-rtc.c
     103librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/start/power-wait.c
    103104librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/start/power.c
    104105librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/atsam/start/restart.c
Note: See TracChangeset for help on using the changeset viewer.