aboutsummaryrefslogtreecommitdiff
path: root/02-usart/src/kern/gpio/sysled.c
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2020-11-24 13:46:41 -0700
committerJosh Rahm <joshuarahm@gmail.com>2020-11-24 13:46:41 -0700
commit93b063fedfcf7409a67df035170ea5670cad22e1 (patch)
treea23321a7465d966b1ccf196ca00e65a70c9f9110 /02-usart/src/kern/gpio/sysled.c
parentb040195d31df6ad759f16ea3456471897f55daa1 (diff)
downloadstm32l4-93b063fedfcf7409a67df035170ea5670cad22e1.tar.gz
stm32l4-93b063fedfcf7409a67df035170ea5670cad22e1.tar.bz2
stm32l4-93b063fedfcf7409a67df035170ea5670cad22e1.zip
Moved action to top level.
Removed old iterations of the project and moved the files from 02-usart to the root directory since that's the sole place where the action is and that subproject has outgrown its initial title.
Diffstat (limited to '02-usart/src/kern/gpio/sysled.c')
-rw-r--r--02-usart/src/kern/gpio/sysled.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/02-usart/src/kern/gpio/sysled.c b/02-usart/src/kern/gpio/sysled.c
deleted file mode 100644
index a728da3..0000000
--- a/02-usart/src/kern/gpio/sysled.c
+++ /dev/null
@@ -1,14 +0,0 @@
-#include "kern/gpio/sysled.h"
-
-#define SYSLED GPIO_PIN_PB3
-
-gpio_reserved_pin_t get_sysled()
-{
- if (gpio_pin_in_use(SYSLED)) {
- return (gpio_reserved_pin_t) { .v_ = SYSLED };
- }
-
- int ec;
- gpio_pin_opts_t opts = DEFAULT_GPIO_OPTS_OUTPUT;
- return reserve_gpio_pin(SYSLED, &opts, &ec);
-}