mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/auto_init/saul: Fix some -Wsign-compare warnings
This commit is contained in:
parent
a08a70a3fa
commit
21d0266a9a
@ -55,7 +55,7 @@ extern saul_driver_t adc_saul_driver;
|
||||
void auto_init_adc(void)
|
||||
{
|
||||
DEBUG("auto init SAUL ADC\n");
|
||||
for (int i = 0; i < SAUL_ADC_NUMOF; i++) {
|
||||
for (unsigned int i = 0; i < SAUL_ADC_NUMOF; i++) {
|
||||
const saul_adc_params_t *p = &saul_adc_params[i];
|
||||
saul_adcs[i] = p;
|
||||
|
||||
|
@ -53,7 +53,7 @@ extern saul_driver_t gpio_saul_driver;
|
||||
void auto_init_gpio(void)
|
||||
{
|
||||
DEBUG("auto init gpio SAUL\n");
|
||||
for (int i = 0; i < SAUL_GPIO_NUMOF; i++) {
|
||||
for (unsigned int i = 0; i < SAUL_GPIO_NUMOF; i++) {
|
||||
const saul_gpio_params_t *p = &saul_gpio_params[i];
|
||||
|
||||
DEBUG("[auto_init_saul] initializing direct GPIO\n");
|
||||
|
@ -51,7 +51,7 @@ extern saul_driver_t isl29020_saul_driver;
|
||||
|
||||
void auto_init_isl29020(void)
|
||||
{
|
||||
for (int i = 0; i < ISL29020_NUM; i++) {
|
||||
for (unsigned int i = 0; i < ISL29020_NUM; i++) {
|
||||
const isl29020_params_t *p = &isl29020_params[i];
|
||||
|
||||
DEBUG("[auto_init_saul] initializing isl29020 light sensor\n");
|
||||
|
@ -51,7 +51,7 @@ extern saul_driver_t l3g4200d_saul_driver;
|
||||
|
||||
void auto_init_l3g4200d(void)
|
||||
{
|
||||
for (int i = 0; i < L3G4200D_NUM; i++) {
|
||||
for (unsigned int i = 0; i < L3G4200D_NUM; i++) {
|
||||
const l3g4200d_params_t *p = &l3g4200d_params[i];
|
||||
|
||||
DEBUG("[auto_init_saul] initializing l3g4200d gyroscope\n");
|
||||
|
@ -51,7 +51,7 @@ extern saul_driver_t lis3dh_saul_driver;
|
||||
|
||||
void auto_init_lis3dh(void)
|
||||
{
|
||||
for (int i = 0; i < LIS3DH_NUM; i++) {
|
||||
for (unsigned int i = 0; i < LIS3DH_NUM; i++) {
|
||||
const lis3dh_params_t *p = &lis3dh_params[i];
|
||||
int res;
|
||||
|
||||
|
@ -51,7 +51,7 @@ extern saul_driver_t lps331ap_saul_driver;
|
||||
|
||||
void auto_init_lps331ap(void)
|
||||
{
|
||||
for (int i = 0; i < LPS331AP_NUM; i++) {
|
||||
for (unsigned int i = 0; i < LPS331AP_NUM; i++) {
|
||||
const lps331ap_params_t *p = &lps331ap_params[i];
|
||||
|
||||
DEBUG("[auto_init_saul] initializing lps331ap pressure sensor\n");
|
||||
|
@ -53,7 +53,7 @@ extern saul_driver_t lsm303dlhc_saul_mag_driver;
|
||||
|
||||
void auto_init_lsm303dlhc(void)
|
||||
{
|
||||
for (int i = 0; i < LSM303DLHC_NUM; i++) {
|
||||
for (unsigned int i = 0; i < LSM303DLHC_NUM; i++) {
|
||||
const lsm303dlhc_params_t *p = &lsm303dlhc_params[i];
|
||||
|
||||
DEBUG("[auto_init_saul] initializing lsm303dlhc acc/mag sensor\n");
|
||||
|
@ -52,7 +52,7 @@ extern saul_driver_t mma8652_saul_driver;
|
||||
|
||||
void auto_init_mma8652(void)
|
||||
{
|
||||
for (int i = 0; i < MMA8652_NUM; i++) {
|
||||
for (unsigned int i = 0; i < MMA8652_NUM; i++) {
|
||||
const mma8652_params_t *p = &mma8652_params[i];
|
||||
|
||||
DEBUG("[auto_init_saul] initializing mma8652 acc sensor\n");
|
||||
|
Loading…
Reference in New Issue
Block a user