aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-02-24 10:22:59 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-02-24 10:22:59 +0000
commite059dd7389acc7af3d1254a4e540c2689cb11c0e (patch)
tree30dd13faeef9d4df1549bd9d4a079711f8818222 /os/hal/templates
parent4e6bb0ddf45ade46e5c95ea8d10933aeee0d3d4f (diff)
downloadChibiOS-e059dd7389acc7af3d1254a4e540c2689cb11c0e.tar.gz
ChibiOS-e059dd7389acc7af3d1254a4e540c2689cb11c0e.tar.bz2
ChibiOS-e059dd7389acc7af3d1254a4e540c2689cb11c0e.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5311 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/templates')
-rw-r--r--os/hal/templates/halconf.h2
-rw-r--r--os/hal/templates/i2c_lld.h11
-rw-r--r--os/hal/templates/platform.mk1
3 files changed, 3 insertions, 11 deletions
diff --git a/os/hal/templates/halconf.h b/os/hal/templates/halconf.h
index d98142128..cf079454e 100644
--- a/os/hal/templates/halconf.h
+++ b/os/hal/templates/halconf.h
@@ -118,7 +118,7 @@
* @brief Enables the RTC subsystem.
*/
#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
-#define HAL_USE_RTC TRUE
+#define HAL_USE_RTC FALSE
#endif
/**
diff --git a/os/hal/templates/i2c_lld.h b/os/hal/templates/i2c_lld.h
index 2018142cb..1c4042bd1 100644
--- a/os/hal/templates/i2c_lld.h
+++ b/os/hal/templates/i2c_lld.h
@@ -71,14 +71,6 @@ typedef uint16_t i2caddr_t;
typedef uint32_t i2cflags_t;
/**
- * @brief I2C completion callback type.
- *
- * @param[in] i2cp pointer to the @p I2CDriver object
- * @param[in] sts operation status
- */
-typedef void (*i2ccallback_t)(I2CDriver *i2cp, i2cstatus_t sts);
-
-/**
* @brief Driver configuration structure.
* @note Implementations may extend this structure to contain more,
* architecture dependent, fields.
@@ -99,7 +91,7 @@ typedef struct I2CDriver I2CDriver;
/**
* @brief Structure representing an I2C driver.
*/
-struct I2CDriver{
+struct I2CDriver {
/**
* @brief Driver state.
*/
@@ -149,6 +141,7 @@ struct I2CDriver{
#if PLATFORM_I2C_USE_I2C1
extern I2CDriver I2CD1;
#endif
+#endif
#ifdef __cplusplus
extern "C" {
diff --git a/os/hal/templates/platform.mk b/os/hal/templates/platform.mk
index 268082a02..80624fa14 100644
--- a/os/hal/templates/platform.mk
+++ b/os/hal/templates/platform.mk
@@ -9,7 +9,6 @@ PLATFORMSRC = ${CHIBIOS}/os/hal/templates/hal_lld.c \
${CHIBIOS}/os/hal/templates/mac_lld.c \
${CHIBIOS}/os/hal/templates/pal_lld.c \
${CHIBIOS}/os/hal/templates/pwm_lld.c \
- ${CHIBIOS}/os/hal/templates/rtc_lld.c \
${CHIBIOS}/os/hal/templates/sdc_lld.c \
${CHIBIOS}/os/hal/templates/serial_lld.c \
${CHIBIOS}/os/hal/templates/spi_lld.c \