Prusa MINI Firmware overview
pinmapping.h File Reference
#include "../../../inc/MarlinConfigPre.h"
#include <stdint.h>
#include "../hardware/Gpio.h"

Go to the source code of this file.

Macros

#define P_NC   -1
 
#define HAL_SENSITIVE_PINS
 

Typedefs

typedef pin_type pin_t
 

Functions

pin_t analogInputToDigitalPin (const int8_t p)
 
int16_t GET_PIN_MAP_INDEX (const pin_t pin)
 
bool VALID_PIN (const pin_t p)
 
int8_t DIGITAL_PIN_TO_ANALOG_PIN (const pin_t p)
 
bool PWM_PIN (const pin_t p)
 
bool INTERRUPT_PIN (const pin_t p)
 
pin_t GET_PIN_MAP_PIN (const int16_t ind)
 
int16_t PARSED_PIN_INDEX (const char code, const int16_t dval)
 

Variables

constexpr uint16_t NUM_DIGITAL_PINS = Gpio::pin_count
 
constexpr uint8_t NUM_ANALOG_INPUTS = 16
 

Macro Definition Documentation

◆ P_NC

#define P_NC   -1

◆ HAL_SENSITIVE_PINS

#define HAL_SENSITIVE_PINS

Typedef Documentation

◆ pin_t

typedef pin_type pin_t

Marlin 3D Printer Firmware Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]

Based on Sprinter and grbl. Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Function Documentation

◆ analogInputToDigitalPin()

pin_t analogInputToDigitalPin ( const int8_t  p)

◆ GET_PIN_MAP_INDEX()

int16_t GET_PIN_MAP_INDEX ( const pin_t  pin)

◆ VALID_PIN()

bool VALID_PIN ( const pin_t  p)
Here is the caller graph for this function:

◆ DIGITAL_PIN_TO_ANALOG_PIN()

int8_t DIGITAL_PIN_TO_ANALOG_PIN ( const pin_t  p)
Here is the caller graph for this function:

◆ PWM_PIN()

bool PWM_PIN ( const pin_t  p)
Here is the caller graph for this function:

◆ INTERRUPT_PIN()

bool INTERRUPT_PIN ( const pin_t  p)

◆ GET_PIN_MAP_PIN()

pin_t GET_PIN_MAP_PIN ( const int16_t  ind)

◆ PARSED_PIN_INDEX()

int16_t PARSED_PIN_INDEX ( const char  code,
const int16_t  dval 
)

Variable Documentation

◆ NUM_DIGITAL_PINS

constexpr uint16_t NUM_DIGITAL_PINS = Gpio::pin_count
constexpr

◆ NUM_ANALOG_INPUTS

constexpr uint8_t NUM_ANALOG_INPUTS = 16
constexpr