summaryrefslogtreecommitdiff
path: root/bsp/nv32f100x/app/src/ledapp.c
blob: 129b906a964144dae0912733ca9c397fbe089421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2017-09-19     Quintin.Z    the first version
 */

#include <stdio.h>
#include <rthw.h>
#include <rtdevice.h>
#include "board.h"
#include <rtthread.h>

#include "gpio.h"


void led_thread_entry(void* parameter)
{

    GPIO_Init  (GPIOA, GPIO_PTB5_MASK, GPIO_PinOutput);

    while(1)
    {
        GPIO_Toggle  (GPIOA, GPIO_PTB5_MASK);
        rt_thread_delay(RT_TICK_PER_SECOND / 10);

    }
}