~aleteoryx/muditaos

ref: a0677af340a1fec8e8652b64fb97ca7f0902de12 muditaos/module-bsp/board/rt1051/drivers/RT1051DriverPWMhelper.hpp -rw-r--r-- 373 bytes
a0677af3 — Marek Niepieklo [CP-615] Update existing backup/restore implementation in OS 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;
}