Changeset f334847b in rtems for c/src/lib/libbsp/powerpc/shared/flash/flash.c
- Timestamp:
- Jan 17, 2014, 1:57:08 AM (6 years ago)
- Branches:
- 4.11, master
- Children:
- c26a945
- Parents:
- a7775cb
- git-author:
- Nick Withers <nick.withers@…> (01/17/14 01:57:08)
- git-committer:
- Gedare Bloom <gedare@…> (01/23/14 16:30:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/powerpc/shared/flash/flash.c
ra7775cb rf334847b 105 105 106 106 static struct bankdesc * 107 argcheck(int bank, uint32_t offset, c har *src, uint32_t size);107 argcheck(int bank, uint32_t offset, const char *src, uint32_t size); 108 108 109 109 /* Type definitions */ … … 224 224 225 225 STATIC uint32_t 226 BSP_flashWriteDataRaw(struct bankdesc *b, uint32_t addr, c har *src, uint32_t n_words, int quiet)227 { 228 uint32_t sta;229 uint32_t N;230 uint32_t nxt, a, i, bufsz;231 uint32_t then, now;232 unsigned f;233 c har*s;226 BSP_flashWriteDataRaw(struct bankdesc *b, uint32_t addr, const char *src, uint32_t n_words, int quiet) 227 { 228 uint32_t sta; 229 uint32_t N; 230 uint32_t nxt, a, i, bufsz; 231 uint32_t then, now; 232 unsigned f; 233 const char *s; 234 234 235 235 #ifdef DEBUG … … 478 478 479 479 static struct bankdesc * 480 argcheck(int bank, uint32_t offset, c har *src, uint32_t size)480 argcheck(int bank, uint32_t offset, const char *src, uint32_t size) 481 481 { 482 482 struct bankdesc *b; … … 515 515 */ 516 516 STATIC int 517 regionCheckAndErase(int bank, uint32_t offset, c har *src, uint32_t n_bytes, int quiet)517 regionCheckAndErase(int bank, uint32_t offset, const char *src, uint32_t n_bytes, int quiet) 518 518 { 519 519 struct bankdesc *b; … … 595 595 596 596 STATIC int 597 BSP_flashWriteRegion(int bank, uint32_t offset, c har *src, uint32_t n_bytes, int quiet)597 BSP_flashWriteRegion(int bank, uint32_t offset, const char *src, uint32_t n_bytes, int quiet) 598 598 { 599 599 struct bankdesc *b = BSP_flashBspOps.bankcheck(bank, 0); /* caller did bankValidate() */ … … 602 602 uint32_t o,i,a,e; 603 603 int err; 604 c har*p;604 const char *p; 605 605 union bconv buf; 606 606 … … 731 731 732 732 int 733 BSP_flashWrite(int bank, uint32_t offset, c har *src, uint32_t n_bytes, int quiet)733 BSP_flashWrite(int bank, uint32_t offset, const char *src, uint32_t n_bytes, int quiet) 734 734 { 735 735 int rval; … … 768 768 769 769 int 770 BSP_flashWriteFile(int bank, uint32_t offset, c har *fname, int quiet)770 BSP_flashWriteFile(int bank, uint32_t offset, const char *fname, int quiet) 771 771 { 772 772 int fd = -1;
Note: See TracChangeset
for help on using the changeset viewer.