Add New Drivers Problem.

Fernando RUIZ CASAS fernando.ruiz at ctv.es
Thu Nov 16 17:29:01 UTC 2000


Hi,

Adding a new drivers in my bsp and avoiding to create a new configuration
table
after several tries my solution is a patch in 'confdefs.h'.
This makes that my BSP tree needs a external file.
Is it possible include this litle patch in the new versions of file?

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

diff -N -P -r -c rtems-ss-20001103/c/src/exec/sapi/include/confdefs.h
rtems-ss-20001116/c/src/exec/sapi/include/confdefs.h
*** rtems-ss-20001103/c/src/exec/sapi/include/confdefs.h	Tue Oct 31 17:35:16
2000
--- rtems-ss-20001116/c/src/exec/sapi/include/confdefs.h	Thu Nov 16 14:45:00
2000
***************
*** 275,280 ****
--- 275,283 ----
  #ifdef CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    CLOCK_DRIVER_TABLE_ENTRY,
  #endif
+ #ifdef CONFIGURE_APPLICATION_NEEDS_CUSTOM_DRIVER
+   CUSTOM_DRIVER_TABLE_ENTRY,
+ #endif
  #ifdef CONFIGURE_APPLICATION_NEEDS_STUB_DRIVER
    STUB_DRIVER_TABLE_ENTRY,
  #endif

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

With this I need only to define in my <bsp.h>

#define CONFIGURE_APPLICATION_NEEDS_CUSTOM_DRIVER

and to make a new macro

#define CUSTOM_DRIVER_TABLE_ENTRY \
 LCD_DRIVER_TABLE_ENTRY,\
 E2P_DRIVER_TABLE_ENTRY,\
 LED_DRIVER_TABLE_ENTRY,\
 FLASH_DRIVER_TABLE_ENTRY

Included by all my  projects with this BSP.


This is a little soft patch that don't disturb at the actual programs.

But. Is there another best solution?


Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: confdefs.diff
Type: application/octet-stream
Size: 604 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20001116/1ed95440/attachment.obj>


More information about the users mailing list