Adding Processor Expert to a Beekit generated project.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adding Processor Expert to a Beekit generated project.

2,091 Views
flyingasics
Contributor I
CPU: MC13213
CW V : 6.1

I'm in the process of adding processor expert to a Beekit generated project, so far I have:

1) Added the MCU bean to the project.
2) Disabled the generation or the PRM file in the bean.
3) Generated code
4) Renamed main function from beekit project
5) Called the renamed main function in the processor expert main function

My problem now is with two files:

IO_Map generated by PE and IoConfig from the beekit files.

The ports are defined two different ways

IO_Map uses:
#define PTAD_PTAD0                      _PTAD.Bits.PTAD0

IoConfig uses:

#define     PTAD        (*((volatile unsigned char *)(0x00)))    /* I/O port A data register */

I am not a programmer by any means (hence wanting to use PE). How can I make these two files cooperate.

Thanks!









Message Edited by flyingasics on 2008-02-27 10:46 PM
Labels (1)
0 Kudos
2 Replies

278 Views
flyingasics
Contributor I
Do I need to delete one of the files, maybe the beekit generated file?  Then define any of the ports that are not defined in the PE iomap file? does anyone have any idea?
0 Kudos

278 Views
CrasyCat
Specialist III
Hello
 
I do not know the Beekit software, but basically, I assume Beekit software uses some macros defined in
ioConfig.h. You may want to define an interface header file, where you remap the ioconfig defined macro
to whatever is defined in IOmap.h.
 
Do not do that in iomap.h as this file will be modify  next time Processor Expert generates code.
 
CrasyCat
0 Kudos