|
|
@ -24,7 +24,7 @@
|
|
|
|
* MALYAN M200 pin assignments
|
|
|
|
* MALYAN M200 pin assignments
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __STM32F1__
|
|
|
|
#if !defined(__STM32F1__) && !defined(STM32F1xx) && !defined(STM32F0xx)
|
|
|
|
#error "Oops! You must be compiling for STM32."
|
|
|
|
#error "Oops! You must be compiling for STM32."
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
@ -37,6 +37,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
#define SDSS SS_PIN
|
|
|
|
#define SDSS SS_PIN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Based on PWM timer usage, we have to use these timers and soft PWM for the fans
|
|
|
|
|
|
|
|
// On STM32F103:
|
|
|
|
|
|
|
|
// PB3, PB6, PB7, and PB8 can be used with pwm, which rules out TIM2 and TIM4.
|
|
|
|
|
|
|
|
// On STM32F070, 16 and 17 are in use, but 1 and 3 are available.
|
|
|
|
|
|
|
|
#define STEP_TIMER 1
|
|
|
|
|
|
|
|
#define TEMP_TIMER 3
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Limit Switches
|
|
|
|
// Limit Switches
|
|
|
|
//
|
|
|
|
//
|
|
|
|