~aleteoryx/muditaos

ref: 6f05514068f3a1cd70d535da1407a1fd12650b82 muditaos/module-bsp/board/rt1051/drivers/RT1051DriverPWMhelper.hpp -rw-r--r-- 373 bytes
6f055140 — Wojtek Cichoń [EGD-7462] Fixed wording and more 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include "module-bsp/board/rt1051/common/fsl_drivers/fsl_common.h"

static inline bool PWM_GetPwmGeneratorState(PWM_Type *base, uint8_t subModulesToStop)
{
    return (base->MCTRL & PWM_MCTRL_RUN(subModulesToStop)) != 0;
}