main: remove onboard LED
This commit is contained in:
parent
eed88beebe
commit
73d6c4917d
9
main.c
9
main.c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue