Skip to content

Commit

Permalink
Added lots of debug to Nvm
Browse files Browse the repository at this point in the history
  • Loading branch information
mahi committed Jan 31, 2012
1 parent 348dc95 commit 0b43c7e
Show file tree
Hide file tree
Showing 4 changed files with 240 additions and 41 deletions.
2 changes: 2 additions & 0 deletions boards/mpc5516it/config/Eep_Cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@

#define EEP_USES_EXTERNAL_DRIVER

#if defined(USE_SPI)
#include "Spi.h"
#endif
#include "Eep_ConfigTypes.h"


Expand Down
9 changes: 9 additions & 0 deletions include/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
(((uint32_t)(((uint8_t *)address)[2]))<<8) + \
((uint32_t)(((uint8_t *)address)[3])) )

#define READ16_NA(address ) ( (((uint32_t)(((uint8_t *)address)[0]))<<8) + \
(((uint32_t)(((uint8_t *)address)[1]))) )

#define WRITE32_NA(address, value ) \
do { \
((uint8_t *)address)[0] = ((value&0xff)<<24); \
Expand All @@ -32,6 +35,12 @@
((uint8_t *)address)[3] = ((value&0xff)); \
} while(0)

#define WRITE16_NA(address, value ) \
do { \
((uint8_t *)address)[0] = ((value&0xff)<<8); \
((uint8_t *)address)[1] = ((value&0xff)); \
} while(0)



#endif /* IO_H_ */
3 changes: 2 additions & 1 deletion memory/Ea/Ea.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
#include "Ea_Cbk.h"
#include "Ea_Types.h"

#include "Mcu.h"
#include "Cpu.h"
//#include "Mcu.h"

/** @req EA011 */
/** @req EA045 */
Expand Down
Loading

0 comments on commit 0b43c7e

Please sign in to comment.