X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2F_exports.h;h=d89b65be661772ab84d0209a3a4b29f9efce58eb;hb=d0e6665a24c2c2a3d333db169fcd1261a0903146;hp=2b8ec3d3f91d288b52b4f77f7811c20ef7db80cb;hpb=fb883a521e04437acfe989de3e152b2e4866856b;p=u-boot diff --git a/include/_exports.h b/include/_exports.h index 2b8ec3d3f9..d89b65be66 100644 --- a/include/_exports.h +++ b/include/_exports.h @@ -1,3 +1,7 @@ +/* + * You do not need to use #ifdef around functions that may not exist + * in the final configuration (such as i2c). + */ EXPORT_FUNC(get_version) EXPORT_FUNC(getc) EXPORT_FUNC(tstc) @@ -15,7 +19,13 @@ EXPORT_FUNC(do_reset) EXPORT_FUNC(getenv) EXPORT_FUNC(setenv) EXPORT_FUNC(simple_strtoul) -#if (CONFIG_COMMANDS & CFG_CMD_I2C) +EXPORT_FUNC(simple_strtol) +EXPORT_FUNC(strcmp) EXPORT_FUNC(i2c_write) EXPORT_FUNC(i2c_read) -#endif /* CFG_CMD_I2C */ +EXPORT_FUNC(spi_init) +EXPORT_FUNC(spi_setup_slave) +EXPORT_FUNC(spi_free_slave) +EXPORT_FUNC(spi_claim_bus) +EXPORT_FUNC(spi_release_bus) +EXPORT_FUNC(spi_xfer)