From f97c447c6d175d1db58f27e74d93e053904b6cfd Mon Sep 17 00:00:00 2001 From: batt Date: Fri, 25 Jun 2010 18:36:05 +0000 Subject: [PATCH] Add missing headers; fix typo. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3950 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/io/kblock.c | 1 + bertos/io/kblock.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bertos/io/kblock.c b/bertos/io/kblock.c index 32c36cf3..a0ee2a54 100644 --- a/bertos/io/kblock.c +++ b/bertos/io/kblock.c @@ -37,6 +37,7 @@ #include "kblock.h" +#include static void *kblock_swMap(struct KBlock *b, size_t offset, size_t size) diff --git a/bertos/io/kblock.h b/bertos/io/kblock.h index 3d33da63..b486fa6d 100644 --- a/bertos/io/kblock.h +++ b/bertos/io/kblock.h @@ -40,6 +40,7 @@ #include #include +#include /** Type for addressing blocks in the device. */ typedef uint32_t block_idx_t; @@ -99,7 +100,7 @@ typedef enum KBlockStatus KBS_ERR_NOT_MAPPED, ///< Error: trying to memory unmap a block not yet mapped. KBS_ERR_MAP_NOT_AVAILABLE, ///< Error: mapping methods not implemented. - #define KBS_STATUS_MASK (BV(KBS_MAPPER) | 0 /* Add status flags here */) + #define KBS_STATUS_MASK (BV(KBS_MAPPED) | 0 /* Add status flags here */) #define KBS_ERROR_MASK (BV(KBS_ERR_ALREADY_MAPPED) | BV(KBS_ERR_ALREADY_MAPPED) \ | BV(KBS_ERR_MAP_NOT_AVAILABLE) | 0 /* Add error flags here */) -- 2.25.1