git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5311 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
4e6bb0ddf4
commit
e059dd7389
|
@ -355,7 +355,7 @@ typedef struct I2CDriver I2CDriver;
|
||||||
/**
|
/**
|
||||||
* @brief Structure representing an I2C driver.
|
* @brief Structure representing an I2C driver.
|
||||||
*/
|
*/
|
||||||
struct I2CDriver{
|
struct I2CDriver {
|
||||||
/**
|
/**
|
||||||
* @brief Driver state.
|
* @brief Driver state.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -118,7 +118,7 @@
|
||||||
* @brief Enables the RTC subsystem.
|
* @brief Enables the RTC subsystem.
|
||||||
*/
|
*/
|
||||||
#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
|
#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
|
||||||
#define HAL_USE_RTC TRUE
|
#define HAL_USE_RTC FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -70,14 +70,6 @@ typedef uint16_t i2caddr_t;
|
||||||
*/
|
*/
|
||||||
typedef uint32_t i2cflags_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.
|
* @brief Driver configuration structure.
|
||||||
* @note Implementations may extend this structure to contain more,
|
* @note Implementations may extend this structure to contain more,
|
||||||
|
@ -99,7 +91,7 @@ typedef struct I2CDriver I2CDriver;
|
||||||
/**
|
/**
|
||||||
* @brief Structure representing an I2C driver.
|
* @brief Structure representing an I2C driver.
|
||||||
*/
|
*/
|
||||||
struct I2CDriver{
|
struct I2CDriver {
|
||||||
/**
|
/**
|
||||||
* @brief Driver state.
|
* @brief Driver state.
|
||||||
*/
|
*/
|
||||||
|
@ -149,6 +141,7 @@ struct I2CDriver{
|
||||||
#if PLATFORM_I2C_USE_I2C1
|
#if PLATFORM_I2C_USE_I2C1
|
||||||
extern I2CDriver I2CD1;
|
extern I2CDriver I2CD1;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -9,7 +9,6 @@ PLATFORMSRC = ${CHIBIOS}/os/hal/templates/hal_lld.c \
|
||||||
${CHIBIOS}/os/hal/templates/mac_lld.c \
|
${CHIBIOS}/os/hal/templates/mac_lld.c \
|
||||||
${CHIBIOS}/os/hal/templates/pal_lld.c \
|
${CHIBIOS}/os/hal/templates/pal_lld.c \
|
||||||
${CHIBIOS}/os/hal/templates/pwm_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/sdc_lld.c \
|
||||||
${CHIBIOS}/os/hal/templates/serial_lld.c \
|
${CHIBIOS}/os/hal/templates/serial_lld.c \
|
||||||
${CHIBIOS}/os/hal/templates/spi_lld.c \
|
${CHIBIOS}/os/hal/templates/spi_lld.c \
|
||||||
|
|
Loading…
Reference in New Issue