Remove status LED code

This commit is contained in:
fruchti 2020-05-23 18:51:58 +02:00
parent e4f5946c8c
commit 34ed9791ce
5 changed files with 2 additions and 14 deletions

View file

@ -1 +1 @@
519 520

View file

@ -329,8 +329,6 @@ void SysTick_Handler(void)
const int GPIO_MASK = ((1 << PIN_STEPPER_AM) | (1 << PIN_STEPPER_AP) const int GPIO_MASK = ((1 << PIN_STEPPER_AM) | (1 << PIN_STEPPER_AP)
| (1 << PIN_STEPPER_BM) | (1 << PIN_STEPPER_BP)); | (1 << PIN_STEPPER_BM) | (1 << PIN_STEPPER_BP));
GPIOC->BRR = (1 << PIN_LED);
if(Stepper_Delta != 0) if(Stepper_Delta != 0)
{ {
off = false; off = false;
@ -366,8 +364,6 @@ void SysTick_Handler(void)
} }
AdvanceStateMachine(); AdvanceStateMachine();
GPIOC->BSRR = (1 << PIN_LED);
} }
void ADC1_2_IRQHandler(void) void ADC1_2_IRQHandler(void)

View file

@ -5,9 +5,7 @@ int main(void)
RCC->APB2ENR |= RCC_APB2ENR_IOPCEN; RCC->APB2ENR |= RCC_APB2ENR_IOPCEN;
GPIOC->CRH = (GPIOC->CRH GPIOC->CRH = (GPIOC->CRH
& ~(0x0f << (4 * PIN_LED - 32))
& ~(0x0f << (4 * PIN_SUPPLY - 32))) & ~(0x0f << (4 * PIN_SUPPLY - 32)))
| (0x01 << (4 * PIN_LED - 32)) // Output, max. 10 MHz
| (0x01 << (4 * PIN_SUPPLY - 32)) // Output, max. 10 MHz | (0x01 << (4 * PIN_SUPPLY - 32)) // Output, max. 10 MHz
; ;

View file

@ -308,9 +308,6 @@ void Camera_Init(void)
void TIM1_CC_IRQHandler(void) void TIM1_CC_IRQHandler(void)
{ {
// VSYNC // VSYNC
// GPIOC->BRR = (1 << PIN_LED);
LineCount = CurrentLine; LineCount = CurrentLine;
CurrentLine = 0; CurrentLine = 0;
FrameCount++; FrameCount++;
@ -335,8 +332,6 @@ void TIM1_CC_IRQHandler(void)
// Dummy read // Dummy read
TIM1->CCR2; TIM1->CCR2;
TIM1->SR &= ~TIM_SR_CC2IF; TIM1->SR &= ~TIM_SR_CC2IF;
// GPIOC->BSRR = (1 << PIN_LED);
} }
void TIM3_IRQHandler(void) void TIM3_IRQHandler(void)
@ -431,4 +426,4 @@ void TIM3_IRQHandler(void)
// Dummy read // Dummy read
TIM3->CCR2; TIM3->CCR2;
TIM3->SR &= ~TIM_SR_CC2IF; TIM3->SR &= ~TIM_SR_CC2IF;
} }

View file

@ -33,5 +33,4 @@
#define PIN_DIN 15 // PB15 - Thermal printer MOSI (SPI2) #define PIN_DIN 15 // PB15 - Thermal printer MOSI (SPI2)
// Port C // Port C
#define PIN_LED 13 // PC13 - Status LED
#define PIN_SUPPLY 14 // PC14 - Voltage regulator enable #define PIN_SUPPLY 14 // PC14 - Voltage regulator enable