<commit_before>#include "variant/sdc_platform.hpp"

#include "hal.h"

// SDC1 configuration
static const SDCConfig SDC1_CONFIG {
  0   // Dummy
};

SDCPlatform::SDCPlatform() {
  sdcStart(&SDCD1, &SDC1_CONFIG);
}

SDCDriver& SDCPlatform::getSDCDriver() {
  return SDCD1;
}<commit_msg>refs #18 Add SDC platform pin modes.<commit_after>#include "variant/sdc_platform.hpp"

#include "hal.h"

// SDC1 configuration
static const SDCConfig SDC1_CONFIG {
  0   // Dummy
};

SDCPlatform::SDCPlatform() {
  sdcStart(&SDCD1, &SDC1_CONFIG);
  palSetPadMode(GPIOB, 12, PAL_MODE_INPUT_PULLUP);    // uSD-CD
  palSetPadMode(GPIOC,  8, PAL_MODE_ALTERNATE(12));   // SDIO-D0
  palSetPadMode(GPIOC,  9, PAL_MODE_ALTERNATE(12));   // SDIO-D1
  palSetPadMode(GPIOC, 10, PAL_MODE_ALTERNATE(12));   // SDIO-D2
  palSetPadMode(GPIOC, 11, PAL_MODE_ALTERNATE(12));   // SDIO-D3
  palSetPadMode(GPIOC, 12, PAL_MODE_ALTERNATE(12));   // SDIO-CK
  palSetPadMode(GPIOD,  2, PAL_MODE_ALTERNATE(12));   // SDIO-CMD
}

SDCDriver& SDCPlatform::getSDCDriver() {
  return SDCD1;
}
{'fraction_non_alphanumeric': 0.14149139579349904, 'fraction_numerical': 0.03919694072657744, 'mean_word_length': 4.629032258064516, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6432008', 'n_tokens_mistral': 461, 'n_tokens_neox': 440, 'n_words': 72}