APM:Libraries
Classes | Macros
Storage.h File Reference
#include <AP_HAL/AP_HAL.h>
#include "AP_HAL_ChibiOS_Namespace.h"
#include <AP_Common/Bitmask.h>
#include <AP_FlashStorage/AP_FlashStorage.h>
#include "hwdef/common/flash.h"
#include <AP_RAMTRON/AP_RAMTRON.h>
Include dependency graph for Storage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ChibiOS::Storage
 

Macros

#define CH_STORAGE_SIZE   HAL_STORAGE_SIZE
 
#define CH_STORAGE_LINE_SHIFT   3
 
#define CH_STORAGE_LINE_SIZE   (1<<CH_STORAGE_LINE_SHIFT)
 
#define CH_STORAGE_NUM_LINES   (CH_STORAGE_SIZE/CH_STORAGE_LINE_SIZE)
 

Macro Definition Documentation

◆ CH_STORAGE_LINE_SHIFT

#define CH_STORAGE_LINE_SHIFT   3

Definition at line 32 of file Storage.h.

Referenced by ChibiOS::Storage::_mark_dirty().

◆ CH_STORAGE_LINE_SIZE

#define CH_STORAGE_LINE_SIZE   (1<<CH_STORAGE_LINE_SHIFT)

Definition at line 34 of file Storage.h.

Referenced by ChibiOS::Storage::_flash_write(), and ChibiOS::Storage::_timer_tick().

◆ CH_STORAGE_NUM_LINES

#define CH_STORAGE_NUM_LINES   (CH_STORAGE_SIZE/CH_STORAGE_LINE_SIZE)

Definition at line 35 of file Storage.h.

Referenced by ChibiOS::Storage::_timer_tick().

◆ CH_STORAGE_SIZE

#define CH_STORAGE_SIZE   HAL_STORAGE_SIZE

Definition at line 26 of file Storage.h.

Referenced by ChibiOS::Storage::_storage_open().