nvm write test
This commit is contained in:
parent
b6eb7ca6ff
commit
48732b5379
1
Makefile
1
Makefile
|
@ -61,6 +61,7 @@ ALL = $(TESTS:.c=.srec) $(TESTS:.c=.bin) $(TESTS:.c=.dis)
|
||||||
all: src/start.o src/isr.o $(ALL)
|
all: src/start.o src/isr.o $(ALL)
|
||||||
|
|
||||||
tests/nvm-read.obj: src/maca.o src/nvm.o
|
tests/nvm-read.obj: src/maca.o src/nvm.o
|
||||||
|
tests/nvm-write.obj: src/maca.o src/nvm.o
|
||||||
tests/rftest-rx.obj: src/maca.o src/nvm.o
|
tests/rftest-rx.obj: src/maca.o src/nvm.o
|
||||||
tests/rftest-tx.obj: src/maca.o src/nvm.o
|
tests/rftest-tx.obj: src/maca.o src/nvm.o
|
||||||
tests/tmr-ints.obj: src/isr.o
|
tests/tmr-ints.obj: src/isr.o
|
||||||
|
|
|
@ -38,5 +38,6 @@ typedef enum
|
||||||
/* need to be in a THUMB block before calling them */
|
/* need to be in a THUMB block before calling them */
|
||||||
extern volatile nvmErr_t (*nvm_detect)(nvmInterface_t nvmInterface,nvmType_t* pNvmType);
|
extern volatile nvmErr_t (*nvm_detect)(nvmInterface_t nvmInterface,nvmType_t* pNvmType);
|
||||||
extern volatile nvmErr_t (*nvm_read)(nvmInterface_t nvmInterface , nvmType_t nvmType , void *pDest, uint32_t address, uint32_t numBytes);
|
extern volatile nvmErr_t (*nvm_read)(nvmInterface_t nvmInterface , nvmType_t nvmType , void *pDest, uint32_t address, uint32_t numBytes);
|
||||||
|
extern volatile nvmErr_t (*nvm_write)(nvmInterface_t nvmInterface, nvmType_t nvmType ,void *pSrc, uint32_t address, uint32_t numBytes);
|
||||||
extern volatile void(*nvm_setsvar)(uint32_t zero_for_awesome);
|
extern volatile void(*nvm_setsvar)(uint32_t zero_for_awesome);
|
||||||
#endif //NVM_H
|
#endif //NVM_H
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include "nvm.h"
|
#include "nvm.h"
|
||||||
/*NVM_Write 0x00006ec5*/
|
|
||||||
volatile nvmErr_t (*nvm_detect)(nvmInterface_t nvmInterface,nvmType_t* pNvmType) = 0x00006cb9;
|
volatile nvmErr_t (*nvm_detect)(nvmInterface_t nvmInterface,nvmType_t* pNvmType) = 0x00006cb9;
|
||||||
volatile nvmErr_t (*nvm_read)(nvmInterface_t nvmInterface , nvmType_t nvmType , void *pDest, uint32_t address, uint32_t numBytes) = 0x00006d69;
|
volatile nvmErr_t (*nvm_read)(nvmInterface_t nvmInterface , nvmType_t nvmType , void *pDest, uint32_t address, uint32_t numBytes) = 0x00006d69;
|
||||||
|
volatile nvmErr_t (*nvm_write)(nvmInterface_t nvmInterface, nvmType_t nvmType ,void *pSrc, uint32_t address, uint32_t numBytes) = 0x00006ec5;
|
||||||
volatile void(*nvm_setsvar)(uint32_t zero_for_awesome) = 0x00007085;
|
volatile void(*nvm_setsvar)(uint32_t zero_for_awesome) = 0x00007085;
|
||||||
|
|
Loading…
Reference in a new issue