mongoose/reference-projects/windows-macos-linux/web-ui-dashboard/hal.h

22 lines
512 B
C
Raw Normal View History

2024-02-29 03:09:06 +08:00
// Copyright (c) 2024 Cesanta Software Limited
// All rights reserved
#pragma once
#define LED1 0
#define LED2 1
#define UART_DEBUG NULL
// No-op HAL API implementation for a device with GPIO and UART
#define hal_init()
#define hal_ram_free() 0
#define hal_ram_used() 0
#define gpio_output(pin)
#define gpio_toggle(pin)
#define gpio_read(pin) 0
#define gpio_write(pin, val)
#define uart_init(uart, baud)
#define uart_read_ready(uart) 0
#define uart_write_byte(uart, ch)
#define uart_write_buf(uart, buf, len)