diff options
author | Lojewski, Evan <github@meklort.com> | 2019-05-11 17:23:30 -0600 |
---|---|---|
committer | Lojewski, Evan <github@meklort.com> | 2019-05-11 17:23:30 -0600 |
commit | 447079c15d52cce3a97bbd223194121f7ed609ef (patch) | |
tree | 803cb85413fdc30ede7a745ca9fd5b27a4e9dad3 | |
parent | 6bc3777393e58e3aec54c03fb188398437cd9d9f (diff) | |
download | bcm5719-ortega-447079c15d52cce3a97bbd223194121f7ed609ef.tar.gz bcm5719-ortega-447079c15d52cce3a97bbd223194121f7ed609ef.zip |
Reduce includes for NVRAM library.
-rw-r--r-- | libs/NVRam/include/NVRam.h | 5 | ||||
-rw-r--r-- | libs/NVRam/nvm.c | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/libs/NVRam/include/NVRam.h b/libs/NVRam/include/NVRam.h index 3626ec5..b76dfa7 100644 --- a/libs/NVRam/include/NVRam.h +++ b/libs/NVRam/include/NVRam.h @@ -45,17 +45,16 @@ #define NVRAM_H #include <stdbool.h> -#include <stddef.h> #include <stdint.h> bool NVRam_acquireLock(void); bool NVRam_releaseLock(void); uint32_t NVRam_readWord(uint32_t address); -void NVRam_read(uint32_t address, uint32_t *buffer, size_t words); +void NVRam_read(uint32_t address, uint32_t *buffer, uint32_t words); void NVRam_writeWord(uint32_t address, uint32_t data); -void NVRam_write(uint32_t address, uint32_t *buffer, size_t words); +void NVRam_write(uint32_t address, uint32_t *buffer, uint32_t words); void NVRam_enable(void); void NVRam_enableWrites(void); diff --git a/libs/NVRam/nvm.c b/libs/NVRam/nvm.c index bf494f6..33344ed 100644 --- a/libs/NVRam/nvm.c +++ b/libs/NVRam/nvm.c @@ -188,7 +188,7 @@ uint32_t NVRam_readWord(uint32_t address) return NVRam_readWordInternal(address, cmd); } -void NVRam_read(uint32_t address, uint32_t *buffer, size_t words) +void NVRam_read(uint32_t address, uint32_t *buffer, uint32_t words) { if (!words) { @@ -237,7 +237,7 @@ void NVRam_writeWord(uint32_t address, uint32_t data) } } -void NVRam_write(uint32_t address, uint32_t *buffer, size_t words) +void NVRam_write(uint32_t address, uint32_t *buffer, uint32_t words) { #if 0 if (!words) |