summaryrefslogtreecommitdiff
path: root/bsp/stm32/stm32h730-esphosted-evb/applications/main.c
blob: 78193d8f7ef6fa5a7dc98de9149c738fda699605 (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
/*
 * Copyright (c) 2006-2024 RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2025-2-2       yekai        first version
 */

#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>

#define LED_PIN    GET_PIN(E, 2)

int main(void) {
    /* set GPIO pin mode to output */
    rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT);

    while (1) {
        rt_pin_write(LED_PIN, !rt_pin_read(LED_PIN));
        rt_thread_mdelay(1000);
    }
}