summaryrefslogtreecommitdiffstats
path: root/app/main.c
diff options
context:
space:
mode:
authorroot <root@no.no.james.local>2019-07-02 18:48:25 +0100
committerroot <root@no.no.james.local>2019-07-02 18:50:13 +0100
commit697859c29b7922577a78087cb39549a137eee1b6 (patch)
tree3c214225e98df783e53d735b47210c1cd112a853 /app/main.c
parent645b771533f289c146502ad91af5dfbd0d3af03f (diff)
downloadadapter-697859c29b7922577a78087cb39549a137eee1b6.tar.gz
adapter-697859c29b7922577a78087cb39549a137eee1b6.tar.bz2
adapter-697859c29b7922577a78087cb39549a137eee1b6.zip
support new hardware for adapter
Diffstat (limited to 'app/main.c')
-rw-r--r--app/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/main.c b/app/main.c
index 06644bd..31bd034 100644
--- a/app/main.c
+++ b/app/main.c
@@ -16,7 +16,8 @@ int main (void)
rcc_periph_clock_enable (RCC_AFIO);
nvic_set_priority (NVIC_SYSTICK_IRQ, 0x80);
nvic_set_priority (NVIC_USART1_IRQ, 0x40);
- gpio_set_mode (LED_BANK, GPIO_MODE_OUTPUT_2_MHZ, GPIO_CNF_OUTPUT_OPENDRAIN, LED_GPIO);
+ gpio_set_mode (LED1_BANK, GPIO_MODE_OUTPUT_2_MHZ, GPIO_CNF_OUTPUT_OPENDRAIN, LED1_GPIO);
+ gpio_set_mode (LED2_BANK, GPIO_MODE_OUTPUT_2_MHZ, GPIO_CNF_OUTPUT_OPENDRAIN, LED2_GPIO);
timex_init();
ticker_init();