mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
60 lines
2.3 KiB
C
60 lines
2.3 KiB
C
/*
|
|
* Pins.h
|
|
*
|
|
* Created on: 29 May 2020
|
|
* Author: Ralim
|
|
*/
|
|
|
|
#ifndef BSP_MINIWARE_PINS_H_
|
|
#define BSP_MINIWARE_PINS_H_
|
|
#include "configuration.h"
|
|
|
|
// MHP30 pin map
|
|
#define KEY_B_Pin GPIO_PIN_0
|
|
#define KEY_B_GPIO_Port GPIOB
|
|
#define TMP36_INPUT_Pin GPIO_PIN_1
|
|
#define TMP36_INPUT_GPIO_Port GPIOB
|
|
#define TMP36_ADC1_CHANNEL ADC_CHANNEL_9
|
|
#define TMP36_ADC2_CHANNEL ADC_CHANNEL_9
|
|
#define TIP_TEMP_Pin GPIO_PIN_2
|
|
#define TIP_TEMP_GPIO_Port GPIOA
|
|
#define TIP_TEMP_ADC1_CHANNEL ADC_CHANNEL_2
|
|
#define TIP_TEMP_ADC2_CHANNEL ADC_CHANNEL_2
|
|
#define VIN_Pin GPIO_PIN_1
|
|
#define VIN_GPIO_Port GPIOA
|
|
#define VIN_ADC1_CHANNEL ADC_CHANNEL_1
|
|
#define VIN_ADC2_CHANNEL ADC_CHANNEL_1
|
|
#define OLED_RESET_Pin GPIO_PIN_4
|
|
#define OLED_RESET_GPIO_Port GPIOB
|
|
#define KEY_A_Pin GPIO_PIN_10
|
|
#define KEY_A_GPIO_Port GPIOA
|
|
#define PWM_Out_Pin GPIO_PIN_6
|
|
#define PWM_Out_GPIO_Port GPIOA
|
|
#define PWM_Out_CHANNEL TIM_CHANNEL_1
|
|
#define BUZZER_Pin GPIO_PIN_7
|
|
#define BUZZER_GPIO_Port GPIOA
|
|
#define BUZZER_CHANNEL TIM_CHANNEL_2
|
|
#define SCL_Pin GPIO_PIN_6
|
|
#define SCL_GPIO_Port GPIOB
|
|
#define SDA_Pin GPIO_PIN_7
|
|
#define SDA_GPIO_Port GPIOB
|
|
#define SCL2_Pin GPIO_PIN_3
|
|
#define SCL2_GPIO_Port GPIOB
|
|
#define SDA2_Pin GPIO_PIN_15
|
|
#define SDA2_GPIO_Port GPIOA
|
|
#define INT_PD_Pin GPIO_PIN_5
|
|
#define INT_PD_GPIO_Port GPIOB
|
|
#define HEAT_EN_Pin GPIO_PIN_3
|
|
#define HEAT_EN_GPIO_Port GPIOA
|
|
#define PLATE_SENSOR_PULLUP_Pin GPIO_PIN_1
|
|
#define PLATE_SENSOR_PULLUP_GPIO_Port GPIOD
|
|
|
|
#define PLATE_SENSOR_Pin GPIO_PIN_5
|
|
#define PLATE_SENSOR_GPIO_Port GPIOA
|
|
#define PLATE_SENSOR_ADC1_CHANNEL ADC_CHANNEL_5
|
|
#define PLATE_SENSOR_ADC2_CHANNEL ADC_CHANNEL_5
|
|
|
|
#define WS2812_Pin GPIO_PIN_8
|
|
#define WS2812_GPIO_Port GPIOA
|
|
#endif /* BSP_MINIWARE_PINS_H_ */
|