mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-27 20:59:00 +08:00
22 lines
512 B
C
22 lines
512 B
C
// 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)
|