Loading...
Searching...
No Matches
board.h File Reference

The native board uses call level hardware simulation. More...

Detailed Description

The native board uses call level hardware simulation.

Basic definitions for the native board

Author
Ludwig Knüpfer ludwi.nosp@m.g.kn.nosp@m.uepfe.nosp@m.r@fu.nosp@m.-berl.nosp@m.in.d.nosp@m.e

Definition in file board.h.

#include <stdint.h>
#include <motor_driver.h>
+ Include dependency graph for board.h:

Go to the source code of this file.

Macros

#define MTD_0   mtd_dev_get(0)
 Default MTD device (mtd flash emulation device)
 

LED handlers

#define LED0_ON   (_native_LED_RED_ON())
 
#define LED0_OFF   (_native_LED_RED_OFF())
 
#define LED0_TOGGLE   (_native_LED_RED_TOGGLE())
 
#define LED1_ON   (_native_LED_GREEN_ON())
 
#define LED1_OFF   (_native_LED_GREEN_OFF())
 
#define LED1_TOGGLE   (_native_LED_GREEN_TOGGLE())
 
void _native_LED_GREEN_OFF (void)
 
void _native_LED_GREEN_ON (void)
 
void _native_LED_GREEN_TOGGLE (void)
 
void _native_LED_RED_OFF (void)
 
void _native_LED_RED_ON (void)
 
void _native_LED_RED_TOGGLE (void)
 

MTD emulation configuration

#define MTD_PAGE_SIZE   (256)
 
#define MTD_SECTOR_SIZE   (4096)
 
#define MTD_SECTOR_NUM   (2048)
 
#define MTD_WRITE_SIZE   (1)
 Advertised write size.
 
#define MTD_NATIVE_FILENAME   "MEMORY.bin"
 

Host FS access configuration

#define FS_NATIVE_DIR   "native"
 Folder on the host fs exported to RIOT.
 

SPIFFS default configuration

#define SPIFFS_READ_ONLY   (0)
 
#define SPIFFS_SINGLETON   (0)
 
#define SPIFFS_HAL_CALLBACK_EXTRA   (1)
 
#define SPIFFS_CACHE   (1)
 
#define SPIFFS_MTD_DEV   (MTD_0)
 

Macro Definition Documentation

◆ FS_NATIVE_DIR

#define FS_NATIVE_DIR   "native"

Folder on the host fs exported to RIOT.

Definition at line 98 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (_native_LED_RED_OFF())

Definition at line 46 of file board.h.

◆ LED0_ON

#define LED0_ON   (_native_LED_RED_ON())

Definition at line 45 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (_native_LED_RED_TOGGLE())

Definition at line 47 of file board.h.

◆ LED1_OFF

#define LED1_OFF   (_native_LED_GREEN_OFF())

Definition at line 49 of file board.h.

◆ LED1_ON

#define LED1_ON   (_native_LED_GREEN_ON())

Definition at line 48 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   (_native_LED_GREEN_TOGGLE())

Definition at line 50 of file board.h.

◆ MTD_0

#define MTD_0   mtd_dev_get(0)

Default MTD device (mtd flash emulation device)

Definition at line 90 of file board.h.

◆ MTD_NATIVE_FILENAME

#define MTD_NATIVE_FILENAME   "MEMORY.bin"

Definition at line 85 of file board.h.

◆ MTD_PAGE_SIZE

#define MTD_PAGE_SIZE   (256)

Definition at line 62 of file board.h.

◆ MTD_SECTOR_NUM

#define MTD_SECTOR_NUM   (2048)

Definition at line 76 of file board.h.

◆ MTD_SECTOR_SIZE

#define MTD_SECTOR_SIZE   (4096)

Definition at line 69 of file board.h.

◆ MTD_WRITE_SIZE

#define MTD_WRITE_SIZE   (1)

Advertised write size.

While the file system backend supports single byte granularity, this can be increased to mimic other media.

Definition at line 82 of file board.h.

◆ SPIFFS_CACHE

#define SPIFFS_CACHE   (1)

Definition at line 118 of file board.h.

◆ SPIFFS_HAL_CALLBACK_EXTRA

#define SPIFFS_HAL_CALLBACK_EXTRA   (1)

Definition at line 115 of file board.h.

◆ SPIFFS_MTD_DEV

#define SPIFFS_MTD_DEV   (MTD_0)

Definition at line 143 of file board.h.

◆ SPIFFS_READ_ONLY

#define SPIFFS_READ_ONLY   (0)

Definition at line 109 of file board.h.

◆ SPIFFS_SINGLETON

#define SPIFFS_SINGLETON   (0)

Definition at line 112 of file board.h.