Compilation fixes for -fno-common (#25436)
This commit is contained in:
parent
d9f2d8d241
commit
7827f9fbe3
18 changed files with 25 additions and 19 deletions
|
|
@ -70,7 +70,7 @@ typedef struct {
|
|||
int8_t dy;
|
||||
} report_adns5050_t;
|
||||
|
||||
const pointing_device_driver_t adns5050_pointing_device_driver;
|
||||
extern const pointing_device_driver_t adns5050_pointing_device_driver;
|
||||
|
||||
// A bunch of functions to implement the ADNS5050-specific serial protocol.
|
||||
// Note that the "serial.h" driver is insufficient, because it does not
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ typedef struct {
|
|||
int16_t y;
|
||||
} report_adns9800_t;
|
||||
|
||||
const pointing_device_driver_t adns9800_pointing_device_driver;
|
||||
extern const pointing_device_driver_t adns9800_pointing_device_driver;
|
||||
|
||||
bool adns9800_init(void);
|
||||
config_adns9800_t adns9800_get_config(void);
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
# define ANALOG_JOYSTICK_SPEED_MAX 2
|
||||
#endif
|
||||
|
||||
const pointing_device_driver_t analog_joystick_pointing_device_driver;
|
||||
extern const pointing_device_driver_t analog_joystick_pointing_device_driver;
|
||||
|
||||
typedef struct {
|
||||
int8_t x;
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ typedef struct {
|
|||
# define POINTING_DEVICE_TASK_THROTTLE_MS AZOTEQ_IQS5XX_REPORT_RATE + 1
|
||||
#endif
|
||||
|
||||
const pointing_device_driver_t azoteq_iqs5xx_pointing_device_driver;
|
||||
extern const pointing_device_driver_t azoteq_iqs5xx_pointing_device_driver;
|
||||
|
||||
bool azoteq_iqs5xx_init(void);
|
||||
i2c_status_t azoteq_iqs5xx_wake(void);
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ typedef struct {
|
|||
|
||||
#define cirque_pinnacle_i2c_pointing_device_driver cirque_pinnacle_pointing_device_driver
|
||||
#define cirque_pinnacle_spi_pointing_device_driver cirque_pinnacle_pointing_device_driver
|
||||
const pointing_device_driver_t cirque_pinnacle_pointing_device_driver;
|
||||
extern const pointing_device_driver_t cirque_pinnacle_pointing_device_driver;
|
||||
|
||||
bool cirque_pinnacle_init(void);
|
||||
void cirque_pinnacle_calibrate(void);
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ typedef struct {
|
|||
bool isMotion;
|
||||
} report_paw3204_t;
|
||||
|
||||
const pointing_device_driver_t paw3204_pointing_device_driver;
|
||||
extern const pointing_device_driver_t paw3204_pointing_device_driver;
|
||||
|
||||
/**
|
||||
* @brief Initializes the sensor so it is in a working state and ready to
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ typedef struct {
|
|||
uint8_t click;
|
||||
} pimoroni_data_t;
|
||||
|
||||
const pointing_device_driver_t pimoroni_trackball_pointing_device_driver;
|
||||
extern const pointing_device_driver_t pimoroni_trackball_pointing_device_driver;
|
||||
|
||||
bool pimoroni_trackball_device_init(void);
|
||||
void pimoroni_trackball_set_rgbw(uint8_t red, uint8_t green, uint8_t blue, uint8_t white);
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ typedef struct {
|
|||
int8_t dy;
|
||||
} report_pmw3320_t;
|
||||
|
||||
const pointing_device_driver_t pmw3320_pointing_device_driver;
|
||||
extern const pointing_device_driver_t pmw3320_pointing_device_driver;
|
||||
|
||||
// A bunch of functions to implement the PMW3320-specific serial protocol.
|
||||
// Mostly taken from ADNS5050 driver.
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ STATIC_ASSERT(sizeof((pmw33xx_report_t){0}.motion) == 1, "pmw33xx_report_t.motio
|
|||
|
||||
#define pmw3360_pointing_device_driver pmw33xx_pointing_device_driver;
|
||||
#define pmw3389_pointing_device_driver pmw33xx_pointing_device_driver;
|
||||
const pointing_device_driver_t pmw33xx_pointing_device_driver;
|
||||
extern const pointing_device_driver_t pmw33xx_pointing_device_driver;
|
||||
|
||||
/**
|
||||
* @brief Initializes the given sensor so it is in a working state and ready to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue