<commit_before>//
// Copyright (c) 2017 The nanoFramework project contributors
// See LICENSE file in the project root for full license information.
//

#include <ch.h>
#include <hal.h>
#include <cmsis_os.h>
#include <targetPAL.h>
#include "win_dev_pwm_native.h"
#include <swo.h>


int Library_win_dev_pwm_native_Windows_Devices_Pwm_PwmPin::GetChannel (int pin, int timerId)
{
    int channel = 0;
#if defined(STM32F427xx) || defined(STM32F429xx)
    switch (timerId)
    {
        case 1 :
            switch (pin)
            {
                case 8 :          // PA8
                case 4*16+9 :     // PE9
                    channel = 0;
                    break;<commit_msg>Fix potential issue with PwmPin::GetChannel<commit_after>//
// Copyright (c) 2017 The nanoFramework project contributors
// See LICENSE file in the project root for full license information.
//

#include <ch.h>
#include <hal.h>
#include <cmsis_os.h>
#include <targetPAL.h>
#include "win_dev_pwm_native.h"
#include <swo.h>


int Library_win_dev_pwm_native_Windows_Devices_Pwm_PwmPin::GetChannel (int pin, int timerId)
{
    (void)pin;
    (void)timerId;

    int channel = 0;
#if defined(STM32F427xx) || defined(STM32F429xx)
    switch (timerId)
    {
        case 1 :
            switch (pin)
            {
                case 8 :          // PA8
                case 4*16+9 :     // PE9
                    channel = 0;
                    break;
{'fraction_non_alphanumeric': 0.10482180293501048, 'fraction_numerical': 0.033542976939203356, 'mean_word_length': 2.1130434782608694, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5533275', 'n_tokens_mistral': 512, 'n_tokens_neox': 463, 'n_words': 121}