board_common.h File Reference

Board definitions that are common for all ESP8266 boards. More...

Detailed Description

Board definitions that are common for all ESP8266 boards.

Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file board_common.h.

#include <stdint.h>
#include "cpu.h"
#include "periph_conf.h"
#include "periph_conf_common.h"
#include "periph/gpio.h"
#include "mtd.h"
#include "board_modules.h"
+ Include dependency graph for board_common.h:

Go to the source code of this file.

Functions

void board_init (void)
 Initialize board specific hardware. More...
 
void board_print_config (void)
 Print the board configuration in a human readable format.
 

STDIO configuration

#define STDIO_UART_BAUDRATE   (115200)
 Default baudrate of UART for stdio.
 

MTD device configuration

Internal flash memory can be used as MTD device.

For that purpose a system MTD device has to be defined.

#define MTD_0   mtd0
 Default MTD device definition.
 
mtd_dev_tmtd0
 Pointer to the default MTD device structure.
 

SPIFFS configuration

Configuration of the SPIFFS that can be used on the system MTD device.

#define SPIFFS_ALIGNED_OBJECT_INDEX_TABLES   1
 
#define SPIFFS_READ_ONLY   0
 
#define SPIFFS_SINGLETON   0
 
#define SPIFFS_HAL_CALLBACK_EXTRA   1
 
#define SPIFFS_CACHE   1
 

Function Documentation

◆ board_init()

void board_init ( void  )

Initialize board specific hardware.

Since all features of ESP8266 boards are provided by the MCU, almost all initializations are done during the CPU initialization that is called from boot loader.