main: remove onboard LED

This commit is contained in:
King Kévin 2022-10-11 18:34:40 +02:00
parent eed88beebe
commit 73d6c4917d
1 changed files with 0 additions and 9 deletions

9
main.c
View File

@ -13,9 +13,6 @@
#define DEBUG 1
// pinout
// on-board LED (sink on)
#define LED_ONBOARD_PIN PB5
#define LED_ONBOARD_PORT GPIO_PB
// pin to power IR demodulator (source on)
#define IRM_ON_PIN PA3
#define IRM_ON_PORT GPIO_PA
@ -100,11 +97,6 @@ void main(void)
// TODO only enable clock for peripherals used (PCG)
// configure LED pin
LED_ONBOARD_PORT->ODR.reg |= LED_ONBOARD_PIN; // switch LED off
LED_ONBOARD_PORT->CR1.reg &= ~LED_ONBOARD_PIN; // use as open-drain
LED_ONBOARD_PORT->DDR.reg |= LED_ONBOARD_PIN; // switch pin to output
// configure option bytes
// disable DATA (e.g. option byte) write protection
if (0 == (FLASH_IAPSR & FLASH_IAPSR_DUL)) {
@ -208,7 +200,6 @@ void main(void)
*/
rim(); // re-enable interrupts
LED_ONBOARD_PORT->ODR.reg &= ~LED_ONBOARD_PIN; // switch LED on to indicate we are ready
bool action = false; // if an action has been performed
puts("ready\r\n");
while (true) {