diff options
Diffstat (limited to 'board/stm32l476g-eval/board.c')
-rw-r--r-- | board/stm32l476g-eval/board.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/board/stm32l476g-eval/board.c b/board/stm32l476g-eval/board.c new file mode 100644 index 0000000000..37ff088090 --- /dev/null +++ b/board/stm32l476g-eval/board.c @@ -0,0 +1,20 @@ +/* Copyright 2016 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "common.h" +#include "gpio.h" +#include "hooks.h" +#include "registers.h" +#include "gpio_list.h" + +void tick_event(void) +{ + static int count; + + gpio_set_level(GPIO_LED_GREEN, (count & 0x03) == 0); + + count++; +} +DECLARE_HOOK(HOOK_TICK, tick_event, HOOK_PRIO_DEFAULT); |