diff options
| author | Ryan <fauxpark@gmail.com> | 2025-01-21 02:30:19 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-20 15:30:19 +0000 |
| commit | 47575d4af16700e2dea8353c446dd4874e38d333 (patch) | |
| tree | 6eb8916ec8ae1773236548103b567ca53ec18d5a /drivers | |
| parent | 5c33ff8be4a61a3246df187486021b858fa7b55d (diff) | |
LED drivers: remove deprecated defines (#24837)
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/led/aw20216s.h | 260 | ||||
| -rw-r--r-- | drivers/led/issi/is31fl3731-mono.h | 27 | ||||
| -rw-r--r-- | drivers/led/issi/is31fl3731.h | 27 | ||||
| -rw-r--r-- | drivers/led/issi/is31fl3733-mono.h | 32 | ||||
| -rw-r--r-- | drivers/led/issi/is31fl3733.h | 262 | ||||
| -rw-r--r-- | drivers/led/issi/is31fl3736-mono.h | 140 | ||||
| -rw-r--r-- | drivers/led/issi/is31fl3736.h | 42 | ||||
| -rw-r--r-- | drivers/led/issi/is31fl3737-mono.h | 30 | ||||
| -rw-r--r-- | drivers/led/issi/is31fl3737.h | 203 | ||||
| -rw-r--r-- | drivers/led/issi/is31fl3741-mono.h | 401 | ||||
| -rw-r--r-- | drivers/led/issi/is31fl3741.h | 416 | ||||
| -rw-r--r-- | drivers/led/issi/is31fl3743a.h | 211 | ||||
| -rw-r--r-- | drivers/led/snled27351-mono.h | 237 | ||||
| -rw-r--r-- | drivers/led/snled27351.h | 249 |
14 files changed, 0 insertions, 2537 deletions
diff --git a/drivers/led/aw20216s.h b/drivers/led/aw20216s.h index b2c097125f..79b980fcdb 100644 --- a/drivers/led/aw20216s.h +++ b/drivers/led/aw20216s.h | |||
| @@ -22,36 +22,6 @@ | |||
| 22 | #include "gpio.h" | 22 | #include "gpio.h" |
| 23 | #include "util.h" | 23 | #include "util.h" |
| 24 | 24 | ||
| 25 | // ======== DEPRECATED DEFINES - DO NOT USE ======== | ||
| 26 | #ifdef AW_SCALING_MAX | ||
| 27 | # define AW20216S_SCALING_MAX AW_SCALING_MAX | ||
| 28 | #endif | ||
| 29 | #ifdef AW_GLOBAL_CURRENT_MAX | ||
| 30 | # define AW20216S_GLOBAL_CURRENT_MAX AW_GLOBAL_CURRENT_MAX | ||
| 31 | #endif | ||
| 32 | #ifdef AW_SPI_MODE | ||
| 33 | # define AW20216S_SPI_MODE AW_SPI_MODE | ||
| 34 | #endif | ||
| 35 | #ifdef AW_SPI_DIVISOR | ||
| 36 | # define AW20216S_SPI_DIVISOR AW_SPI_DIVISOR | ||
| 37 | #endif | ||
| 38 | #ifdef DRIVER_1_CS | ||
| 39 | # define AW20216S_CS_PIN_1 DRIVER_1_CS | ||
| 40 | #endif | ||
| 41 | #ifdef DRIVER_2_CS | ||
| 42 | # define AW20216S_CS_PIN_2 DRIVER_2_CS | ||
| 43 | #endif | ||
| 44 | #ifdef DRIVER_1_EN | ||
| 45 | # define AW20216S_EN_PIN DRIVER_1_EN | ||
| 46 | #endif | ||
| 47 | #ifdef AW20216S_EN_PIN_1 | ||
| 48 | # define AW20216S_EN_PIN AW20216S_EN_PIN_1 | ||
| 49 | #endif | ||
| 50 | |||
| 51 | #define aw_led aw20216s_led_t | ||
| 52 | #define g_aw_leds g_aw20216s_leds | ||
| 53 | // ======== | ||
| 54 | |||
| 55 | #define AW20216S_ID (0b1010 << 4) | 25 | #define AW20216S_ID (0b1010 << 4) |
| 56 | #define AW20216S_WRITE 0 | 26 | #define AW20216S_WRITE 0 |
| 57 | #define AW20216S_READ 1 | 27 | #define AW20216S_READ 1 |
| @@ -328,233 +298,3 @@ void aw20216s_flush(void); | |||
| 328 | #define SW12_CS16 0xD5 | 298 | #define SW12_CS16 0xD5 |
| 329 | #define SW12_CS17 0xD6 | 299 | #define SW12_CS17 0xD6 |
| 330 | #define SW12_CS18 0xD7 | 300 | #define SW12_CS18 0xD7 |
| 331 | |||
| 332 | // DEPRECATED - DO NOT USE | ||
| 333 | |||
| 334 | #define CS1_SW1 SW1_CS1 | ||
| 335 | #define CS2_SW1 SW1_CS2 | ||
| 336 | #define CS3_SW1 SW1_CS3 | ||
| 337 | #define CS4_SW1 SW1_CS4 | ||
| 338 | #define CS5_SW1 SW1_CS5 | ||
| 339 | #define CS6_SW1 SW1_CS6 | ||
| 340 | #define CS7_SW1 SW1_CS7 | ||
| 341 | #define CS8_SW1 SW1_CS8 | ||
| 342 | #define CS9_SW1 SW1_CS9 | ||
| 343 | #define CS10_SW1 SW1_CS10 | ||
| 344 | #define CS11_SW1 SW1_CS11 | ||
| 345 | #define CS12_SW1 SW1_CS12 | ||
| 346 | #define CS13_SW1 SW1_CS13 | ||
| 347 | #define CS14_SW1 SW1_CS14 | ||
| 348 | #define CS15_SW1 SW1_CS15 | ||
| 349 | #define CS16_SW1 SW1_CS16 | ||
| 350 | #define CS17_SW1 SW1_CS17 | ||
| 351 | #define CS18_SW1 SW1_CS18 | ||
| 352 | |||
| 353 | #define CS1_SW2 SW2_CS1 | ||
| 354 | #define CS2_SW2 SW2_CS2 | ||
| 355 | #define CS3_SW2 SW2_CS3 | ||
| 356 | #define CS4_SW2 SW2_CS4 | ||
| 357 | #define CS5_SW2 SW2_CS5 | ||
| 358 | #define CS6_SW2 SW2_CS6 | ||
| 359 | #define CS7_SW2 SW2_CS7 | ||
| 360 | #define CS8_SW2 SW2_CS8 | ||
| 361 | #define CS9_SW2 SW2_CS9 | ||
| 362 | #define CS10_SW2 SW2_CS10 | ||
| 363 | #define CS11_SW2 SW2_CS11 | ||
| 364 | #define CS12_SW2 SW2_CS12 | ||
| 365 | #define CS13_SW2 SW2_CS13 | ||
| 366 | #define CS14_SW2 SW2_CS14 | ||
| 367 | #define CS15_SW2 SW2_CS15 | ||
| 368 | #define CS16_SW2 SW2_CS16 | ||
| 369 | #define CS17_SW2 SW2_CS17 | ||
| 370 | #define CS18_SW2 SW2_CS18 | ||
| 371 | |||
| 372 | #define CS1_SW3 SW3_CS1 | ||
| 373 | #define CS2_SW3 SW3_CS2 | ||
| 374 | #define CS3_SW3 SW3_CS3 | ||
| 375 | #define CS4_SW3 SW3_CS4 | ||
| 376 | #define CS5_SW3 SW3_CS5 | ||
| 377 | #define CS6_SW3 SW3_CS6 | ||
| 378 | #define CS7_SW3 SW3_CS7 | ||
| 379 | #define CS8_SW3 SW3_CS8 | ||
| 380 | #define CS9_SW3 SW3_CS9 | ||
| 381 | #define CS10_SW3 SW3_CS10 | ||
| 382 | #define CS11_SW3 SW3_CS11 | ||
| 383 | #define CS12_SW3 SW3_CS12 | ||
| 384 | #define CS13_SW3 SW3_CS13 | ||
| 385 | #define CS14_SW3 SW3_CS14 | ||
| 386 | #define CS15_SW3 SW3_CS15 | ||
| 387 | #define CS16_SW3 SW3_CS16 | ||
| 388 | #define CS17_SW3 SW3_CS17 | ||
| 389 | #define CS18_SW3 SW3_CS18 | ||
| 390 | |||
| 391 | #define CS1_SW4 SW4_CS1 | ||
| 392 | #define CS2_SW4 SW4_CS2 | ||
| 393 | #define CS3_SW4 SW4_CS3 | ||
| 394 | #define CS4_SW4 SW4_CS4 | ||
| 395 | #define CS5_SW4 SW4_CS5 | ||
| 396 | #define CS6_SW4 SW4_CS6 | ||
| 397 | #define CS7_SW4 SW4_CS7 | ||
| 398 | #define CS8_SW4 SW4_CS8 | ||
| 399 | #define CS9_SW4 SW4_CS9 | ||
| 400 | #define CS10_SW4 SW4_CS10 | ||
| 401 | #define CS11_SW4 SW4_CS11 | ||
| 402 | #define CS12_SW4 SW4_CS12 | ||
| 403 | #define CS13_SW4 SW4_CS13 | ||
| 404 | #define CS14_SW4 SW4_CS14 | ||
| 405 | #define CS15_SW4 SW4_CS15 | ||
| 406 | #define CS16_SW4 SW4_CS16 | ||
| 407 | #define CS17_SW4 SW4_CS17 | ||
| 408 | #define CS18_SW4 SW4_CS18 | ||
| 409 | |||
| 410 | #define CS1_SW5 SW5_CS1 | ||
| 411 | #define CS2_SW5 SW5_CS2 | ||
| 412 | #define CS3_SW5 SW5_CS3 | ||
| 413 | #define CS4_SW5 SW5_CS4 | ||
| 414 | #define CS5_SW5 SW5_CS5 | ||
| 415 | #define CS6_SW5 SW5_CS6 | ||
| 416 | #define CS7_SW5 SW5_CS7 | ||
| 417 | #define CS8_SW5 SW5_CS8 | ||
| 418 | #define CS9_SW5 SW5_CS9 | ||
| 419 | #define CS10_SW5 SW5_CS10 | ||
| 420 | #define CS11_SW5 SW5_CS11 | ||
| 421 | #define CS12_SW5 SW5_CS12 | ||
| 422 | #define CS13_SW5 SW5_CS13 | ||
| 423 | #define CS14_SW5 SW5_CS14 | ||
| 424 | #define CS15_SW5 SW5_CS15 | ||
| 425 | #define CS16_SW5 SW5_CS16 | ||
| 426 | #define CS17_SW5 SW5_CS17 | ||
| 427 | #define CS18_SW5 SW5_CS18 | ||
| 428 | |||
| 429 | #define CS1_SW6 SW6_CS1 | ||
| 430 | #define CS2_SW6 SW6_CS2 | ||
| 431 | #define CS3_SW6 SW6_CS3 | ||
| 432 | #define CS4_SW6 SW6_CS4 | ||
| 433 | #define CS5_SW6 SW6_CS5 | ||
| 434 | #define CS6_SW6 SW6_CS6 | ||
| 435 | #define CS7_SW6 SW6_CS7 | ||
| 436 | #define CS8_SW6 SW6_CS8 | ||
| 437 | #define CS9_SW6 SW6_CS9 | ||
| 438 | #define CS10_SW6 SW6_CS10 | ||
| 439 | #define CS11_SW6 SW6_CS11 | ||
| 440 | #define CS12_SW6 SW6_CS12 | ||
| 441 | #define CS13_SW6 SW6_CS13 | ||
| 442 | #define CS14_SW6 SW6_CS14 | ||
| 443 | #define CS15_SW6 SW6_CS15 | ||
| 444 | #define CS16_SW6 SW6_CS16 | ||
| 445 | #define CS17_SW6 SW6_CS17 | ||
| 446 | #define CS18_SW6 SW6_CS18 | ||
| 447 | |||
| 448 | #define CS1_SW7 SW7_CS1 | ||
| 449 | #define CS2_SW7 SW7_CS2 | ||
| 450 | #define CS3_SW7 SW7_CS3 | ||
| 451 | #define CS4_SW7 SW7_CS4 | ||
| 452 | #define CS5_SW7 SW7_CS5 | ||
| 453 | #define CS6_SW7 SW7_CS6 | ||
| 454 | #define CS7_SW7 SW7_CS7 | ||
| 455 | #define CS8_SW7 SW7_CS8 | ||
| 456 | #define CS9_SW7 SW7_CS9 | ||
| 457 | #define CS10_SW7 SW7_CS10 | ||
| 458 | #define CS11_SW7 SW7_CS11 | ||
| 459 | #define CS12_SW7 SW7_CS12 | ||
| 460 | #define CS13_SW7 SW7_CS13 | ||
| 461 | #define CS14_SW7 SW7_CS14 | ||
| 462 | #define CS15_SW7 SW7_CS15 | ||
| 463 | #define CS16_SW7 SW7_CS16 | ||
| 464 | #define CS17_SW7 SW7_CS17 | ||
| 465 | #define CS18_SW7 SW7_CS18 | ||
| 466 | |||
| 467 | #define CS1_SW8 SW8_CS1 | ||
| 468 | #define CS2_SW8 SW8_CS2 | ||
| 469 | #define CS3_SW8 SW8_CS3 | ||
| 470 | #define CS4_SW8 SW8_CS4 | ||
| 471 | #define CS5_SW8 SW8_CS5 | ||
| 472 | #define CS6_SW8 SW8_CS6 | ||
| 473 | #define CS7_SW8 SW8_CS7 | ||
| 474 | #define CS8_SW8 SW8_CS8 | ||
| 475 | #define CS9_SW8 SW8_CS9 | ||
| 476 | #define CS10_SW8 SW8_CS10 | ||
| 477 | #define CS11_SW8 SW8_CS11 | ||
| 478 | #define CS12_SW8 SW8_CS12 | ||
| 479 | #define CS13_SW8 SW8_CS13 | ||
| 480 | #define CS14_SW8 SW8_CS14 | ||
| 481 | #define CS15_SW8 SW8_CS15 | ||
| 482 | #define CS16_SW8 SW8_CS16 | ||
| 483 | #define CS17_SW8 SW8_CS17 | ||
| 484 | #define CS18_SW8 SW8_CS18 | ||
| 485 | |||
| 486 | #define CS1_SW9 SW9_CS1 | ||
| 487 | #define CS2_SW9 SW9_CS2 | ||
| 488 | #define CS3_SW9 SW9_CS3 | ||
| 489 | #define CS4_SW9 SW9_CS4 | ||
| 490 | #define CS5_SW9 SW9_CS5 | ||
| 491 | #define CS6_SW9 SW9_CS6 | ||
| 492 | #define CS7_SW9 SW9_CS7 | ||
| 493 | #define CS8_SW9 SW9_CS8 | ||
| 494 | #define CS9_SW9 SW9_CS9 | ||
| 495 | #define CS10_SW9 SW9_CS10 | ||
| 496 | #define CS11_SW9 SW9_CS11 | ||
| 497 | #define CS12_SW9 SW9_CS12 | ||
| 498 | #define CS13_SW9 SW9_CS13 | ||
| 499 | #define CS14_SW9 SW9_CS14 | ||
| 500 | #define CS15_SW9 SW9_CS15 | ||
| 501 | #define CS16_SW9 SW9_CS16 | ||
| 502 | #define CS17_SW9 SW9_CS17 | ||
| 503 | #define CS18_SW9 SW9_CS18 | ||
| 504 | |||
| 505 | #define CS1_SW10 SW10_CS1 | ||
| 506 | #define CS2_SW10 SW10_CS2 | ||
| 507 | #define CS3_SW10 SW10_CS3 | ||
| 508 | #define CS4_SW10 SW10_CS4 | ||
| 509 | #define CS5_SW10 SW10_CS5 | ||
| 510 | #define CS6_SW10 SW10_CS6 | ||
| 511 | #define CS7_SW10 SW10_CS7 | ||
| 512 | #define CS8_SW10 SW10_CS8 | ||
| 513 | #define CS9_SW10 SW10_CS9 | ||
| 514 | #define CS10_SW10 SW10_CS10 | ||
| 515 | #define CS11_SW10 SW10_CS11 | ||
| 516 | #define CS12_SW10 SW10_CS12 | ||
| 517 | #define CS13_SW10 SW10_CS13 | ||
| 518 | #define CS14_SW10 SW10_CS14 | ||
| 519 | #define CS15_SW10 SW10_CS15 | ||
| 520 | #define CS16_SW10 SW10_CS16 | ||
| 521 | #define CS17_SW10 SW10_CS17 | ||
| 522 | #define CS18_SW10 SW10_CS18 | ||
| 523 | |||
| 524 | #define CS1_SW11 SW11_CS1 | ||
| 525 | #define CS2_SW11 SW11_CS2 | ||
| 526 | #define CS3_SW11 SW11_CS3 | ||
| 527 | #define CS4_SW11 SW11_CS4 | ||
| 528 | #define CS5_SW11 SW11_CS5 | ||
| 529 | #define CS6_SW11 SW11_CS6 | ||
| 530 | #define CS7_SW11 SW11_CS7 | ||
| 531 | #define CS8_SW11 SW11_CS8 | ||
| 532 | #define CS9_SW11 SW11_CS9 | ||
| 533 | #define CS10_SW11 SW11_CS10 | ||
| 534 | #define CS11_SW11 SW11_CS11 | ||
| 535 | #define CS12_SW11 SW11_CS12 | ||
| 536 | #define CS13_SW11 SW11_CS13 | ||
| 537 | #define CS14_SW11 SW11_CS14 | ||
| 538 | #define CS15_SW11 SW11_CS15 | ||
| 539 | #define CS16_SW11 SW11_CS16 | ||
| 540 | #define CS17_SW11 SW11_CS17 | ||
| 541 | #define CS18_SW11 SW11_CS18 | ||
| 542 | |||
| 543 | #define CS1_SW12 SW12_CS1 | ||
| 544 | #define CS2_SW12 SW12_CS2 | ||
| 545 | #define CS3_SW12 SW12_CS3 | ||
| 546 | #define CS4_SW12 SW12_CS4 | ||
| 547 | #define CS5_SW12 SW12_CS5 | ||
| 548 | #define CS6_SW12 SW12_CS6 | ||
| 549 | #define CS7_SW12 SW12_CS7 | ||
| 550 | #define CS8_SW12 SW12_CS8 | ||
| 551 | #define CS9_SW12 SW12_CS9 | ||
| 552 | #define CS10_SW12 SW12_CS10 | ||
| 553 | #define CS11_SW12 SW12_CS11 | ||
| 554 | #define CS12_SW12 SW12_CS12 | ||
| 555 | #define CS13_SW12 SW12_CS13 | ||
| 556 | #define CS14_SW12 SW12_CS14 | ||
| 557 | #define CS15_SW12 SW12_CS15 | ||
| 558 | #define CS16_SW12 SW12_CS16 | ||
| 559 | #define CS17_SW12 SW12_CS17 | ||
| 560 | #define CS18_SW12 SW12_CS18 | ||
diff --git a/drivers/led/issi/is31fl3731-mono.h b/drivers/led/issi/is31fl3731-mono.h index e6e107d309..cc59b45cb3 100644 --- a/drivers/led/issi/is31fl3731-mono.h +++ b/drivers/led/issi/is31fl3731-mono.h | |||
| @@ -23,33 +23,6 @@ | |||
| 23 | #include "progmem.h" | 23 | #include "progmem.h" |
| 24 | #include "util.h" | 24 | #include "util.h" |
| 25 | 25 | ||
| 26 | // ======== DEPRECATED DEFINES - DO NOT USE ======== | ||
| 27 | #ifdef LED_DRIVER_ADDR_1 | ||
| 28 | # define IS31FL3731_I2C_ADDRESS_1 LED_DRIVER_ADDR_1 | ||
| 29 | #endif | ||
| 30 | #ifdef LED_DRIVER_ADDR_2 | ||
| 31 | # define IS31FL3731_I2C_ADDRESS_2 LED_DRIVER_ADDR_2 | ||
| 32 | #endif | ||
| 33 | #ifdef LED_DRIVER_ADDR_3 | ||
| 34 | # define IS31FL3731_I2C_ADDRESS_3 LED_DRIVER_ADDR_3 | ||
| 35 | #endif | ||
| 36 | #ifdef LED_DRIVER_ADDR_4 | ||
| 37 | # define IS31FL3731_I2C_ADDRESS_4 LED_DRIVER_ADDR_4 | ||
| 38 | #endif | ||
| 39 | #ifdef ISSI_TIMEOUT | ||
| 40 | # define IS31FL3731_I2C_TIMEOUT ISSI_TIMEOUT | ||
| 41 | #endif | ||
| 42 | #ifdef ISSI_PERSISTENCE | ||
| 43 | # define IS31FL3731_I2C_PERSISTENCE ISSI_PERSISTENCE | ||
| 44 | #endif | ||
| 45 | #ifdef ISSI_3731_DEGHOST | ||
| 46 | # define IS31FL3731_DEGHOST ISSI_3731_DEGHOST | ||
| 47 | #endif | ||
| 48 | |||
| 49 | #define is31_led is31fl3731_led_t | ||
| 50 | #define g_is31_leds g_is31fl3731_leds | ||
| 51 | // ======== | ||
| 52 | |||
| 53 | #define IS31FL3731_REG_COMMAND 0xFD | 26 | #define IS31FL3731_REG_COMMAND 0xFD |
| 54 | #define IS31FL3731_COMMAND_FRAME_1 0x00 | 27 | #define IS31FL3731_COMMAND_FRAME_1 0x00 |
| 55 | #define IS31FL3731_COMMAND_FRAME_2 0x01 | 28 | #define IS31FL3731_COMMAND_FRAME_2 0x01 |
diff --git a/drivers/led/issi/is31fl3731.h b/drivers/led/issi/is31fl3731.h index dc229c876d..947b7dc8e9 100644 --- a/drivers/led/issi/is31fl3731.h +++ b/drivers/led/issi/is31fl3731.h | |||
| @@ -22,33 +22,6 @@ | |||
| 22 | #include "progmem.h" | 22 | #include "progmem.h" |
| 23 | #include "util.h" | 23 | #include "util.h" |
| 24 | 24 | ||
| 25 | // ======== DEPRECATED DEFINES - DO NOT USE ======== | ||
| 26 | #ifdef DRIVER_ADDR_1 | ||
| 27 | # define IS31FL3731_I2C_ADDRESS_1 DRIVER_ADDR_1 | ||
| 28 | #endif | ||
| 29 | #ifdef DRIVER_ADDR_2 | ||
| 30 | # define IS31FL3731_I2C_ADDRESS_2 DRIVER_ADDR_2 | ||
| 31 | #endif | ||
| 32 | #ifdef DRIVER_ADDR_3 | ||
| 33 | # define IS31FL3731_I2C_ADDRESS_3 DRIVER_ADDR_3 | ||
| 34 | #endif | ||
| 35 | #ifdef DRIVER_ADDR_4 | ||
| 36 | # define IS31FL3731_I2C_ADDRESS_4 DRIVER_ADDR_4 | ||
| 37 | #endif | ||
| 38 | #ifdef ISSI_TIMEOUT | ||
| 39 | # define IS31FL3731_I2C_TIMEOUT ISSI_TIMEOUT | ||
| 40 | #endif | ||
| 41 | #ifdef ISSI_PERSISTENCE | ||
| 42 | # define IS31FL3731_I2C_PERSISTENCE ISSI_PERSISTENCE | ||
| 43 | #endif | ||
| 44 | #ifdef ISSI_3731_DEGHOST | ||
| 45 | # define IS31FL3731_DEGHOST ISSI_3731_DEGHOST | ||
| 46 | #endif | ||
| 47 | |||
| 48 | #define is31_led is31fl3731_led_t | ||
| 49 | #define g_is31_leds g_is31fl3731_leds | ||
| 50 | // ======== | ||
| 51 | |||
| 52 | #define IS31FL3731_REG_COMMAND 0xFD | 25 | #define IS31FL3731_REG_COMMAND 0xFD |
| 53 | #define IS31FL3731_COMMAND_FRAME_1 0x00 | 26 | #define IS31FL3731_COMMAND_FRAME_1 0x00 |
| 54 | #define IS31FL3731_COMMAND_FRAME_2 0x01 | 27 | #define IS31FL3731_COMMAND_FRAME_2 0x01 |
diff --git a/drivers/led/issi/is31fl3733-mono.h b/drivers/led/issi/is31fl3733-mono.h index 3786b2ed71..40d340a70d 100644 --- a/drivers/led/issi/is31fl3733-mono.h +++ b/drivers/led/issi/is31fl3733-mono.h | |||
| @@ -25,38 +25,6 @@ | |||
| 25 | #include "progmem.h" | 25 | #include "progmem.h" |
| 26 | #include "util.h" | 26 | #include "util.h" |
| 27 | 27 | ||
| 28 | // ======== DEPRECATED DEFINES - DO NOT USE ======== | ||
| 29 | #ifdef ISSI_TIMEOUT | ||
| 30 | # define IS31FL3733_I2C_TIMEOUT ISSI_TIMEOUT | ||
| 31 | #endif | ||
| 32 | #ifdef ISSI_PERSISTENCE | ||
| 33 | # define IS31FL3733_I2C_PERSISTENCE ISSI_PERSISTENCE | ||
| 34 | #endif | ||
| 35 | #ifdef ISSI_PWM_FREQUENCY | ||
| 36 | # define IS31FL3733_PWM_FREQUENCY ISSI_PWM_FREQUENCY | ||
| 37 | #endif | ||
| 38 | #ifdef ISSI_SWPULLUP | ||
| 39 | # define IS31FL3733_SW_PULLUP ISSI_SWPULLUP | ||
| 40 | #endif | ||
| 41 | #ifdef ISSI_CSPULLUP | ||
| 42 | # define IS31FL3733_CS_PULLDOWN ISSI_CSPULLUP | ||
| 43 | #endif | ||
| 44 | #ifdef ISSI_GLOBALCURRENT | ||
| 45 | # define IS31FL3733_GLOBAL_CURRENT ISSI_GLOBALCURRENT | ||
| 46 | #endif | ||
| 47 | |||
| 48 | #define is31_led is31fl3733_led_t | ||
| 49 | #define g_is31_leds g_is31fl3733_leds | ||
| 50 | |||
| 51 | #define PUR_0R IS31FL3733_PUR_0_OHM | ||
| 52 | #define PUR_05KR IS31FL3733_PUR_1K_OHM | ||
| 53 | #define PUR_3KR IS31FL3733_PUR_2K_OHM | ||
| 54 | #define PUR_4KR IS31FL3733_PUR_4K_OHM | ||
| 55 | #define PUR_8KR IS31FL3733_PUR_8K_OHM | ||
| 56 | #define PUR_16KR IS31FL3733_PUR_16K_OHM | ||
| 57 | #define PUR_32KR IS31FL3733_PUR_32K_OHM | ||
| 58 | // ======== | ||
| 59 | |||
| 60 | #define IS31FL3733_REG_INTERRUPT_MASK 0xF0 | 28 | #define IS31FL3733_REG_INTERRUPT_MASK 0xF0 |
| 61 | #define IS31FL3733_REG_INTERRUPT_STATUS 0xF1 | 29 | #define IS31FL3733_REG_INTERRUPT_STATUS 0xF1 |
| 62 | 30 | ||
diff --git a/drivers/led/issi/is31fl3733.h b/drivers/led/issi/is31fl3733.h index fb60c76c2d..8757d5ab07 100644 --- a/drivers/led/issi/is31fl3733.h +++ b/drivers/led/issi/is31fl3733.h | |||
| @@ -24,62 +24,6 @@ | |||
| 24 | #include "progmem.h" | 24 | #include "progmem.h" |
| 25 | #include "util.h" | 25 | #include "util.h" |
| 26 | 26 | ||
| 27 | // ======== DEPRECATED DEFINES - DO NOT USE ======== | ||
| 28 | #ifdef DRIVER_ADDR_1 | ||
| 29 | # define IS31FL3733_I2C_ADDRESS_1 DRIVER_ADDR_1 | ||
| 30 | #endif | ||
| 31 | #ifdef DRIVER_ADDR_2 | ||
| 32 | # define IS31FL3733_I2C_ADDRESS_2 DRIVER_ADDR_2 | ||
| 33 | #endif | ||
| 34 | #ifdef DRIVER_ADDR_3 | ||
| 35 | # define IS31FL3733_I2C_ADDRESS_3 DRIVER_ADDR_3 | ||
| 36 | #endif | ||
| 37 | #ifdef DRIVER_ADDR_4 | ||
| 38 | # define IS31FL3733_I2C_ADDRESS_4 DRIVER_ADDR_4 | ||
| 39 | #endif | ||
| 40 | #ifdef DRIVER_SYNC_1 | ||
| 41 | # define IS31FL3733_SYNC_1 DRIVER_SYNC_1 | ||
| 42 | #endif | ||
| 43 | #ifdef DRIVER_SYNC_2 | ||
| 44 | # define IS31FL3733_SYNC_2 DRIVER_SYNC_2 | ||
| 45 | #endif | ||
| 46 | #ifdef DRIVER_SYNC_3 | ||
| 47 | # define IS31FL3733_SYNC_3 DRIVER_SYNC_3 | ||
| 48 | #endif | ||
| 49 | #ifdef DRIVER_SYNC_4 | ||
| 50 | # define IS31FL3733_SYNC_4 DRIVER_SYNC_4 | ||
| 51 | #endif | ||
| 52 | #ifdef ISSI_TIMEOUT | ||
| 53 | # define IS31FL3733_I2C_TIMEOUT ISSI_TIMEOUT | ||
| 54 | #endif | ||
| 55 | #ifdef ISSI_PERSISTENCE | ||
| 56 | # define IS31FL3733_I2C_PERSISTENCE ISSI_PERSISTENCE | ||
| 57 | #endif | ||
| 58 | #ifdef ISSI_PWM_FREQUENCY | ||
| 59 | # define IS31FL3733_PWM_FREQUENCY ISSI_PWM_FREQUENCY | ||
| 60 | #endif | ||
| 61 | #ifdef ISSI_SWPULLUP | ||
| 62 | # define IS31FL3733_SW_PULLUP ISSI_SWPULLUP | ||
| 63 | #endif | ||
| 64 | #ifdef ISSI_CSPULLUP | ||
| 65 | # define IS31FL3733_CS_PULLDOWN ISSI_CSPULLUP | ||
| 66 | #endif | ||
| 67 | #ifdef ISSI_GLOBALCURRENT | ||
| 68 | # define IS31FL3733_GLOBAL_CURRENT ISSI_GLOBALCURRENT | ||
| 69 | #endif | ||
| 70 | |||
| 71 | #define is31_led is31fl3733_led_t | ||
| 72 | #define g_is31_leds g_is31fl3733_leds | ||
| 73 | |||
| 74 | #define PUR_0R IS31FL3733_PUR_0_OHM | ||
| 75 | #define PUR_05KR IS31FL3733_PUR_1K_OHM | ||
| 76 | #define PUR_3KR IS31FL3733_PUR_2K_OHM | ||
| 77 | #define PUR_4KR IS31FL3733_PUR_4K_OHM | ||
| 78 | #define PUR_8KR IS31FL3733_PUR_8K_OHM | ||
| 79 | #define PUR_16KR IS31FL3733_PUR_16K_OHM | ||
| 80 | #define PUR_32KR IS31FL3733_PUR_32K_OHM | ||
| 81 | // ======== | ||
| 82 | |||
| 83 | #define IS31FL3733_REG_INTERRUPT_MASK 0xF0 | 27 | #define IS31FL3733_REG_INTERRUPT_MASK 0xF0 |
| 84 | #define IS31FL3733_REG_INTERRUPT_STATUS 0xF1 | 28 | #define IS31FL3733_REG_INTERRUPT_STATUS 0xF1 |
| 85 | 29 | ||
| @@ -389,209 +333,3 @@ void is31fl3733_flush(void); | |||
| 389 | #define SW12_CS14 0xBD | 333 | #define SW12_CS14 0xBD |
| 390 | #define SW12_CS15 0xBE | 334 | #define SW12_CS15 0xBE |
| 391 | #define SW12_CS16 0xBF | 335 | #define SW12_CS16 0xBF |
| 392 | |||
| 393 | // DEPRECATED - DO NOT USE | ||
| 394 | |||
| 395 | #define A_1 SW1_CS1 | ||
| 396 | #define A_2 SW1_CS2 | ||
| 397 | #define A_3 SW1_CS3 | ||
| 398 | #define A_4 SW1_CS4 | ||
| 399 | #define A_5 SW1_CS5 | ||
| 400 | #define A_6 SW1_CS6 | ||
| 401 | #define A_7 SW1_CS7 | ||
| 402 | #define A_8 SW1_CS8 | ||
| 403 | #define A_9 SW1_CS9 | ||
| 404 | #define A_10 SW1_CS10 | ||
| 405 | #define A_11 SW1_CS11 | ||
| 406 | #define A_12 SW1_CS12 | ||
| 407 | #define A_13 SW1_CS13 | ||
| 408 | #define A_14 SW1_CS14 | ||
| 409 | #define A_15 SW1_CS15 | ||
| 410 | #define A_16 SW1_CS16 | ||
| 411 | |||
| 412 | #define B_1 SW2_CS1 | ||
| 413 | #define B_2 SW2_CS2 | ||
| 414 | #define B_3 SW2_CS3 | ||
| 415 | #define B_4 SW2_CS4 | ||
| 416 | #define B_5 SW2_CS5 | ||
| 417 | #define B_6 SW2_CS6 | ||
| 418 | #define B_7 SW2_CS7 | ||
| 419 | #define B_8 SW2_CS8 | ||
| 420 | #define B_9 SW2_CS9 | ||
| 421 | #define B_10 SW2_CS10 | ||
| 422 | #define B_11 SW2_CS11 | ||
| 423 | #define B_12 SW2_CS12 | ||
| 424 | #define B_13 SW2_CS13 | ||
| 425 | #define B_14 SW2_CS14 | ||
| 426 | #define B_15 SW2_CS15 | ||
| 427 | #define B_16 SW2_CS16 | ||
| 428 | |||
| 429 | #define C_1 SW3_CS1 | ||
| 430 | #define C_2 SW3_CS2 | ||
| 431 | #define C_3 SW3_CS3 | ||
| 432 | #define C_4 SW3_CS4 | ||
| 433 | #define C_5 SW3_CS5 | ||
| 434 | #define C_6 SW3_CS6 | ||
| 435 | #define C_7 SW3_CS7 | ||
| 436 | #define C_8 SW3_CS8 | ||
| 437 | #define C_9 SW3_CS9 | ||
| 438 | #define C_10 SW3_CS10 | ||
| 439 | #define C_11 SW3_CS11 | ||
| 440 | #define C_12 SW3_CS12 | ||
| 441 | #define C_13 SW3_CS13 | ||
| 442 | #define C_14 SW3_CS14 | ||
| 443 | #define C_15 SW3_CS15 | ||
| 444 | #define C_16 SW3_CS16 | ||
| 445 | |||
| 446 | #define D_1 SW4_CS1 | ||
| 447 | #define D_2 SW4_CS2 | ||
| 448 | #define D_3 SW4_CS3 | ||
| 449 | #define D_4 SW4_CS4 | ||
| 450 | #define D_5 SW4_CS5 | ||
| 451 | #define D_6 SW4_CS6 | ||
| 452 | #define D_7 SW4_CS7 | ||
| 453 | #define D_8 SW4_CS8 | ||
| 454 | #define D_9 SW4_CS9 | ||
| 455 | #define D_10 SW4_CS10 | ||
| 456 | #define D_11 SW4_CS11 | ||
| 457 | #define D_12 SW4_CS12 | ||
| 458 | #define D_13 SW4_CS13 | ||
| 459 | #define D_14 SW4_CS14 | ||
| 460 | #define D_15 SW4_CS15 | ||
| 461 | #define D_16 SW4_CS16 | ||
| 462 | |||
| 463 | #define E_1 SW5_CS1 | ||
| 464 | #define E_2 SW5_CS2 | ||
| 465 | #define E_3 SW5_CS3 | ||
| 466 | #define E_4 SW5_CS4 | ||
| 467 | #define E_5 SW5_CS5 | ||
| 468 | #define E_6 SW5_CS6 | ||
| 469 | #define E_7 SW5_CS7 | ||
| 470 | #define E_8 SW5_CS8 | ||
| 471 | #define E_9 SW5_CS9 | ||
| 472 | #define E_10 SW5_CS10 | ||
| 473 | #define E_11 SW5_CS11 | ||
| 474 | #define E_12 SW5_CS12 | ||
| 475 | #define E_13 SW5_CS13 | ||
| 476 | #define E_14 SW5_CS14 | ||
| 477 | #define E_15 SW5_CS15 | ||
| 478 | #define E_16 SW5_CS16 | ||
| 479 | |||
| 480 | #define F_1 SW6_CS1 | ||
| 481 | #define F_2 SW6_CS2 | ||
| 482 | #define F_3 SW6_CS3 | ||
| 483 | #define F_4 SW6_CS4 | ||
| 484 | #define F_5 SW6_CS5 | ||
| 485 | #define F_6 SW6_CS6 | ||
| 486 | #define F_7 SW6_CS7 | ||
| 487 | #define F_8 SW6_CS8 | ||
| 488 | #define F_9 SW6_CS9 | ||
| 489 | #define F_10 SW6_CS10 | ||
| 490 | #define F_11 SW6_CS11 | ||
| 491 | #define F_12 SW6_CS12 | ||
| 492 | #define F_13 SW6_CS13 | ||
| 493 | #define F_14 SW6_CS14 | ||
| 494 | #define F_15 SW6_CS15 | ||
| 495 | #define F_16 SW6_CS16 | ||
| 496 | |||
| 497 | #define G_1 SW7_CS1 | ||
| 498 | #define G_2 SW7_CS2 | ||
| 499 | #define G_3 SW7_CS3 | ||
| 500 | #define G_4 SW7_CS4 | ||
| 501 | #define G_5 SW7_CS5 | ||
| 502 | #define G_6 SW7_CS6 | ||
| 503 | #define G_7 SW7_CS7 | ||
| 504 | #define G_8 SW7_CS8 | ||
| 505 | #define G_9 SW7_CS9 | ||
| 506 | #define G_10 SW7_CS10 | ||
| 507 | #define G_11 SW7_CS11 | ||
| 508 | #define G_12 SW7_CS12 | ||
| 509 | #define G_13 SW7_CS13 | ||
| 510 | #define G_14 SW7_CS14 | ||
| 511 | #define G_15 SW7_CS15 | ||
| 512 | #define G_16 SW7_CS16 | ||
| 513 | |||
| 514 | #define H_1 SW8_CS1 | ||
| 515 | #define H_2 SW8_CS2 | ||
| 516 | #define H_3 SW8_CS3 | ||
| 517 | #define H_4 SW8_CS4 | ||
| 518 | #define H_5 SW8_CS5 | ||
| 519 | #define H_6 SW8_CS6 | ||
| 520 | #define H_7 SW8_CS7 | ||
| 521 | #define H_8 SW8_CS8 | ||
| 522 | #define H_9 SW8_CS9 | ||
| 523 | #define H_10 SW8_CS10 | ||
| 524 | #define H_11 SW8_CS11 | ||
| 525 | #define H_12 SW8_CS12 | ||
| 526 | #define H_13 SW8_CS13 | ||
| 527 | #define H_14 SW8_CS14 | ||
| 528 | #define H_15 SW8_CS15 | ||
| 529 | #define H_16 SW8_CS16 | ||
| 530 | |||
| 531 | #define I_1 SW9_CS1 | ||
| 532 | #define I_2 SW9_CS2 | ||
| 533 | #define I_3 SW9_CS3 | ||
| 534 | #define I_4 SW9_CS4 | ||
| 535 | #define I_5 SW9_CS5 | ||
| 536 | #define I_6 SW9_CS6 | ||
| 537 | #define I_7 SW9_CS7 | ||
| 538 | #define I_8 SW9_CS8 | ||
| 539 | #define I_9 SW9_CS9 | ||
| 540 | #define I_10 SW9_CS10 | ||
| 541 | #define I_11 SW9_CS11 | ||
| 542 | #define I_12 SW9_CS12 | ||
| 543 | #define I_13 SW9_CS13 | ||
| 544 | #define I_14 SW9_CS14 | ||
| 545 | #define I_15 SW9_CS15 | ||
| 546 | #define I_16 SW9_CS16 | ||
| 547 | |||
| 548 | #define J_1 SW10_CS1 | ||
| 549 | #define J_2 SW10_CS2 | ||
| 550 | #define J_3 SW10_CS3 | ||
| 551 | #define J_4 SW10_CS4 | ||
| 552 | #define J_5 SW10_CS5 | ||
| 553 | #define J_6 SW10_CS6 | ||
| 554 | #define J_7 SW10_CS7 | ||
| 555 | #define J_8 SW10_CS8 | ||
| 556 | #define J_9 SW10_CS9 | ||
| 557 | #define J_10 SW10_CS10 | ||
| 558 | #define J_11 SW10_CS11 | ||
| 559 | #define J_12 SW10_CS12 | ||
| 560 | #define J_13 SW10_CS13 | ||
| 561 | #define J_14 SW10_CS14 | ||
| 562 | #define J_15 SW10_CS15 | ||
| 563 | #define J_16 SW10_CS16 | ||
| 564 | |||
| 565 | #define K_1 SW11_CS1 | ||
| 566 | #define K_2 SW11_CS2 | ||
| 567 | #define K_3 SW11_CS3 | ||
| 568 | #define K_4 SW11_CS4 | ||
| 569 | #define K_5 SW11_CS5 | ||
| 570 | #define K_6 SW11_CS6 | ||
| 571 | #define K_7 SW11_CS7 | ||
| 572 | #define K_8 SW11_CS8 | ||
| 573 | #define K_9 SW11_CS9 | ||
| 574 | #define K_10 SW11_CS10 | ||
| 575 | #define K_11 SW11_CS11 | ||
| 576 | #define K_12 SW11_CS12 | ||
| 577 | #define K_13 SW11_CS13 | ||
| 578 | #define K_14 SW11_CS14 | ||
| 579 | #define K_15 SW11_CS15 | ||
| 580 | #define K_16 SW11_CS16 | ||
| 581 | |||
| 582 | #define L_1 SW12_CS1 | ||
| 583 | #define L_2 SW12_CS2 | ||
| 584 | #define L_3 SW12_CS3 | ||
| 585 | #define L_4 SW12_CS4 | ||
| 586 | #define L_5 SW12_CS5 | ||
| 587 | #define L_6 SW12_CS6 | ||
| 588 | #define L_7 SW12_CS7 | ||
| 589 | #define L_8 SW12_CS8 | ||
| 590 | #define L_9 SW12_CS9 | ||
| 591 | #define L_10 SW12_CS10 | ||
| 592 | #define L_11 SW12_CS11 | ||
| 593 | #define L_12 SW12_CS12 | ||
| 594 | #define L_13 SW12_CS13 | ||
| 595 | #define L_14 SW12_CS14 | ||
| 596 | #define L_15 SW12_CS15 | ||
| 597 | #define L_16 SW12_CS16 | ||
diff --git a/drivers/led/issi/is31fl3736-mono.h b/drivers/led/issi/is31fl3736-mono.h index 91c2e0420b..73441ea551 100644 --- a/drivers/led/issi/is31fl3736-mono.h +++ b/drivers/led/issi/is31fl3736-mono.h | |||
| @@ -22,36 +22,6 @@ | |||
| 22 | #include "progmem.h" | 22 | #include "progmem.h" |
| 23 | #include "util.h" | 23 | #include "util.h" |
| 24 | 24 | ||
| 25 | // ======== DEPRECATED DEFINES - DO NOT USE ======== | ||
| 26 | #ifdef ISSI_TIMEOUT | ||
| 27 | # define IS31FL3736_I2C_TIMEOUT ISSI_TIMEOUT | ||
| 28 | #endif | ||
| 29 | #ifdef ISSI_PERSISTENCE | ||
| 30 | # define IS31FL3736_I2C_PERSISTENCE ISSI_PERSISTENCE | ||
| 31 | #endif | ||
| 32 | #ifdef ISSI_SWPULLUP | ||
| 33 | # define IS31FL3736_SW_PULLUP ISSI_SWPULLUP | ||
| 34 | #endif | ||
| 35 | #ifdef ISSI_CSPULLUP | ||
| 36 | # define IS31FL3736_CS_PULLDOWN ISSI_CSPULLUP | ||
| 37 | #endif | ||
| 38 | #ifdef ISSI_GLOBALCURRENT | ||
| 39 | # define IS31FL3736_GLOBAL_CURRENT ISSI_GLOBALCURRENT | ||
| 40 | #endif | ||
| 41 | |||
| 42 | #define is31_led is31fl3736_led_t | ||
| 43 | #define g_is31_leds g_is31fl3736_leds | ||
| 44 | |||
| 45 | #define PUR_0R IS31FL3736_PUR_0_OHM | ||
| 46 | #define PUR_05KR IS31FL3736_PUR_05K_OHM | ||
| 47 | #define PUR_1KR IS31FL3736_PUR_1K_OHM | ||
| 48 | #define PUR_2KR IS31FL3736_PUR_2K_OHM | ||
| 49 | #define PUR_4KR IS31FL3736_PUR_4K_OHM | ||
| 50 | #define PUR_8KR IS31FL3736_PUR_8K_OHM | ||
| 51 | #define PUR_16KR IS31FL3736_PUR_16K_OHM | ||
| 52 | #define PUR_32KR IS31FL3736_PUR_32K_OHM | ||
| 53 | // ======== | ||
| 54 | |||
| 55 | #define IS31FL3736_REG_INTERRUPT_MASK 0xF0 | 25 | #define IS31FL3736_REG_INTERRUPT_MASK 0xF0 |
| 56 | #define IS31FL3736_REG_INTERRUPT_STATUS 0xF1 | 26 | #define IS31FL3736_REG_INTERRUPT_STATUS 0xF1 |
| 57 | 27 | ||
| @@ -259,113 +229,3 @@ void is31fl3736_flush(void); | |||
| 259 | #define SW12_CS6 0xBA | 229 | #define SW12_CS6 0xBA |
| 260 | #define SW12_CS7 0xBC | 230 | #define SW12_CS7 0xBC |
| 261 | #define SW12_CS8 0xBE | 231 | #define SW12_CS8 0xBE |
| 262 | |||
| 263 | // DEPRECATED - DO NOT USE | ||
| 264 | |||
| 265 | #define A_1 SW1_CS1 | ||
| 266 | #define A_2 SW1_CS2 | ||
| 267 | #define A_3 SW1_CS3 | ||
| 268 | #define A_4 SW1_CS4 | ||
| 269 | #define A_5 SW1_CS5 | ||
| 270 | #define A_6 SW1_CS6 | ||
| 271 | #define A_7 SW1_CS7 | ||
| 272 | #define A_8 SW1_CS8 | ||
| 273 | |||
| 274 | #define B_1 SW2_CS1 | ||
| 275 | #define B_2 SW2_CS2 | ||
| 276 | #define B_3 SW2_CS3 | ||
| 277 | #define B_4 SW2_CS4 | ||
| 278 | #define B_5 SW2_CS5 | ||
| 279 | #define B_6 SW2_CS6 | ||
| 280 | #define B_7 SW2_CS7 | ||
| 281 | #define B_8 SW2_CS8 | ||
| 282 | |||
| 283 | #define C_1 SW3_CS1 | ||
| 284 | #define C_2 SW3_CS2 | ||
| 285 | #define C_3 SW3_CS3 | ||
| 286 | #define C_4 SW3_CS4 | ||
| 287 | #define C_5 SW3_CS5 | ||
| 288 | #define C_6 SW3_CS6 | ||
| 289 | #define C_7 SW3_CS7 | ||
| 290 | #define C_8 SW3_CS8 | ||
| 291 | |||
| 292 | #define D_1 SW4_CS1 | ||
| 293 | #define D_2 SW4_CS2 | ||
| 294 | #define D_3 SW4_CS3 | ||
| 295 | #define D_4 SW4_CS4 | ||
| 296 | #define D_5 SW4_CS5 | ||
| 297 | #define D_6 SW4_CS6 | ||
| 298 | #define D_7 SW4_CS7 | ||
| 299 | #define D_8 SW4_CS8 | ||
| 300 | |||
| 301 | #define E_1 SW5_CS1 | ||
| 302 | #define E_2 SW5_CS2 | ||
| 303 | #define E_3 SW5_CS3 | ||
| 304 | #define E_4 SW5_CS4 | ||
| 305 | #define E_5 SW5_CS5 | ||
| 306 | #define E_6 SW5_CS6 | ||
| 307 | #define E_7 SW5_CS7 | ||
| 308 | #define E_8 SW5_CS8 | ||
| 309 | |||
| 310 | #define F_1 SW6_CS1 | ||
| 311 | #define F_2 SW6_CS2 | ||
| 312 | #define F_3 SW6_CS3 | ||
| 313 | #define F_4 SW6_CS4 | ||
| 314 | #define F_5 SW6_CS5 | ||
| 315 | #define F_6 SW6_CS6 | ||
| 316 | #define F_7 SW6_CS7 | ||
| 317 | #define F_8 SW6_CS8 | ||
| 318 | |||
| 319 | #define G_1 SW7_CS1 | ||
| 320 | #define G_2 SW7_CS2 | ||
| 321 | #define G_3 SW7_CS3 | ||
| 322 | #define G_4 SW7_CS4 | ||
| 323 | #define G_5 SW7_CS5 | ||
| 324 | #define G_6 SW7_CS6 | ||
| 325 | #define G_7 SW7_CS7 | ||
| 326 | #define G_8 SW7_CS8 | ||
| 327 | |||
| 328 | #define H_1 SW8_CS1 | ||
| 329 | #define H_2 SW8_CS2 | ||
| 330 | #define H_3 SW8_CS3 | ||
| 331 | #define H_4 SW8_CS4 | ||
| 332 | #define H_5 SW8_CS5 | ||
| 333 | #define H_6 SW8_CS6 | ||
| 334 | #define H_7 SW8_CS7 | ||
| 335 | #define H_8 SW8_CS8 | ||
| 336 | |||
| 337 | #define I_1 SW9_CS1 | ||
| 338 | #define I_2 SW9_CS2 | ||
| 339 | #define I_3 SW9_CS3 | ||
| 340 | #define I_4 SW9_CS4 | ||
| 341 | #define I_5 SW9_CS5 | ||
| 342 | #define I_6 SW9_CS6 | ||
| 343 | #define I_7 SW9_CS7 | ||
| 344 | #define I_8 SW9_CS8 | ||
| 345 | |||
| 346 | #define J_1 SW10_CS1 | ||
| 347 | #define J_2 SW10_CS2 | ||
| 348 | #define J_3 SW10_CS3 | ||
| 349 | #define J_4 SW10_CS4 | ||
| 350 | #define J_5 SW10_CS5 | ||
| 351 | #define J_6 SW10_CS6 | ||
| 352 | #define J_7 SW10_CS7 | ||
| 353 | #define J_8 SW10_CS8 | ||
| 354 | |||
| 355 | #define K_1 SW11_CS1 | ||
| 356 | #define K_2 SW11_CS2 | ||
| 357 | #define K_3 SW11_CS3 | ||
| 358 | #define K_4 SW11_CS4 | ||
| 359 | #define K_5 SW11_CS5 | ||
| 360 | #define K_6 SW11_CS6 | ||
| 361 | #define K_7 SW11_CS7 | ||
| 362 | #define K_8 SW11_CS8 | ||
| 363 | |||
| 364 | #define L_1 SW12_CS1 | ||
| 365 | #define L_2 SW12_CS2 | ||
| 366 | #define L_3 SW12_CS3 | ||
| 367 | #define L_4 SW12_CS4 | ||
| 368 | #define L_5 SW12_CS5 | ||
| 369 | #define L_6 SW12_CS6 | ||
| 370 | #define L_7 SW12_CS7 | ||
| 371 | #define L_8 SW12_CS8 | ||
diff --git a/drivers/led/issi/is31fl3736.h b/drivers/led/issi/is31fl3736.h index dae7b3c812..f0eabad819 100644 --- a/drivers/led/issi/is31fl3736.h +++ b/drivers/led/issi/is31fl3736.h | |||
| @@ -22,48 +22,6 @@ | |||
| 22 | #include "progmem.h" | 22 | #include "progmem.h" |
| 23 | #include "util.h" | 23 | #include "util.h" |
| 24 | 24 | ||
| 25 | // ======== DEPRECATED DEFINES - DO NOT USE ======== | ||
| 26 | #ifdef DRIVER_ADDR_1 | ||
| 27 | # define IS31FL3736_I2C_ADDRESS_1 DRIVER_ADDR_1 | ||
| 28 | #endif | ||
| 29 | #ifdef DRIVER_ADDR_2 | ||
| 30 | # define IS31FL3736_I2C_ADDRESS_2 DRIVER_ADDR_2 | ||
| 31 | #endif | ||
| 32 | #ifdef DRIVER_ADDR_3 | ||
| 33 | # define IS31FL3736_I2C_ADDRESS_3 DRIVER_ADDR_3 | ||
| 34 | #endif | ||
| 35 | #ifdef DRIVER_ADDR_4 | ||
| 36 | # define IS31FL3736_I2C_ADDRESS_4 DRIVER_ADDR_4 | ||
| 37 | #endif | ||
| 38 | #ifdef ISSI_TIMEOUT | ||
| 39 | # define IS31FL3736_I2C_TIMEOUT ISSI_TIMEOUT | ||
| 40 | #endif | ||
| 41 | #ifdef ISSI_PERSISTENCE | ||
| 42 | # define IS31FL3736_I2C_PERSISTENCE ISSI_PERSISTENCE | ||
| 43 | #endif | ||
| 44 | #ifdef ISSI_SWPULLUP | ||
| 45 | # define IS31FL3736_SW_PULLUP ISSI_SWPULLUP | ||
| 46 | #endif | ||
| 47 | #ifdef ISSI_CSPULLUP | ||
| 48 | # define IS31FL3736_CS_PULLDOWN ISSI_CSPULLUP | ||
| 49 | #endif | ||
| 50 | #ifdef ISSI_GLOBALCURRENT | ||
| 51 | # define IS31FL3736_GLOBAL_CURRENT ISSI_GLOBALCURRENT | ||
| 52 | #endif | ||
| 53 | |||
| 54 | #define is31_led is31fl3736_led_t | ||
| 55 | #define g_is31_leds g_is31fl3736_leds | ||
| 56 | |||
| 57 | #define PUR_0R IS31FL3736_PUR_0_OHM | ||
| 58 | #define PUR_05KR IS31FL3736_PUR_0K5_OHM | ||
| 59 | #define PUR_1KR IS31FL3736_PUR_1K_OHM | ||
| 60 | #define PUR_2KR IS31FL3736_PUR_2K_OHM | ||
| 61 | #define PUR_4KR IS31FL3736_PUR_4K_OHM | ||
| 62 | #define PUR_8KR IS31FL3736_PUR_8K_OHM | ||
| 63 | #define PUR_16KR IS31FL3736_PUR_16K_OHM | ||
| 64 | #define PUR_32KR IS31FL3736_PUR_32K_OHM | ||
| 65 | // ======== | ||
| 66 | |||
| 67 | #define IS31FL3736_REG_INTERRUPT_MASK 0xF0 | 25 | #define IS31FL3736_REG_INTERRUPT_MASK 0xF0 |
| 68 | #define IS31FL3736_REG_INTERRUPT_STATUS 0xF1 | 26 | #define IS31FL3736_REG_INTERRUPT_STATUS 0xF1 |
| 69 | 27 | ||
diff --git a/drivers/led/issi/is31fl3737-mono.h b/drivers/led/issi/is31fl3737-mono.h index 99151c1e7a..40380f9006 100644 --- a/drivers/led/issi/is31fl3737-mono.h +++ b/drivers/led/issi/is31fl3737-mono.h | |||
| @@ -24,36 +24,6 @@ | |||
| 24 | #include "progmem.h" | 24 | #include "progmem.h" |
| 25 | #include "util.h" | 25 | #include "util.h" |
| 26 | 26 | ||
| 27 | // ======== DEPRECATED DEFINES - DO NOT USE ======== | ||
| 28 | #ifdef ISSI_TIMEOUT | ||
| 29 | # define IS31FL3737_I2C_TIMEOUT ISSI_TIMEOUT | ||
| 30 | #endif | ||
| 31 | #ifdef ISSI_PERSISTENCE | ||
| 32 | # define IS31FL3737_I2C_PERSISTENCE ISSI_PERSISTENCE | ||
| 33 | #endif | ||
| 34 | #ifdef ISSI_PWM_FREQUENCY | ||
| 35 | # define IS31FL3737_PWM_FREQUENCY ISSI_PWM_FREQUENCY | ||
| 36 | #endif | ||
| 37 | #ifdef ISSI_SWPULLUP | ||
| 38 | # define IS31FL3737_SW_PULLUP ISSI_SWPULLUP | ||
| 39 | #endif | ||
| 40 | #ifdef ISSI_CSPULLUP | ||
| 41 | # define IS31FL3737_CS_PULLDOWN ISSI_CSPULLUP | ||
| 42 | #endif | ||
| 43 | #ifdef ISSI_GLOBALCURRENT | ||
| 44 | # define IS31FL3737_GLOBAL_CURRENT ISSI_GLOBALCURRENT | ||
| 45 | #endif | ||
| 46 | |||
| 47 | #define PUR_0R IS31FL3737_PUR_0_OHM | ||
| 48 | #define PUR_05KR IS31FL3737_PUR_0K5_OHM | ||
| 49 | #define PUR_1KR IS31FL3737_PUR_1K_OHM | ||
| 50 | #define PUR_2KR IS31FL3737_PUR_2K_OHM | ||
| 51 | #define PUR_4KR IS31FL3737_PUR_4K_OHM | ||
| 52 | #define PUR_8KR IS31FL3737_PUR_8K_OHM | ||
| 53 | #define PUR_16KR IS31FL3737_PUR_16K_OHM | ||
| 54 | #define PUR_32KR IS31FL3737_PUR_32K_OHM | ||
| 55 | // ======== | ||
| 56 | |||
| 57 | #define IS31FL3737_REG_INTERRUPT_MASK 0xF0 | 27 | #define IS31FL3737_REG_INTERRUPT_MASK 0xF0 |
| 58 | #define IS31FL3737_REG_INTERRUPT_STATUS 0xF1 | 28 | #define IS31FL3737_REG_INTERRUPT_STATUS 0xF1 |
| 59 | 29 | ||
diff --git a/drivers/led/issi/is31fl3737.h b/drivers/led/issi/is31fl3737.h index 735a3a1e30..c1a9306a87 100644 --- a/drivers/led/issi/is31fl3737.h +++ b/drivers/led/issi/is31fl3737.h | |||
| @@ -24,51 +24,6 @@ | |||
| 24 | #include "progmem.h" | 24 | #include "progmem.h" |
| 25 | #include "util.h" | 25 | #include "util.h" |
| 26 | 26 | ||
| 27 | // ======== DEPRECATED DEFINES - DO NOT USE ======== | ||
| 28 | #ifdef DRIVER_ADDR_1 | ||
| 29 | # define IS31FL3737_I2C_ADDRESS_1 DRIVER_ADDR_1 | ||
| 30 | #endif | ||
| 31 | #ifdef DRIVER_ADDR_2 | ||
| 32 | # define IS31FL3737_I2C_ADDRESS_2 DRIVER_ADDR_2 | ||
| 33 | #endif | ||
| 34 | #ifdef DRIVER_ADDR_3 | ||
| 35 | # define IS31FL3737_I2C_ADDRESS_3 DRIVER_ADDR_3 | ||
| 36 | #endif | ||
| 37 | #ifdef DRIVER_ADDR_4 | ||
| 38 | # define IS31FL3737_I2C_ADDRESS_4 DRIVER_ADDR_4 | ||
| 39 | #endif | ||
| 40 | #ifdef ISSI_TIMEOUT | ||
| 41 | # define IS31FL3737_I2C_TIMEOUT ISSI_TIMEOUT | ||
| 42 | #endif | ||
| 43 | #ifdef ISSI_PERSISTENCE | ||
| 44 | # define IS31FL3737_I2C_PERSISTENCE ISSI_PERSISTENCE | ||
| 45 | #endif | ||
| 46 | #ifdef ISSI_PWM_FREQUENCY | ||
| 47 | # define IS31FL3737_PWM_FREQUENCY ISSI_PWM_FREQUENCY | ||
| 48 | #endif | ||
| 49 | #ifdef ISSI_SWPULLUP | ||
| 50 | # define IS31FL3737_SW_PULLUP ISSI_SWPULLUP | ||
| 51 | #endif | ||
| 52 | #ifdef ISSI_CSPULLUP | ||
| 53 | # define IS31FL3737_CS_PULLDOWN ISSI_CSPULLUP | ||
| 54 | #endif | ||
| 55 | #ifdef ISSI_GLOBALCURRENT | ||
| 56 | # define IS31FL3737_GLOBAL_CURRENT ISSI_GLOBALCURRENT | ||
| 57 | #endif | ||
| 58 | |||
| 59 | #define is31_led is31fl3737_led_t | ||
| 60 | #define g_is31_leds g_is31fl3737_leds | ||
| 61 | |||
| 62 | #define PUR_0R IS31FL3737_PUR_0_OHM | ||
| 63 | #define PUR_05KR IS31FL3737_PUR_0K5_OHM | ||
| 64 | #define PUR_1KR IS31FL3737_PUR_1K_OHM | ||
| 65 | #define PUR_2KR IS31FL3737_PUR_2K_OHM | ||
| 66 | #define PUR_4KR IS31FL3737_PUR_4K_OHM | ||
| 67 | #define PUR_8KR IS31FL3737_PUR_8K_OHM | ||
| 68 | #define PUR_16KR IS31FL3737_PUR_16K_OHM | ||
| 69 | #define PUR_32KR IS31FL3737_PUR_32K_OHM | ||
| 70 | // ======== | ||
| 71 | |||
| 72 | #define IS31FL3737_REG_INTERRUPT_MASK 0xF0 | 27 | #define IS31FL3737_REG_INTERRUPT_MASK 0xF0 |
| 73 | #define IS31FL3737_REG_INTERRUPT_STATUS 0xF1 | 28 | #define IS31FL3737_REG_INTERRUPT_STATUS 0xF1 |
| 74 | 29 | ||
| @@ -314,161 +269,3 @@ void is31fl3737_flush(void); | |||
| 314 | #define SW12_CS10 0xBB | 269 | #define SW12_CS10 0xBB |
| 315 | #define SW12_CS11 0xBC | 270 | #define SW12_CS11 0xBC |
| 316 | #define SW12_CS12 0xBD | 271 | #define SW12_CS12 0xBD |
| 317 | |||
| 318 | // DEPRECATED - DO NOT USE | ||
| 319 | |||
| 320 | #define A_1 SW1_CS1 | ||
| 321 | #define A_2 SW1_CS2 | ||
| 322 | #define A_3 SW1_CS3 | ||
| 323 | #define A_4 SW1_CS4 | ||
| 324 | #define A_5 SW1_CS5 | ||
| 325 | #define A_6 SW1_CS6 | ||
| 326 | #define A_7 SW1_CS7 | ||
| 327 | #define A_8 SW1_CS8 | ||
| 328 | #define A_9 SW1_CS9 | ||
| 329 | #define A_10 SW1_CS10 | ||
| 330 | #define A_11 SW1_CS11 | ||
| 331 | #define A_12 SW1_CS12 | ||
| 332 | |||
| 333 | #define B_1 SW2_CS1 | ||
| 334 | #define B_2 SW2_CS2 | ||
| 335 | #define B_3 SW2_CS3 | ||
| 336 | #define B_4 SW2_CS4 | ||
| 337 | #define B_5 SW2_CS5 | ||
| 338 | #define B_6 SW2_CS6 | ||
| 339 | #define B_7 SW2_CS7 | ||
| 340 | #define B_8 SW2_CS8 | ||
| 341 | #define B_9 SW2_CS9 | ||
| 342 | #define B_10 SW2_CS10 | ||
| 343 | #define B_11 SW2_CS11 | ||
| 344 | #define B_12 SW2_CS12 | ||
| 345 | |||
| 346 | #define C_1 SW3_CS1 | ||
| 347 | #define C_2 SW3_CS2 | ||
| 348 | #define C_3 SW3_CS3 | ||
| 349 | #define C_4 SW3_CS4 | ||
| 350 | #define C_5 SW3_CS5 | ||
| 351 | #define C_6 SW3_CS6 | ||
| 352 | #define C_7 SW3_CS7 | ||
| 353 | #define C_8 SW3_CS8 | ||
| 354 | #define C_9 SW3_CS9 | ||
| 355 | #define C_10 SW3_CS10 | ||
| 356 | #define C_11 SW3_CS11 | ||
| 357 | #define C_12 SW3_CS12 | ||
| 358 | |||
| 359 | #define D_1 SW4_CS1 | ||
| 360 | #define D_2 SW4_CS2 | ||
| 361 | #define D_3 SW4_CS3 | ||
| 362 | #define D_4 SW4_CS4 | ||
| 363 | #define D_5 SW4_CS5 | ||
| 364 | #define D_6 SW4_CS6 | ||
| 365 | #define D_7 SW4_CS7 | ||
| 366 | #define D_8 SW4_CS8 | ||
| 367 | #define D_9 SW4_CS9 | ||
| 368 | #define D_10 SW4_CS10 | ||
| 369 | #define D_11 SW4_CS11 | ||
| 370 | #define D_12 SW4_CS12 | ||
| 371 | |||
| 372 | #define E_1 SW5_CS1 | ||
| 373 | #define E_2 SW5_CS2 | ||
| 374 | #define E_3 SW5_CS3 | ||
| 375 | #define E_4 SW5_CS4 | ||
| 376 | #define E_5 SW5_CS5 | ||
| 377 | #define E_6 SW5_CS6 | ||
| 378 | #define E_7 SW5_CS7 | ||
| 379 | #define E_8 SW5_CS8 | ||
| 380 | #define E_9 SW5_CS9 | ||
| 381 | #define E_10 SW5_CS10 | ||
| 382 | #define E_11 SW5_CS11 | ||
| 383 | #define E_12 SW5_CS12 | ||
| 384 | |||
| 385 | #define F_1 SW6_CS1 | ||
| 386 | #define F_2 SW6_CS2 | ||
| 387 | #define F_3 SW6_CS3 | ||
| 388 | #define F_4 SW6_CS4 | ||
| 389 | #define F_5 SW6_CS5 | ||
| 390 | #define F_6 SW6_CS6 | ||
| 391 | #define F_7 SW6_CS7 | ||
| 392 | #define F_8 SW6_CS8 | ||
| 393 | #define F_9 SW6_CS9 | ||
| 394 | #define F_10 SW6_CS10 | ||
| 395 | #define F_11 SW6_CS11 | ||
| 396 | #define F_12 SW6_CS12 | ||
| 397 | |||
| 398 | #define G_1 SW7_CS1 | ||
| 399 | #define G_2 SW7_CS2 | ||
| 400 | #define G_3 SW7_CS3 | ||
| 401 | #define G_4 SW7_CS4 | ||
| 402 | #define G_5 SW7_CS5 | ||
| 403 | #define G_6 SW7_CS6 | ||
| 404 | #define G_7 SW7_CS7 | ||
| 405 | #define G_8 SW7_CS8 | ||
| 406 | #define G_9 SW7_CS9 | ||
| 407 | #define G_10 SW7_CS10 | ||
| 408 | #define G_11 SW7_CS11 | ||
| 409 | #define G_12 SW7_CS12 | ||
| 410 | |||
| 411 | #define H_1 SW8_CS1 | ||
| 412 | #define H_2 SW8_CS2 | ||
| 413 | #define H_3 SW8_CS3 | ||
| 414 | #define H_4 SW8_CS4 | ||
| 415 | #define H_5 SW8_CS5 | ||
| 416 | #define H_6 SW8_CS6 | ||
| 417 | #define H_7 SW8_CS7 | ||
| 418 | #define H_8 SW8_CS8 | ||
| 419 | #define H_9 SW8_CS9 | ||
| 420 | #define H_10 SW8_CS10 | ||
| 421 | #define H_11 SW8_CS11 | ||
| 422 | #define H_12 SW8_CS12 | ||
| 423 | |||
| 424 | #define I_1 SW9_CS1 | ||
| 425 | #define I_2 SW9_CS2 | ||
| 426 | #define I_3 SW9_CS3 | ||
| 427 | #define I_4 SW9_CS4 | ||
| 428 | #define I_5 SW9_CS5 | ||
| 429 | #define I_6 SW9_CS6 | ||
| 430 | #define I_7 SW9_CS7 | ||
| 431 | #define I_8 SW9_CS8 | ||
| 432 | #define I_9 SW9_CS9 | ||
| 433 | #define I_10 SW9_CS10 | ||
| 434 | #define I_11 SW9_CS11 | ||
| 435 | #define I_12 SW9_CS12 | ||
| 436 | |||
| 437 | #define J_1 SW10_CS1 | ||
| 438 | #define J_2 SW10_CS2 | ||
| 439 | #define J_3 SW10_CS3 | ||
| 440 | #define J_4 SW10_CS4 | ||
| 441 | #define J_5 SW10_CS5 | ||
| 442 | #define J_6 SW10_CS6 | ||
| 443 | #define J_7 SW10_CS7 | ||
| 444 | #define J_8 SW10_CS8 | ||
| 445 | #define J_9 SW10_CS9 | ||
| 446 | #define J_10 SW10_CS10 | ||
| 447 | #define J_11 SW10_CS11 | ||
| 448 | #define J_12 SW10_CS12 | ||
| 449 | |||
| 450 | #define K_1 SW11_CS1 | ||
| 451 | #define K_2 SW11_CS2 | ||
| 452 | #define K_3 SW11_CS3 | ||
| 453 | #define K_4 SW11_CS4 | ||
| 454 | #define K_5 SW11_CS5 | ||
| 455 | #define K_6 SW11_CS6 | ||
| 456 | #define K_7 SW11_CS7 | ||
| 457 | #define K_8 SW11_CS8 | ||
| 458 | #define K_9 SW11_CS9 | ||
| 459 | #define K_10 SW11_CS10 | ||
| 460 | #define K_11 SW11_CS11 | ||
| 461 | #define K_12 SW11_CS12 | ||
| 462 | |||
| 463 | #define L_1 SW12_CS1 | ||
| 464 | #define L_2 SW12_CS2 | ||
| 465 | #define L_3 SW12_CS3 | ||
| 466 | #define L_4 SW12_CS4 | ||
| 467 | #define L_5 SW12_CS5 | ||
| 468 | #define L_6 SW12_CS6 | ||
| 469 | #define L_7 SW12_CS7 | ||
| 470 | #define L_8 SW12_CS8 | ||
| 471 | #define L_9 SW12_CS9 | ||
| 472 | #define L_10 SW12_CS10 | ||
| 473 | #define L_11 SW12_CS11 | ||
| 474 | #define L_12 SW12_CS12 | ||
diff --git a/drivers/led/issi/is31fl3741-mono.h b/drivers/led/issi/is31fl3741-mono.h index 6d4f70b1b3..d8797bda32 100644 --- a/drivers/led/issi/is31fl3741-mono.h +++ b/drivers/led/issi/is31fl3741-mono.h | |||
| @@ -24,36 +24,6 @@ | |||
| 24 | #include "progmem.h" | 24 | #include "progmem.h" |
| 25 | #include "util.h" | 25 | #include "util.h" |
| 26 | 26 | ||
| 27 | // ======== DEPRECATED DEFINES - DO NOT USE ======== | ||
| 28 | #ifdef ISSI_TIMEOUT | ||
| 29 | # define IS31FL3741_I2C_TIMEOUT ISSI_TIMEOUT | ||
| 30 | #endif | ||
| 31 | #ifdef ISSI_PERSISTENCE | ||
| 32 | # define IS31FL3741_I2C_PERSISTENCE ISSI_PERSISTENCE | ||
| 33 | #endif | ||
| 34 | #ifdef ISSI_CONFIGURATION | ||
| 35 | # define IS31FL3741_CONFIGURATION ISSI_CONFIGURATION | ||
| 36 | #endif | ||
| 37 | #ifdef ISSI_SWPULLUP | ||
| 38 | # define IS31FL3741_SW_PULLUP ISSI_SWPULLUP | ||
| 39 | #endif | ||
| 40 | #ifdef ISSI_CSPULLUP | ||
| 41 | # define IS31FL3741_CS_PULLDOWN ISSI_CSPULLUP | ||
| 42 | #endif | ||
| 43 | #ifdef ISSI_GLOBALCURRENT | ||
| 44 | # define IS31FL3741_GLOBAL_CURRENT ISSI_GLOBALCURRENT | ||
| 45 | #endif | ||
| 46 | |||
| 47 | #define PUR_0R IS31FL3741_PUR_0_OHM | ||
| 48 | #define PUR_05KR IS31FL3741_PUR_0K5_OHM | ||
| 49 | #define PUR_1KR IS31FL3741_PUR_1K_OHM | ||
| 50 | #define PUR_2KR IS31FL3741_PUR_2K_OHM | ||
| 51 | #define PUR_4KR IS31FL3741_PUR_4K_OHM | ||
| 52 | #define PUR_8KR IS31FL3741_PUR_8K_OHM | ||
| 53 | #define PUR_16KR IS31FL3741_PUR_16K_OHM | ||
| 54 | #define PUR_32KR IS31FL3741_PUR_32K_OHM | ||
| 55 | // ======== | ||
| 56 | |||
| 57 | #define IS31FL3741_REG_INTERRUPT_MASK 0xF0 | 27 | #define IS31FL3741_REG_INTERRUPT_MASK 0xF0 |
| 58 | #define IS31FL3741_REG_INTERRUPT_STATUS 0xF1 | 28 | #define IS31FL3741_REG_INTERRUPT_STATUS 0xF1 |
| 59 | #define IS31FL3741_REG_ID 0xFC | 29 | #define IS31FL3741_REG_ID 0xFC |
| @@ -514,374 +484,3 @@ void is31fl3741_flush(void); | |||
| 514 | #define SW9_CS37 0x1A8 | 484 | #define SW9_CS37 0x1A8 |
| 515 | #define SW9_CS38 0x1A9 | 485 | #define SW9_CS38 0x1A9 |
| 516 | #define SW9_CS39 0x1AA | 486 | #define SW9_CS39 0x1AA |
| 517 | |||
| 518 | // DEPRECATED - DO NOT USE | ||
| 519 | |||
| 520 | #define CS1_SW1 SW1_CS1 | ||
| 521 | #define CS2_SW1 SW1_CS2 | ||
| 522 | #define CS3_SW1 SW1_CS3 | ||
| 523 | #define CS4_SW1 SW1_CS4 | ||
| 524 | #define CS5_SW1 SW1_CS5 | ||
| 525 | #define CS6_SW1 SW1_CS6 | ||
| 526 | #define CS7_SW1 SW1_CS7 | ||
| 527 | #define CS8_SW1 SW1_CS8 | ||
| 528 | #define CS9_SW1 SW1_CS9 | ||
| 529 | #define CS10_SW1 SW1_CS10 | ||
| 530 | #define CS11_SW1 SW1_CS11 | ||
| 531 | #define CS12_SW1 SW1_CS12 | ||
| 532 | #define CS13_SW1 SW1_CS13 | ||
| 533 | #define CS14_SW1 SW1_CS14 | ||
| 534 | #define CS15_SW1 SW1_CS15 | ||
| 535 | #define CS16_SW1 SW1_CS16 | ||
| 536 | #define CS17_SW1 SW1_CS17 | ||
| 537 | #define CS18_SW1 SW1_CS18 | ||
| 538 | #define CS19_SW1 SW1_CS19 | ||
| 539 | #define CS20_SW1 SW1_CS20 | ||
| 540 | #define CS21_SW1 SW1_CS21 | ||
| 541 | #define CS22_SW1 SW1_CS22 | ||
| 542 | #define CS23_SW1 SW1_CS23 | ||
| 543 | #define CS24_SW1 SW1_CS24 | ||
| 544 | #define CS25_SW1 SW1_CS25 | ||
| 545 | #define CS26_SW1 SW1_CS26 | ||
| 546 | #define CS27_SW1 SW1_CS27 | ||
| 547 | #define CS28_SW1 SW1_CS28 | ||
| 548 | #define CS29_SW1 SW1_CS29 | ||
| 549 | #define CS30_SW1 SW1_CS30 | ||
| 550 | |||
| 551 | #define CS1_SW2 SW2_CS1 | ||
| 552 | #define CS2_SW2 SW2_CS2 | ||
| 553 | #define CS3_SW2 SW2_CS3 | ||
| 554 | #define CS4_SW2 SW2_CS4 | ||
| 555 | #define CS5_SW2 SW2_CS5 | ||
| 556 | #define CS6_SW2 SW2_CS6 | ||
| 557 | #define CS7_SW2 SW2_CS7 | ||
| 558 | #define CS8_SW2 SW2_CS8 | ||
| 559 | #define CS9_SW2 SW2_CS9 | ||
| 560 | #define CS10_SW2 SW2_CS10 | ||
| 561 | #define CS11_SW2 SW2_CS11 | ||
| 562 | #define CS12_SW2 SW2_CS12 | ||
| 563 | #define CS13_SW2 SW2_CS13 | ||
| 564 | #define CS14_SW2 SW2_CS14 | ||
| 565 | #define CS15_SW2 SW2_CS15 | ||
| 566 | #define CS16_SW2 SW2_CS16 | ||
| 567 | #define CS17_SW2 SW2_CS17 | ||
| 568 | #define CS18_SW2 SW2_CS18 | ||
| 569 | #define CS19_SW2 SW2_CS19 | ||
| 570 | #define CS20_SW2 SW2_CS20 | ||
| 571 | #define CS21_SW2 SW2_CS21 | ||
| 572 | #define CS22_SW2 SW2_CS22 | ||
| 573 | #define CS23_SW2 SW2_CS23 | ||
| 574 | #define CS24_SW2 SW2_CS24 | ||
| 575 | #define CS25_SW2 SW2_CS25 | ||
| 576 | #define CS26_SW2 SW2_CS26 | ||
| 577 | #define CS27_SW2 SW2_CS27 | ||
| 578 | #define CS28_SW2 SW2_CS28 | ||
| 579 | #define CS29_SW2 SW2_CS29 | ||
| 580 | #define CS30_SW2 SW2_CS30 | ||
| 581 | |||
| 582 | #define CS1_SW3 SW3_CS1 | ||
| 583 | #define CS2_SW3 SW3_CS2 | ||
| 584 | #define CS3_SW3 SW3_CS3 | ||
| 585 | #define CS4_SW3 SW3_CS4 | ||
| 586 | #define CS5_SW3 SW3_CS5 | ||
| 587 | #define CS6_SW3 SW3_CS6 | ||
| 588 | #define CS7_SW3 SW3_CS7 | ||
| 589 | #define CS8_SW3 SW3_CS8 | ||
| 590 | #define CS9_SW3 SW3_CS9 | ||
| 591 | #define CS10_SW3 SW3_CS10 | ||
| 592 | #define CS11_SW3 SW3_CS11 | ||
| 593 | #define CS12_SW3 SW3_CS12 | ||
| 594 | #define CS13_SW3 SW3_CS13 | ||
| 595 | #define CS14_SW3 SW3_CS14 | ||
| 596 | #define CS15_SW3 SW3_CS15 | ||
| 597 | #define CS16_SW3 SW3_CS16 | ||
| 598 | #define CS17_SW3 SW3_CS17 | ||
| 599 | #define CS18_SW3 SW3_CS18 | ||
| 600 | #define CS19_SW3 SW3_CS19 | ||
| 601 | #define CS20_SW3 SW3_CS20 | ||
| 602 | #define CS21_SW3 SW3_CS21 | ||
| 603 | #define CS22_SW3 SW3_CS22 | ||
| 604 | #define CS23_SW3 SW3_CS23 | ||
| 605 | #define CS24_SW3 SW3_CS24 | ||
| 606 | #define CS25_SW3 SW3_CS25 | ||
| 607 | #define CS26_SW3 SW3_CS26 | ||
| 608 | #define CS27_SW3 SW3_CS27 | ||
| 609 | #define CS28_SW3 SW3_CS28 | ||
| 610 | #define CS29_SW3 SW3_CS29 | ||
| 611 | #define CS30_SW3 SW3_CS30 | ||
| 612 | |||
| 613 | #define CS1_SW4 SW4_CS1 | ||
| 614 | #define CS2_SW4 SW4_CS2 | ||
| 615 | #define CS3_SW4 SW4_CS3 | ||
| 616 | #define CS4_SW4 SW4_CS4 | ||
| 617 | #define CS5_SW4 SW4_CS5 | ||
| 618 | #define CS6_SW4 SW4_CS6 | ||
| 619 | #define CS7_SW4 SW4_CS7 | ||
| 620 | #define CS8_SW4 SW4_CS8 | ||
| 621 | #define CS9_SW4 SW4_CS9 | ||
| 622 | #define CS10_SW4 SW4_CS10 | ||
| 623 | #define CS11_SW4 SW4_CS11 | ||
| 624 | #define CS12_SW4 SW4_CS12 | ||
| 625 | #define CS13_SW4 SW4_CS13 | ||
| 626 | #define CS14_SW4 SW4_CS14 | ||
| 627 | #define CS15_SW4 SW4_CS15 | ||
| 628 | #define CS16_SW4 SW4_CS16 | ||
| 629 | #define CS17_SW4 SW4_CS17 | ||
| 630 | #define CS18_SW4 SW4_CS18 | ||
| 631 | #define CS19_SW4 SW4_CS19 | ||
| 632 | #define CS20_SW4 SW4_CS20 | ||
| 633 | #define CS21_SW4 SW4_CS21 | ||
| 634 | #define CS22_SW4 SW4_CS22 | ||
| 635 | #define CS23_SW4 SW4_CS23 | ||
| 636 | #define CS24_SW4 SW4_CS24 | ||
| 637 | #define CS25_SW4 SW4_CS25 | ||
| 638 | #define CS26_SW4 SW4_CS26 | ||
| 639 | #define CS27_SW4 SW4_CS27 | ||
| 640 | #define CS28_SW4 SW4_CS28 | ||
| 641 | #define CS29_SW4 SW4_CS29 | ||
| 642 | #define CS30_SW4 SW4_CS30 | ||
| 643 | |||
| 644 | #define CS1_SW5 SW5_CS1 | ||
| 645 | #define CS2_SW5 SW5_CS2 | ||
| 646 | #define CS3_SW5 SW5_CS3 | ||
| 647 | #define CS4_SW5 SW5_CS4 | ||
| 648 | #define CS5_SW5 SW5_CS5 | ||
| 649 | #define CS6_SW5 SW5_CS6 | ||
| 650 | #define CS7_SW5 SW5_CS7 | ||
| 651 | #define CS8_SW5 SW5_CS8 | ||
| 652 | #define CS9_SW5 SW5_CS9 | ||
| 653 | #define CS10_SW5 SW5_CS10 | ||
| 654 | #define CS11_SW5 SW5_CS11 | ||
| 655 | #define CS12_SW5 SW5_CS12 | ||
| 656 | #define CS13_SW5 SW5_CS13 | ||
| 657 | #define CS14_SW5 SW5_CS14 | ||
| 658 | #define CS15_SW5 SW5_CS15 | ||
| 659 | #define CS16_SW5 SW5_CS16 | ||
| 660 | #define CS17_SW5 SW5_CS17 | ||
| 661 | #define CS18_SW5 SW5_CS18 | ||
| 662 | #define CS19_SW5 SW5_CS19 | ||
| 663 | #define CS20_SW5 SW5_CS20 | ||
| 664 | #define CS21_SW5 SW5_CS21 | ||
| 665 | #define CS22_SW5 SW5_CS22 | ||
| 666 | #define CS23_SW5 SW5_CS23 | ||
| 667 | #define CS24_SW5 SW5_CS24 | ||
| 668 | #define CS25_SW5 SW5_CS25 | ||
| 669 | #define CS26_SW5 SW5_CS26 | ||
| 670 | #define CS27_SW5 SW5_CS27 | ||
| 671 | #define CS28_SW5 SW5_CS28 | ||
| 672 | #define CS29_SW5 SW5_CS29 | ||
| 673 | #define CS30_SW5 SW5_CS30 | ||
| 674 | |||
| 675 | #define CS1_SW6 SW6_CS1 | ||
| 676 | #define CS2_SW6 SW6_CS2 | ||
| 677 | #define CS3_SW6 SW6_CS3 | ||
| 678 | #define CS4_SW6 SW6_CS4 | ||
| 679 | #define CS5_SW6 SW6_CS5 | ||
| 680 | #define CS6_SW6 SW6_CS6 | ||
| 681 | #define CS7_SW6 SW6_CS7 | ||
| 682 | #define CS8_SW6 SW6_CS8 | ||
| 683 | #define CS9_SW6 SW6_CS9 | ||
| 684 | #define CS10_SW6 SW6_CS10 | ||
| 685 | #define CS11_SW6 SW6_CS11 | ||
| 686 | #define CS12_SW6 SW6_CS12 | ||
| 687 | #define CS13_SW6 SW6_CS13 | ||
| 688 | #define CS14_SW6 SW6_CS14 | ||
| 689 | #define CS15_SW6 SW6_CS15 | ||
| 690 | #define CS16_SW6 SW6_CS16 | ||
| 691 | #define CS17_SW6 SW6_CS17 | ||
| 692 | #define CS18_SW6 SW6_CS18 | ||
| 693 | #define CS19_SW6 SW6_CS19 | ||
| 694 | #define CS20_SW6 SW6_CS20 | ||
| 695 | #define CS21_SW6 SW6_CS21 | ||
| 696 | #define CS22_SW6 SW6_CS22 | ||
| 697 | #define CS23_SW6 SW6_CS23 | ||
| 698 | #define CS24_SW6 SW6_CS24 | ||
| 699 | #define CS25_SW6 SW6_CS25 | ||
| 700 | #define CS26_SW6 SW6_CS26 | ||
| 701 | #define CS27_SW6 SW6_CS27 | ||
| 702 | #define CS28_SW6 SW6_CS28 | ||
| 703 | #define CS29_SW6 SW6_CS29 | ||
| 704 | #define CS30_SW6 SW6_CS30 | ||
| 705 | |||
| 706 | #define CS1_SW7 SW7_CS1 | ||
| 707 | #define CS2_SW7 SW7_CS2 | ||
| 708 | #define CS3_SW7 SW7_CS3 | ||
| 709 | #define CS4_SW7 SW7_CS4 | ||
| 710 | #define CS5_SW7 SW7_CS5 | ||
| 711 | #define CS6_SW7 SW7_CS6 | ||
| 712 | #define CS7_SW7 SW7_CS7 | ||
| 713 | #define CS8_SW7 SW7_CS8 | ||
| 714 | #define CS9_SW7 SW7_CS9 | ||
| 715 | #define CS10_SW7 SW7_CS10 | ||
| 716 | #define CS11_SW7 SW7_CS11 | ||
| 717 | #define CS12_SW7 SW7_CS12 | ||
| 718 | #define CS13_SW7 SW7_CS13 | ||
| 719 | #define CS14_SW7 SW7_CS14 | ||
| 720 | #define CS15_SW7 SW7_CS15 | ||
| 721 | #define CS16_SW7 SW7_CS16 | ||
| 722 | #define CS17_SW7 SW7_CS17 | ||
| 723 | #define CS18_SW7 SW7_CS18 | ||
| 724 | #define CS19_SW7 SW7_CS19 | ||
| 725 | #define CS20_SW7 SW7_CS20 | ||
| 726 | #define CS21_SW7 SW7_CS21 | ||
| 727 | #define CS22_SW7 SW7_CS22 | ||
| 728 | #define CS23_SW7 SW7_CS23 | ||
| 729 | #define CS24_SW7 SW7_CS24 | ||
| 730 | #define CS25_SW7 SW7_CS25 | ||
| 731 | #define CS26_SW7 SW7_CS26 | ||
| 732 | #define CS27_SW7 SW7_CS27 | ||
| 733 | #define CS28_SW7 SW7_CS28 | ||
| 734 | #define CS29_SW7 SW7_CS29 | ||
| 735 | #define CS30_SW7 SW7_CS30 | ||
| 736 | |||
| 737 | #define CS1_SW8 SW8_CS1 | ||
| 738 | #define CS2_SW8 SW8_CS2 | ||
| 739 | #define CS3_SW8 SW8_CS3 | ||
| 740 | #define CS4_SW8 SW8_CS4 | ||
| 741 | #define CS5_SW8 SW8_CS5 | ||
| 742 | #define CS6_SW8 SW8_CS6 | ||
| 743 | #define CS7_SW8 SW8_CS7 | ||
| 744 | #define CS8_SW8 SW8_CS8 | ||
| 745 | #define CS9_SW8 SW8_CS9 | ||
| 746 | #define CS10_SW8 SW8_CS10 | ||
| 747 | #define CS11_SW8 SW8_CS11 | ||
| 748 | #define CS12_SW8 SW8_CS12 | ||
| 749 | #define CS13_SW8 SW8_CS13 | ||
| 750 | #define CS14_SW8 SW8_CS14 | ||
| 751 | #define CS15_SW8 SW8_CS15 | ||
| 752 | #define CS16_SW8 SW8_CS16 | ||
| 753 | #define CS17_SW8 SW8_CS17 | ||
| 754 | #define CS18_SW8 SW8_CS18 | ||
| 755 | #define CS19_SW8 SW8_CS19 | ||
| 756 | #define CS20_SW8 SW8_CS20 | ||
| 757 | #define CS21_SW8 SW8_CS21 | ||
| 758 | #define CS22_SW8 SW8_CS22 | ||
| 759 | #define CS23_SW8 SW8_CS23 | ||
| 760 | #define CS24_SW8 SW8_CS24 | ||
| 761 | #define CS25_SW8 SW8_CS25 | ||
| 762 | #define CS26_SW8 SW8_CS26 | ||
| 763 | #define CS27_SW8 SW8_CS27 | ||
| 764 | #define CS28_SW8 SW8_CS28 | ||
| 765 | #define CS29_SW8 SW8_CS29 | ||
| 766 | #define CS30_SW8 SW8_CS30 | ||
| 767 | |||
| 768 | #define CS1_SW9 SW9_CS1 | ||
| 769 | #define CS2_SW9 SW9_CS2 | ||
| 770 | #define CS3_SW9 SW9_CS3 | ||
| 771 | #define CS4_SW9 SW9_CS4 | ||
| 772 | #define CS5_SW9 SW9_CS5 | ||
| 773 | #define CS6_SW9 SW9_CS6 | ||
| 774 | #define CS7_SW9 SW9_CS7 | ||
| 775 | #define CS8_SW9 SW9_CS8 | ||
| 776 | #define CS9_SW9 SW9_CS9 | ||
| 777 | #define CS10_SW9 SW9_CS10 | ||
| 778 | #define CS11_SW9 SW9_CS11 | ||
| 779 | #define CS12_SW9 SW9_CS12 | ||
| 780 | #define CS13_SW9 SW9_CS13 | ||
| 781 | #define CS14_SW9 SW9_CS14 | ||
| 782 | #define CS15_SW9 SW9_CS15 | ||
| 783 | #define CS16_SW9 SW9_CS16 | ||
| 784 | #define CS17_SW9 SW9_CS17 | ||
| 785 | #define CS18_SW9 SW9_CS18 | ||
| 786 | #define CS19_SW9 SW9_CS19 | ||
| 787 | #define CS20_SW9 SW9_CS20 | ||
| 788 | #define CS21_SW9 SW9_CS21 | ||
| 789 | #define CS22_SW9 SW9_CS22 | ||
| 790 | #define CS23_SW9 SW9_CS23 | ||
| 791 | #define CS24_SW9 SW9_CS24 | ||
| 792 | #define CS25_SW9 SW9_CS25 | ||
| 793 | #define CS26_SW9 SW9_CS26 | ||
| 794 | #define CS27_SW9 SW9_CS27 | ||
| 795 | #define CS28_SW9 SW9_CS28 | ||
| 796 | #define CS29_SW9 SW9_CS29 | ||
| 797 | #define CS30_SW9 SW9_CS30 | ||
| 798 | |||
| 799 | #define CS31_SW1 SW1_CS31 | ||
| 800 | #define CS32_SW1 SW1_CS32 | ||
| 801 | #define CS33_SW1 SW1_CS33 | ||
| 802 | #define CS34_SW1 SW1_CS34 | ||
| 803 | #define CS35_SW1 SW1_CS35 | ||
| 804 | #define CS36_SW1 SW1_CS36 | ||
| 805 | #define CS37_SW1 SW1_CS37 | ||
| 806 | #define CS38_SW1 SW1_CS38 | ||
| 807 | #define CS39_SW1 SW1_CS39 | ||
| 808 | |||
| 809 | #define CS31_SW2 SW2_CS31 | ||
| 810 | #define CS32_SW2 SW2_CS32 | ||
| 811 | #define CS33_SW2 SW2_CS33 | ||
| 812 | #define CS34_SW2 SW2_CS34 | ||
| 813 | #define CS35_SW2 SW2_CS35 | ||
| 814 | #define CS36_SW2 SW2_CS36 | ||
| 815 | #define CS37_SW2 SW2_CS37 | ||
| 816 | #define CS38_SW2 SW2_CS38 | ||
| 817 | #define CS39_SW2 SW2_CS39 | ||
| 818 | |||
| 819 | #define CS31_SW3 SW3_CS31 | ||
| 820 | #define CS32_SW3 SW3_CS32 | ||
| 821 | #define CS33_SW3 SW3_CS33 | ||
| 822 | #define CS34_SW3 SW3_CS34 | ||
| 823 | #define CS35_SW3 SW3_CS35 | ||
| 824 | #define CS36_SW3 SW3_CS36 | ||
| 825 | #define CS37_SW3 SW3_CS37 | ||
| 826 | #define CS38_SW3 SW3_CS38 | ||
| 827 | #define CS39_SW3 SW3_CS39 | ||
| 828 | |||
| 829 | #define CS31_SW4 SW4_CS31 | ||
| 830 | #define CS32_SW4 SW4_CS32 | ||
| 831 | #define CS33_SW4 SW4_CS33 | ||
| 832 | #define CS34_SW4 SW4_CS34 | ||
| 833 | #define CS35_SW4 SW4_CS35 | ||
| 834 | #define CS36_SW4 SW4_CS36 | ||
| 835 | #define CS37_SW4 SW4_CS37 | ||
| 836 | #define CS38_SW4 SW4_CS38 | ||
| 837 | #define CS39_SW4 SW4_CS39 | ||
| 838 | |||
| 839 | #define CS31_SW5 SW5_CS31 | ||
| 840 | #define CS32_SW5 SW5_CS32 | ||
| 841 | #define CS33_SW5 SW5_CS33 | ||
| 842 | #define CS34_SW5 SW5_CS34 | ||
| 843 | #define CS35_SW5 SW5_CS35 | ||
| 844 | #define CS36_SW5 SW5_CS36 | ||
| 845 | #define CS37_SW5 SW5_CS37 | ||
| 846 | #define CS38_SW5 SW5_CS38 | ||
| 847 | #define CS39_SW5 SW5_CS39 | ||
| 848 | |||
| 849 | #define CS31_SW6 SW6_CS31 | ||
| 850 | #define CS32_SW6 SW6_CS32 | ||
| 851 | #define CS33_SW6 SW6_CS33 | ||
| 852 | #define CS34_SW6 SW6_CS34 | ||
| 853 | #define CS35_SW6 SW6_CS35 | ||
| 854 | #define CS36_SW6 SW6_CS36 | ||
| 855 | #define CS37_SW6 SW6_CS37 | ||
| 856 | #define CS38_SW6 SW6_CS38 | ||
| 857 | #define CS39_SW6 SW6_CS39 | ||
| 858 | |||
| 859 | #define CS31_SW7 SW7_CS31 | ||
| 860 | #define CS32_SW7 SW7_CS32 | ||
| 861 | #define CS33_SW7 SW7_CS33 | ||
| 862 | #define CS34_SW7 SW7_CS34 | ||
| 863 | #define CS35_SW7 SW7_CS35 | ||
| 864 | #define CS36_SW7 SW7_CS36 | ||
| 865 | #define CS37_SW7 SW7_CS37 | ||
| 866 | #define CS38_SW7 SW7_CS38 | ||
| 867 | #define CS39_SW7 SW7_CS39 | ||
| 868 | |||
| 869 | #define CS31_SW8 SW8_CS31 | ||
| 870 | #define CS32_SW8 SW8_CS32 | ||
| 871 | #define CS33_SW8 SW8_CS33 | ||
| 872 | #define CS34_SW8 SW8_CS34 | ||
| 873 | #define CS35_SW8 SW8_CS35 | ||
| 874 | #define CS36_SW8 SW8_CS36 | ||
| 875 | #define CS37_SW8 SW8_CS37 | ||
| 876 | #define CS38_SW8 SW8_CS38 | ||
| 877 | #define CS39_SW8 SW8_CS39 | ||
| 878 | |||
| 879 | #define CS31_SW9 SW9_CS31 | ||
| 880 | #define CS32_SW9 SW9_CS32 | ||
| 881 | #define CS33_SW9 SW9_CS33 | ||
| 882 | #define CS34_SW9 SW9_CS34 | ||
| 883 | #define CS35_SW9 SW9_CS35 | ||
| 884 | #define CS36_SW9 SW9_CS36 | ||
| 885 | #define CS37_SW9 SW9_CS37 | ||
| 886 | #define CS38_SW9 SW9_CS38 | ||
| 887 | #define CS39_SW9 SW9_CS39 | ||
diff --git a/drivers/led/issi/is31fl3741.h b/drivers/led/issi/is31fl3741.h index cc9637a4e8..343dffe068 100644 --- a/drivers/led/issi/is31fl3741.h +++ b/drivers/led/issi/is31fl3741.h | |||
| @@ -24,51 +24,6 @@ | |||
| 24 | #include "progmem.h" | 24 | #include "progmem.h" |
| 25 | #include "util.h" | 25 | #include "util.h" |
| 26 | 26 | ||
| 27 | // ======== DEPRECATED DEFINES - DO NOT USE ======== | ||
| 28 | #ifdef DRIVER_ADDR_1 | ||
| 29 | # define IS31FL3741_I2C_ADDRESS_1 DRIVER_ADDR_1 | ||
| 30 | #endif | ||
| 31 | #ifdef DRIVER_ADDR_2 | ||
| 32 | # define IS31FL3741_I2C_ADDRESS_2 DRIVER_ADDR_2 | ||
| 33 | #endif | ||
| 34 | #ifdef DRIVER_ADDR_3 | ||
| 35 | # define IS31FL3741_I2C_ADDRESS_3 DRIVER_ADDR_3 | ||
| 36 | #endif | ||
| 37 | #ifdef DRIVER_ADDR_4 | ||
| 38 | # define IS31FL3741_I2C_ADDRESS_4 DRIVER_ADDR_4 | ||
| 39 | #endif | ||
| 40 | #ifdef ISSI_TIMEOUT | ||
| 41 | # define IS31FL3741_I2C_TIMEOUT ISSI_TIMEOUT | ||
| 42 | #endif | ||
| 43 | #ifdef ISSI_PERSISTENCE | ||
| 44 | # define IS31FL3741_I2C_PERSISTENCE ISSI_PERSISTENCE | ||
| 45 | #endif | ||
| 46 | #ifdef ISSI_CONFIGURATION | ||
| 47 | # define IS31FL3741_CONFIGURATION ISSI_CONFIGURATION | ||
| 48 | #endif | ||
| 49 | #ifdef ISSI_SWPULLUP | ||
| 50 | # define IS31FL3741_SW_PULLUP ISSI_SWPULLUP | ||
| 51 | #endif | ||
| 52 | #ifdef ISSI_CSPULLUP | ||
| 53 | # define IS31FL3741_CS_PULLDOWN ISSI_CSPULLUP | ||
| 54 | #endif | ||
| 55 | #ifdef ISSI_GLOBALCURRENT | ||
| 56 | # define IS31FL3741_GLOBAL_CURRENT ISSI_GLOBALCURRENT | ||
| 57 | #endif | ||
| 58 | |||
| 59 | #define is31_led is31fl3741_led_t | ||
| 60 | #define g_is31_leds g_is31fl3741_leds | ||
| 61 | |||
| 62 | #define PUR_0R IS31FL3741_PUR_0_OHM | ||
| 63 | #define PUR_05KR IS31FL3741_PUR_0K5_OHM | ||
| 64 | #define PUR_1KR IS31FL3741_PUR_1K_OHM | ||
| 65 | #define PUR_2KR IS31FL3741_PUR_2K_OHM | ||
| 66 | #define PUR_4KR IS31FL3741_PUR_4K_OHM | ||
| 67 | #define PUR_8KR IS31FL3741_PUR_8K_OHM | ||
| 68 | #define PUR_16KR IS31FL3741_PUR_16K_OHM | ||
| 69 | #define PUR_32KR IS31FL3741_PUR_32K_OHM | ||
| 70 | // ======== | ||
| 71 | |||
| 72 | #define IS31FL3741_REG_INTERRUPT_MASK 0xF0 | 27 | #define IS31FL3741_REG_INTERRUPT_MASK 0xF0 |
| 73 | #define IS31FL3741_REG_INTERRUPT_STATUS 0xF1 | 28 | #define IS31FL3741_REG_INTERRUPT_STATUS 0xF1 |
| 74 | #define IS31FL3741_REG_ID 0xFC | 29 | #define IS31FL3741_REG_ID 0xFC |
| @@ -531,374 +486,3 @@ void is31fl3741_flush(void); | |||
| 531 | #define SW9_CS37 0x1A8 | 486 | #define SW9_CS37 0x1A8 |
| 532 | #define SW9_CS38 0x1A9 | 487 | #define SW9_CS38 0x1A9 |
| 533 | #define SW9_CS39 0x1AA | 488 | #define SW9_CS39 0x1AA |
| 534 | |||
| 535 | // DEPRECATED - DO NOT USE | ||
| 536 | |||
| 537 | #define CS1_SW1 SW1_CS1 | ||
| 538 | #define CS2_SW1 SW1_CS2 | ||
| 539 | #define CS3_SW1 SW1_CS3 | ||
| 540 | #define CS4_SW1 SW1_CS4 | ||
| 541 | #define CS5_SW1 SW1_CS5 | ||
| 542 | #define CS6_SW1 SW1_CS6 | ||
| 543 | #define CS7_SW1 SW1_CS7 | ||
| 544 | #define CS8_SW1 SW1_CS8 | ||
| 545 | #define CS9_SW1 SW1_CS9 | ||
| 546 | #define CS10_SW1 SW1_CS10 | ||
| 547 | #define CS11_SW1 SW1_CS11 | ||
| 548 | #define CS12_SW1 SW1_CS12 | ||
| 549 | #define CS13_SW1 SW1_CS13 | ||
| 550 | #define CS14_SW1 SW1_CS14 | ||
| 551 | #define CS15_SW1 SW1_CS15 | ||
| 552 | #define CS16_SW1 SW1_CS16 | ||
| 553 | #define CS17_SW1 SW1_CS17 | ||
| 554 | #define CS18_SW1 SW1_CS18 | ||
| 555 | #define CS19_SW1 SW1_CS19 | ||
| 556 | #define CS20_SW1 SW1_CS20 | ||
| 557 | #define CS21_SW1 SW1_CS21 | ||
| 558 | #define CS22_SW1 SW1_CS22 | ||
| 559 | #define CS23_SW1 SW1_CS23 | ||
| 560 | #define CS24_SW1 SW1_CS24 | ||
| 561 | #define CS25_SW1 SW1_CS25 | ||
| 562 | #define CS26_SW1 SW1_CS26 | ||
| 563 | #define CS27_SW1 SW1_CS27 | ||
| 564 | #define CS28_SW1 SW1_CS28 | ||
| 565 | #define CS29_SW1 SW1_CS29 | ||
| 566 | #define CS30_SW1 SW1_CS30 | ||
| 567 | |||
| 568 | #define CS1_SW2 SW2_CS1 | ||
| 569 | #define CS2_SW2 SW2_CS2 | ||
| 570 | #define CS3_SW2 SW2_CS3 | ||
| 571 | #define CS4_SW2 SW2_CS4 | ||
| 572 | #define CS5_SW2 SW2_CS5 | ||
| 573 | #define CS6_SW2 SW2_CS6 | ||
| 574 | #define CS7_SW2 SW2_CS7 | ||
| 575 | #define CS8_SW2 SW2_CS8 | ||
| 576 | #define CS9_SW2 SW2_CS9 | ||
| 577 | #define CS10_SW2 SW2_CS10 | ||
| 578 | #define CS11_SW2 SW2_CS11 | ||
| 579 | #define CS12_SW2 SW2_CS12 | ||
| 580 | #define CS13_SW2 SW2_CS13 | ||
| 581 | #define CS14_SW2 SW2_CS14 | ||
| 582 | #define CS15_SW2 SW2_CS15 | ||
| 583 | #define CS16_SW2 SW2_CS16 | ||
| 584 | #define CS17_SW2 SW2_CS17 | ||
| 585 | #define CS18_SW2 SW2_CS18 | ||
| 586 | #define CS19_SW2 SW2_CS19 | ||
| 587 | #define CS20_SW2 SW2_CS20 | ||
| 588 | #define CS21_SW2 SW2_CS21 | ||
| 589 | #define CS22_SW2 SW2_CS22 | ||
| 590 | #define CS23_SW2 SW2_CS23 | ||
| 591 | #define CS24_SW2 SW2_CS24 | ||
| 592 | #define CS25_SW2 SW2_CS25 | ||
| 593 | #define CS26_SW2 SW2_CS26 | ||
| 594 | #define CS27_SW2 SW2_CS27 | ||
| 595 | #define CS28_SW2 SW2_CS28 | ||
| 596 | #define CS29_SW2 SW2_CS29 | ||
| 597 | #define CS30_SW2 SW2_CS30 | ||
| 598 | |||
| 599 | #define CS1_SW3 SW3_CS1 | ||
| 600 | #define CS2_SW3 SW3_CS2 | ||
| 601 | #define CS3_SW3 SW3_CS3 | ||
| 602 | #define CS4_SW3 SW3_CS4 | ||
| 603 | #define CS5_SW3 SW3_CS5 | ||
| 604 | #define CS6_SW3 SW3_CS6 | ||
| 605 | #define CS7_SW3 SW3_CS7 | ||
| 606 | #define CS8_SW3 SW3_CS8 | ||
| 607 | #define CS9_SW3 SW3_CS9 | ||
| 608 | #define CS10_SW3 SW3_CS10 | ||
| 609 | #define CS11_SW3 SW3_CS11 | ||
| 610 | #define CS12_SW3 SW3_CS12 | ||
| 611 | #define CS13_SW3 SW3_CS13 | ||
| 612 | #define CS14_SW3 SW3_CS14 | ||
| 613 | #define CS15_SW3 SW3_CS15 | ||
| 614 | #define CS16_SW3 SW3_CS16 | ||
| 615 | #define CS17_SW3 SW3_CS17 | ||
| 616 | #define CS18_SW3 SW3_CS18 | ||
| 617 | #define CS19_SW3 SW3_CS19 | ||
| 618 | #define CS20_SW3 SW3_CS20 | ||
| 619 | #define CS21_SW3 SW3_CS21 | ||
| 620 | #define CS22_SW3 SW3_CS22 | ||
| 621 | #define CS23_SW3 SW3_CS23 | ||
| 622 | #define CS24_SW3 SW3_CS24 | ||
| 623 | #define CS25_SW3 SW3_CS25 | ||
| 624 | #define CS26_SW3 SW3_CS26 | ||
| 625 | #define CS27_SW3 SW3_CS27 | ||
| 626 | #define CS28_SW3 SW3_CS28 | ||
| 627 | #define CS29_SW3 SW3_CS29 | ||
| 628 | #define CS30_SW3 SW3_CS30 | ||
| 629 | |||
| 630 | #define CS1_SW4 SW4_CS1 | ||
| 631 | #define CS2_SW4 SW4_CS2 | ||
| 632 | #define CS3_SW4 SW4_CS3 | ||
| 633 | #define CS4_SW4 SW4_CS4 | ||
| 634 | #define CS5_SW4 SW4_CS5 | ||
| 635 | #define CS6_SW4 SW4_CS6 | ||
| 636 | #define CS7_SW4 SW4_CS7 | ||
| 637 | #define CS8_SW4 SW4_CS8 | ||
| 638 | #define CS9_SW4 SW4_CS9 | ||
| 639 | #define CS10_SW4 SW4_CS10 | ||
| 640 | #define CS11_SW4 SW4_CS11 | ||
| 641 | #define CS12_SW4 SW4_CS12 | ||
| 642 | #define CS13_SW4 SW4_CS13 | ||
| 643 | #define CS14_SW4 SW4_CS14 | ||
| 644 | #define CS15_SW4 SW4_CS15 | ||
| 645 | #define CS16_SW4 SW4_CS16 | ||
| 646 | #define CS17_SW4 SW4_CS17 | ||
| 647 | #define CS18_SW4 SW4_CS18 | ||
| 648 | #define CS19_SW4 SW4_CS19 | ||
| 649 | #define CS20_SW4 SW4_CS20 | ||
| 650 | #define CS21_SW4 SW4_CS21 | ||
| 651 | #define CS22_SW4 SW4_CS22 | ||
| 652 | #define CS23_SW4 SW4_CS23 | ||
| 653 | #define CS24_SW4 SW4_CS24 | ||
| 654 | #define CS25_SW4 SW4_CS25 | ||
| 655 | #define CS26_SW4 SW4_CS26 | ||
| 656 | #define CS27_SW4 SW4_CS27 | ||
| 657 | #define CS28_SW4 SW4_CS28 | ||
| 658 | #define CS29_SW4 SW4_CS29 | ||
| 659 | #define CS30_SW4 SW4_CS30 | ||
| 660 | |||
| 661 | #define CS1_SW5 SW5_CS1 | ||
| 662 | #define CS2_SW5 SW5_CS2 | ||
| 663 | #define CS3_SW5 SW5_CS3 | ||
| 664 | #define CS4_SW5 SW5_CS4 | ||
| 665 | #define CS5_SW5 SW5_CS5 | ||
| 666 | #define CS6_SW5 SW5_CS6 | ||
| 667 | #define CS7_SW5 SW5_CS7 | ||
| 668 | #define CS8_SW5 SW5_CS8 | ||
| 669 | #define CS9_SW5 SW5_CS9 | ||
| 670 | #define CS10_SW5 SW5_CS10 | ||
| 671 | #define CS11_SW5 SW5_CS11 | ||
| 672 | #define CS12_SW5 SW5_CS12 | ||
| 673 | #define CS13_SW5 SW5_CS13 | ||
| 674 | #define CS14_SW5 SW5_CS14 | ||
| 675 | #define CS15_SW5 SW5_CS15 | ||
| 676 | #define CS16_SW5 SW5_CS16 | ||
| 677 | #define CS17_SW5 SW5_CS17 | ||
| 678 | #define CS18_SW5 SW5_CS18 | ||
| 679 | #define CS19_SW5 SW5_CS19 | ||
| 680 | #define CS20_SW5 SW5_CS20 | ||
| 681 | #define CS21_SW5 SW5_CS21 | ||
| 682 | #define CS22_SW5 SW5_CS22 | ||
| 683 | #define CS23_SW5 SW5_CS23 | ||
| 684 | #define CS24_SW5 SW5_CS24 | ||
| 685 | #define CS25_SW5 SW5_CS25 | ||
| 686 | #define CS26_SW5 SW5_CS26 | ||
| 687 | #define CS27_SW5 SW5_CS27 | ||
| 688 | #define CS28_SW5 SW5_CS28 | ||
| 689 | #define CS29_SW5 SW5_CS29 | ||
| 690 | #define CS30_SW5 SW5_CS30 | ||
| 691 | |||
| 692 | #define CS1_SW6 SW6_CS1 | ||
| 693 | #define CS2_SW6 SW6_CS2 | ||
| 694 | #define CS3_SW6 SW6_CS3 | ||
| 695 | #define CS4_SW6 SW6_CS4 | ||
| 696 | #define CS5_SW6 SW6_CS5 | ||
| 697 | #define CS6_SW6 SW6_CS6 | ||
| 698 | #define CS7_SW6 SW6_CS7 | ||
| 699 | #define CS8_SW6 SW6_CS8 | ||
| 700 | #define CS9_SW6 SW6_CS9 | ||
| 701 | #define CS10_SW6 SW6_CS10 | ||
| 702 | #define CS11_SW6 SW6_CS11 | ||
| 703 | #define CS12_SW6 SW6_CS12 | ||
| 704 | #define CS13_SW6 SW6_CS13 | ||
| 705 | #define CS14_SW6 SW6_CS14 | ||
| 706 | #define CS15_SW6 SW6_CS15 | ||
| 707 | #define CS16_SW6 SW6_CS16 | ||
| 708 | #define CS17_SW6 SW6_CS17 | ||
| 709 | #define CS18_SW6 SW6_CS18 | ||
| 710 | #define CS19_SW6 SW6_CS19 | ||
| 711 | #define CS20_SW6 SW6_CS20 | ||
| 712 | #define CS21_SW6 SW6_CS21 | ||
| 713 | #define CS22_SW6 SW6_CS22 | ||
| 714 | #define CS23_SW6 SW6_CS23 | ||
| 715 | #define CS24_SW6 SW6_CS24 | ||
| 716 | #define CS25_SW6 SW6_CS25 | ||
| 717 | #define CS26_SW6 SW6_CS26 | ||
| 718 | #define CS27_SW6 SW6_CS27 | ||
| 719 | #define CS28_SW6 SW6_CS28 | ||
| 720 | #define CS29_SW6 SW6_CS29 | ||
| 721 | #define CS30_SW6 SW6_CS30 | ||
| 722 | |||
| 723 | #define CS1_SW7 SW7_CS1 | ||
| 724 | #define CS2_SW7 SW7_CS2 | ||
| 725 | #define CS3_SW7 SW7_CS3 | ||
| 726 | #define CS4_SW7 SW7_CS4 | ||
| 727 | #define CS5_SW7 SW7_CS5 | ||
| 728 | #define CS6_SW7 SW7_CS6 | ||
| 729 | #define CS7_SW7 SW7_CS7 | ||
| 730 | #define CS8_SW7 SW7_CS8 | ||
| 731 | #define CS9_SW7 SW7_CS9 | ||
| 732 | #define CS10_SW7 SW7_CS10 | ||
| 733 | #define CS11_SW7 SW7_CS11 | ||
| 734 | #define CS12_SW7 SW7_CS12 | ||
| 735 | #define CS13_SW7 SW7_CS13 | ||
| 736 | #define CS14_SW7 SW7_CS14 | ||
| 737 | #define CS15_SW7 SW7_CS15 | ||
| 738 | #define CS16_SW7 SW7_CS16 | ||
| 739 | #define CS17_SW7 SW7_CS17 | ||
| 740 | #define CS18_SW7 SW7_CS18 | ||
| 741 | #define CS19_SW7 SW7_CS19 | ||
| 742 | #define CS20_SW7 SW7_CS20 | ||
| 743 | #define CS21_SW7 SW7_CS21 | ||
| 744 | #define CS22_SW7 SW7_CS22 | ||
| 745 | #define CS23_SW7 SW7_CS23 | ||
| 746 | #define CS24_SW7 SW7_CS24 | ||
| 747 | #define CS25_SW7 SW7_CS25 | ||
| 748 | #define CS26_SW7 SW7_CS26 | ||
| 749 | #define CS27_SW7 SW7_CS27 | ||
| 750 | #define CS28_SW7 SW7_CS28 | ||
| 751 | #define CS29_SW7 SW7_CS29 | ||
| 752 | #define CS30_SW7 SW7_CS30 | ||
| 753 | |||
| 754 | #define CS1_SW8 SW8_CS1 | ||
| 755 | #define CS2_SW8 SW8_CS2 | ||
| 756 | #define CS3_SW8 SW8_CS3 | ||
| 757 | #define CS4_SW8 SW8_CS4 | ||
| 758 | #define CS5_SW8 SW8_CS5 | ||
| 759 | #define CS6_SW8 SW8_CS6 | ||
| 760 | #define CS7_SW8 SW8_CS7 | ||
| 761 | #define CS8_SW8 SW8_CS8 | ||
| 762 | #define CS9_SW8 SW8_CS9 | ||
| 763 | #define CS10_SW8 SW8_CS10 | ||
| 764 | #define CS11_SW8 SW8_CS11 | ||
| 765 | #define CS12_SW8 SW8_CS12 | ||
| 766 | #define CS13_SW8 SW8_CS13 | ||
| 767 | #define CS14_SW8 SW8_CS14 | ||
| 768 | #define CS15_SW8 SW8_CS15 | ||
| 769 | #define CS16_SW8 SW8_CS16 | ||
| 770 | #define CS17_SW8 SW8_CS17 | ||
| 771 | #define CS18_SW8 SW8_CS18 | ||
| 772 | #define CS19_SW8 SW8_CS19 | ||
| 773 | #define CS20_SW8 SW8_CS20 | ||
| 774 | #define CS21_SW8 SW8_CS21 | ||
| 775 | #define CS22_SW8 SW8_CS22 | ||
| 776 | #define CS23_SW8 SW8_CS23 | ||
| 777 | #define CS24_SW8 SW8_CS24 | ||
| 778 | #define CS25_SW8 SW8_CS25 | ||
| 779 | #define CS26_SW8 SW8_CS26 | ||
| 780 | #define CS27_SW8 SW8_CS27 | ||
| 781 | #define CS28_SW8 SW8_CS28 | ||
| 782 | #define CS29_SW8 SW8_CS29 | ||
| 783 | #define CS30_SW8 SW8_CS30 | ||
| 784 | |||
| 785 | #define CS1_SW9 SW9_CS1 | ||
| 786 | #define CS2_SW9 SW9_CS2 | ||
| 787 | #define CS3_SW9 SW9_CS3 | ||
| 788 | #define CS4_SW9 SW9_CS4 | ||
| 789 | #define CS5_SW9 SW9_CS5 | ||
| 790 | #define CS6_SW9 SW9_CS6 | ||
| 791 | #define CS7_SW9 SW9_CS7 | ||
| 792 | #define CS8_SW9 SW9_CS8 | ||
| 793 | #define CS9_SW9 SW9_CS9 | ||
| 794 | #define CS10_SW9 SW9_CS10 | ||
| 795 | #define CS11_SW9 SW9_CS11 | ||
| 796 | #define CS12_SW9 SW9_CS12 | ||
| 797 | #define CS13_SW9 SW9_CS13 | ||
| 798 | #define CS14_SW9 SW9_CS14 | ||
| 799 | #define CS15_SW9 SW9_CS15 | ||
| 800 | #define CS16_SW9 SW9_CS16 | ||
| 801 | #define CS17_SW9 SW9_CS17 | ||
| 802 | #define CS18_SW9 SW9_CS18 | ||
| 803 | #define CS19_SW9 SW9_CS19 | ||
| 804 | #define CS20_SW9 SW9_CS20 | ||
| 805 | #define CS21_SW9 SW9_CS21 | ||
| 806 | #define CS22_SW9 SW9_CS22 | ||
| 807 | #define CS23_SW9 SW9_CS23 | ||
| 808 | #define CS24_SW9 SW9_CS24 | ||
| 809 | #define CS25_SW9 SW9_CS25 | ||
| 810 | #define CS26_SW9 SW9_CS26 | ||
| 811 | #define CS27_SW9 SW9_CS27 | ||
| 812 | #define CS28_SW9 SW9_CS28 | ||
| 813 | #define CS29_SW9 SW9_CS29 | ||
| 814 | #define CS30_SW9 SW9_CS30 | ||
| 815 | |||
| 816 | #define CS31_SW1 SW1_CS31 | ||
| 817 | #define CS32_SW1 SW1_CS32 | ||
| 818 | #define CS33_SW1 SW1_CS33 | ||
| 819 | #define CS34_SW1 SW1_CS34 | ||
| 820 | #define CS35_SW1 SW1_CS35 | ||
| 821 | #define CS36_SW1 SW1_CS36 | ||
| 822 | #define CS37_SW1 SW1_CS37 | ||
| 823 | #define CS38_SW1 SW1_CS38 | ||
| 824 | #define CS39_SW1 SW1_CS39 | ||
| 825 | |||
| 826 | #define CS31_SW2 SW2_CS31 | ||
| 827 | #define CS32_SW2 SW2_CS32 | ||
| 828 | #define CS33_SW2 SW2_CS33 | ||
| 829 | #define CS34_SW2 SW2_CS34 | ||
| 830 | #define CS35_SW2 SW2_CS35 | ||
| 831 | #define CS36_SW2 SW2_CS36 | ||
| 832 | #define CS37_SW2 SW2_CS37 | ||
| 833 | #define CS38_SW2 SW2_CS38 | ||
| 834 | #define CS39_SW2 SW2_CS39 | ||
| 835 | |||
| 836 | #define CS31_SW3 SW3_CS31 | ||
| 837 | #define CS32_SW3 SW3_CS32 | ||
| 838 | #define CS33_SW3 SW3_CS33 | ||
| 839 | #define CS34_SW3 SW3_CS34 | ||
| 840 | #define CS35_SW3 SW3_CS35 | ||
| 841 | #define CS36_SW3 SW3_CS36 | ||
| 842 | #define CS37_SW3 SW3_CS37 | ||
| 843 | #define CS38_SW3 SW3_CS38 | ||
| 844 | #define CS39_SW3 SW3_CS39 | ||
| 845 | |||
| 846 | #define CS31_SW4 SW4_CS31 | ||
| 847 | #define CS32_SW4 SW4_CS32 | ||
| 848 | #define CS33_SW4 SW4_CS33 | ||
| 849 | #define CS34_SW4 SW4_CS34 | ||
| 850 | #define CS35_SW4 SW4_CS35 | ||
| 851 | #define CS36_SW4 SW4_CS36 | ||
| 852 | #define CS37_SW4 SW4_CS37 | ||
| 853 | #define CS38_SW4 SW4_CS38 | ||
| 854 | #define CS39_SW4 SW4_CS39 | ||
| 855 | |||
| 856 | #define CS31_SW5 SW5_CS31 | ||
| 857 | #define CS32_SW5 SW5_CS32 | ||
| 858 | #define CS33_SW5 SW5_CS33 | ||
| 859 | #define CS34_SW5 SW5_CS34 | ||
| 860 | #define CS35_SW5 SW5_CS35 | ||
| 861 | #define CS36_SW5 SW5_CS36 | ||
| 862 | #define CS37_SW5 SW5_CS37 | ||
| 863 | #define CS38_SW5 SW5_CS38 | ||
| 864 | #define CS39_SW5 SW5_CS39 | ||
| 865 | |||
| 866 | #define CS31_SW6 SW6_CS31 | ||
| 867 | #define CS32_SW6 SW6_CS32 | ||
| 868 | #define CS33_SW6 SW6_CS33 | ||
| 869 | #define CS34_SW6 SW6_CS34 | ||
| 870 | #define CS35_SW6 SW6_CS35 | ||
| 871 | #define CS36_SW6 SW6_CS36 | ||
| 872 | #define CS37_SW6 SW6_CS37 | ||
| 873 | #define CS38_SW6 SW6_CS38 | ||
| 874 | #define CS39_SW6 SW6_CS39 | ||
| 875 | |||
| 876 | #define CS31_SW7 SW7_CS31 | ||
| 877 | #define CS32_SW7 SW7_CS32 | ||
| 878 | #define CS33_SW7 SW7_CS33 | ||
| 879 | #define CS34_SW7 SW7_CS34 | ||
| 880 | #define CS35_SW7 SW7_CS35 | ||
| 881 | #define CS36_SW7 SW7_CS36 | ||
| 882 | #define CS37_SW7 SW7_CS37 | ||
| 883 | #define CS38_SW7 SW7_CS38 | ||
| 884 | #define CS39_SW7 SW7_CS39 | ||
| 885 | |||
| 886 | #define CS31_SW8 SW8_CS31 | ||
| 887 | #define CS32_SW8 SW8_CS32 | ||
| 888 | #define CS33_SW8 SW8_CS33 | ||
| 889 | #define CS34_SW8 SW8_CS34 | ||
| 890 | #define CS35_SW8 SW8_CS35 | ||
| 891 | #define CS36_SW8 SW8_CS36 | ||
| 892 | #define CS37_SW8 SW8_CS37 | ||
| 893 | #define CS38_SW8 SW8_CS38 | ||
| 894 | #define CS39_SW8 SW8_CS39 | ||
| 895 | |||
| 896 | #define CS31_SW9 SW9_CS31 | ||
| 897 | #define CS32_SW9 SW9_CS32 | ||
| 898 | #define CS33_SW9 SW9_CS33 | ||
| 899 | #define CS34_SW9 SW9_CS34 | ||
| 900 | #define CS35_SW9 SW9_CS35 | ||
| 901 | #define CS36_SW9 SW9_CS36 | ||
| 902 | #define CS37_SW9 SW9_CS37 | ||
| 903 | #define CS38_SW9 SW9_CS38 | ||
| 904 | #define CS39_SW9 SW9_CS39 | ||
diff --git a/drivers/led/issi/is31fl3743a.h b/drivers/led/issi/is31fl3743a.h index 48aeab46ab..bfff904047 100644 --- a/drivers/led/issi/is31fl3743a.h +++ b/drivers/led/issi/is31fl3743a.h | |||
| @@ -328,214 +328,3 @@ void is31fl3743a_flush(void); | |||
| 328 | #define SW11_CS16 0xC3 | 328 | #define SW11_CS16 0xC3 |
| 329 | #define SW11_CS17 0xC4 | 329 | #define SW11_CS17 0xC4 |
| 330 | #define SW11_CS18 0xC5 | 330 | #define SW11_CS18 0xC5 |
| 331 | |||
| 332 | // DEPRECATED - DO NOT USE | ||
| 333 | |||
| 334 | #define CS1_SW1 SW1_CS1 | ||
| 335 | #define CS2_SW1 SW1_CS2 | ||
| 336 | #define CS3_SW1 SW1_CS3 | ||
| 337 | #define CS4_SW1 SW1_CS4 | ||
| 338 | #define CS5_SW1 SW1_CS5 | ||
| 339 | #define CS6_SW1 SW1_CS6 | ||
| 340 | #define CS7_SW1 SW1_CS7 | ||
| 341 | #define CS8_SW1 SW1_CS8 | ||
| 342 | #define CS9_SW1 SW1_CS9 | ||
| 343 | #define CS10_SW1 SW1_CS10 | ||
| 344 | #define CS11_SW1 SW1_CS11 | ||
| 345 | #define CS12_SW1 SW1_CS12 | ||
| 346 | #define CS13_SW1 SW1_CS13 | ||
| 347 | #define CS14_SW1 SW1_CS14 | ||
| 348 | #define CS15_SW1 SW1_CS15 | ||
| 349 | #define CS16_SW1 SW1_CS16 | ||
| 350 | #define CS17_SW1 SW1_CS17 | ||
| 351 | #define CS18_SW1 SW1_CS18 | ||
| 352 | |||
| 353 | #define CS1_SW2 SW2_CS1 | ||
| 354 | #define CS2_SW2 SW2_CS2 | ||
| 355 | #define CS3_SW2 SW2_CS3 | ||
| 356 | #define CS4_SW2 SW2_CS4 | ||
| 357 | #define CS5_SW2 SW2_CS5 | ||
| 358 | #define CS6_SW2 SW2_CS6 | ||
| 359 | #define CS7_SW2 SW2_CS7 | ||
| 360 | #define CS8_SW2 SW2_CS8 | ||
| 361 | #define CS9_SW2 SW2_CS9 | ||
| 362 | #define CS10_SW2 SW2_CS10 | ||
| 363 | #define CS11_SW2 SW2_CS11 | ||
| 364 | #define CS12_SW2 SW2_CS12 | ||
| 365 | #define CS13_SW2 SW2_CS13 | ||
| 366 | #define CS14_SW2 SW2_CS14 | ||
| 367 | #define CS15_SW2 SW2_CS15 | ||
| 368 | #define CS16_SW2 SW2_CS16 | ||
| 369 | #define CS17_SW2 SW2_CS17 | ||
| 370 | #define CS18_SW2 SW2_CS18 | ||
| 371 | |||
| 372 | #define CS1_SW3 SW3_CS1 | ||
| 373 | #define CS2_SW3 SW3_CS2 | ||
| 374 | #define CS3_SW3 SW3_CS3 | ||
| 375 | #define CS4_SW3 SW3_CS4 | ||
| 376 | #define CS5_SW3 SW3_CS5 | ||
| 377 | #define CS6_SW3 SW3_CS6 | ||
| 378 | #define CS7_SW3 SW3_CS7 | ||
| 379 | #define CS8_SW3 SW3_CS8 | ||
| 380 | #define CS9_SW3 SW3_CS9 | ||
| 381 | #define CS10_SW3 SW3_CS10 | ||
| 382 | #define CS11_SW3 SW3_CS11 | ||
| 383 | #define CS12_SW3 SW3_CS12 | ||
| 384 | #define CS13_SW3 SW3_CS13 | ||
| 385 | #define CS14_SW3 SW3_CS14 | ||
| 386 | #define CS15_SW3 SW3_CS15 | ||
| 387 | #define CS16_SW3 SW3_CS16 | ||
| 388 | #define CS17_SW3 SW3_CS17 | ||
| 389 | #define CS18_SW3 SW3_CS18 | ||
| 390 | |||
| 391 | #define CS1_SW4 SW4_CS1 | ||
| 392 | #define CS2_SW4 SW4_CS2 | ||
| 393 | #define CS3_SW4 SW4_CS3 | ||
| 394 | #define CS4_SW4 SW4_CS4 | ||
| 395 | #define CS5_SW4 SW4_CS5 | ||
| 396 | #define CS6_SW4 SW4_CS6 | ||
| 397 | #define CS7_SW4 SW4_CS7 | ||
| 398 | #define CS8_SW4 SW4_CS8 | ||
| 399 | #define CS9_SW4 SW4_CS9 | ||
| 400 | #define CS10_SW4 SW4_CS10 | ||
| 401 | #define CS11_SW4 SW4_CS11 | ||
| 402 | #define CS12_SW4 SW4_CS12 | ||
| 403 | #define CS13_SW4 SW4_CS13 | ||
| 404 | #define CS14_SW4 SW4_CS14 | ||
| 405 | #define CS15_SW4 SW4_CS15 | ||
| 406 | #define CS16_SW4 SW4_CS16 | ||
| 407 | #define CS17_SW4 SW4_CS17 | ||
| 408 | #define CS18_SW4 SW4_CS18 | ||
| 409 | |||
| 410 | #define CS1_SW5 SW5_CS1 | ||
| 411 | #define CS2_SW5 SW5_CS2 | ||
| 412 | #define CS3_SW5 SW5_CS3 | ||
| 413 | #define CS4_SW5 SW5_CS4 | ||
| 414 | #define CS5_SW5 SW5_CS5 | ||
| 415 | #define CS6_SW5 SW5_CS6 | ||
| 416 | #define CS7_SW5 SW5_CS7 | ||
| 417 | #define CS8_SW5 SW5_CS8 | ||
| 418 | #define CS9_SW5 SW5_CS9 | ||
| 419 | #define CS10_SW5 SW5_CS10 | ||
| 420 | #define CS11_SW5 SW5_CS11 | ||
| 421 | #define CS12_SW5 SW5_CS12 | ||
| 422 | #define CS13_SW5 SW5_CS13 | ||
| 423 | #define CS14_SW5 SW5_CS14 | ||
| 424 | #define CS15_SW5 SW5_CS15 | ||
| 425 | #define CS16_SW5 SW5_CS16 | ||
| 426 | #define CS17_SW5 SW5_CS17 | ||
| 427 | #define CS18_SW5 SW5_CS18 | ||
| 428 | |||
| 429 | #define CS1_SW6 SW6_CS1 | ||
| 430 | #define CS2_SW6 SW6_CS2 | ||
| 431 | #define CS3_SW6 SW6_CS3 | ||
| 432 | #define CS4_SW6 SW6_CS4 | ||
| 433 | #define CS5_SW6 SW6_CS5 | ||
| 434 | #define CS6_SW6 SW6_CS6 | ||
| 435 | #define CS7_SW6 SW6_CS7 | ||
| 436 | #define CS8_SW6 SW6_CS8 | ||
| 437 | #define CS9_SW6 SW6_CS9 | ||
| 438 | #define CS10_SW6 SW6_CS10 | ||
| 439 | #define CS11_SW6 SW6_CS11 | ||
| 440 | #define CS12_SW6 SW6_CS12 | ||
| 441 | #define CS13_SW6 SW6_CS13 | ||
| 442 | #define CS14_SW6 SW6_CS14 | ||
| 443 | #define CS15_SW6 SW6_CS15 | ||
| 444 | #define CS16_SW6 SW6_CS16 | ||
| 445 | #define CS17_SW6 SW6_CS17 | ||
| 446 | #define CS18_SW6 SW6_CS18 | ||
| 447 | |||
| 448 | #define CS1_SW7 SW7_CS1 | ||
| 449 | #define CS2_SW7 SW7_CS2 | ||
| 450 | #define CS3_SW7 SW7_CS3 | ||
| 451 | #define CS4_SW7 SW7_CS4 | ||
| 452 | #define CS5_SW7 SW7_CS5 | ||
| 453 | #define CS6_SW7 SW7_CS6 | ||
| 454 | #define CS7_SW7 SW7_CS7 | ||
| 455 | #define CS8_SW7 SW7_CS8 | ||
| 456 | #define CS9_SW7 SW7_CS9 | ||
| 457 | #define CS10_SW7 SW7_CS10 | ||
| 458 | #define CS11_SW7 SW7_CS11 | ||
| 459 | #define CS12_SW7 SW7_CS12 | ||
| 460 | #define CS13_SW7 SW7_CS13 | ||
| 461 | #define CS14_SW7 SW7_CS14 | ||
| 462 | #define CS15_SW7 SW7_CS15 | ||
| 463 | #define CS16_SW7 SW7_CS16 | ||
| 464 | #define CS17_SW7 SW7_CS17 | ||
| 465 | #define CS18_SW7 SW7_CS18 | ||
| 466 | |||
| 467 | #define CS1_SW8 SW8_CS1 | ||
| 468 | #define CS2_SW8 SW8_CS2 | ||
| 469 | #define CS3_SW8 SW8_CS3 | ||
| 470 | #define CS4_SW8 SW8_CS4 | ||
| 471 | #define CS5_SW8 SW8_CS5 | ||
| 472 | #define CS6_SW8 SW8_CS6 | ||
| 473 | #define CS7_SW8 SW8_CS7 | ||
| 474 | #define CS8_SW8 SW8_CS8 | ||
| 475 | #define CS9_SW8 SW8_CS9 | ||
| 476 | #define CS10_SW8 SW8_CS10 | ||
| 477 | #define CS11_SW8 SW8_CS11 | ||
| 478 | #define CS12_SW8 SW8_CS12 | ||
| 479 | #define CS13_SW8 SW8_CS13 | ||
| 480 | #define CS14_SW8 SW8_CS14 | ||
| 481 | #define CS15_SW8 SW8_CS15 | ||
| 482 | #define CS16_SW8 SW8_CS16 | ||
| 483 | #define CS17_SW8 SW8_CS17 | ||
| 484 | #define CS18_SW8 SW8_CS18 | ||
| 485 | |||
| 486 | #define CS1_SW9 SW9_CS1 | ||
| 487 | #define CS2_SW9 SW9_CS2 | ||
| 488 | #define CS3_SW9 SW9_CS3 | ||
| 489 | #define CS4_SW9 SW9_CS4 | ||
| 490 | #define CS5_SW9 SW9_CS5 | ||
| 491 | #define CS6_SW9 SW9_CS6 | ||
| 492 | #define CS7_SW9 SW9_CS7 | ||
| 493 | #define CS8_SW9 SW9_CS8 | ||
| 494 | #define CS9_SW9 SW9_CS9 | ||
| 495 | #define CS10_SW9 SW9_CS10 | ||
| 496 | #define CS11_SW9 SW9_CS11 | ||
| 497 | #define CS12_SW9 SW9_CS12 | ||
| 498 | #define CS13_SW9 SW9_CS13 | ||
| 499 | #define CS14_SW9 SW9_CS14 | ||
| 500 | #define CS15_SW9 SW9_CS15 | ||
| 501 | #define CS16_SW9 SW9_CS16 | ||
| 502 | #define CS17_SW9 SW9_CS17 | ||
| 503 | #define CS18_SW9 SW9_CS18 | ||
| 504 | |||
| 505 | #define CS1_SW10 SW10_CS1 | ||
| 506 | #define CS2_SW10 SW10_CS2 | ||
| 507 | #define CS3_SW10 SW10_CS3 | ||
| 508 | #define CS4_SW10 SW10_CS4 | ||
| 509 | #define CS5_SW10 SW10_CS5 | ||
| 510 | #define CS6_SW10 SW10_CS6 | ||
| 511 | #define CS7_SW10 SW10_CS7 | ||
| 512 | #define CS8_SW10 SW10_CS8 | ||
| 513 | #define CS9_SW10 SW10_CS9 | ||
| 514 | #define CS10_SW10 SW10_CS10 | ||
| 515 | #define CS11_SW10 SW10_CS11 | ||
| 516 | #define CS12_SW10 SW10_CS12 | ||
| 517 | #define CS13_SW10 SW10_CS13 | ||
| 518 | #define CS14_SW10 SW10_CS14 | ||
| 519 | #define CS15_SW10 SW10_CS15 | ||
| 520 | #define CS16_SW10 SW10_CS16 | ||
| 521 | #define CS17_SW10 SW10_CS17 | ||
| 522 | #define CS18_SW10 SW10_CS18 | ||
| 523 | |||
| 524 | #define CS1_SW11 SW11_CS1 | ||
| 525 | #define CS2_SW11 SW11_CS2 | ||
| 526 | #define CS3_SW11 SW11_CS3 | ||
| 527 | #define CS4_SW11 SW11_CS4 | ||
| 528 | #define CS5_SW11 SW11_CS5 | ||
| 529 | #define CS6_SW11 SW11_CS6 | ||
| 530 | #define CS7_SW11 SW11_CS7 | ||
| 531 | #define CS8_SW11 SW11_CS8 | ||
| 532 | #define CS9_SW11 SW11_CS9 | ||
| 533 | #define CS10_SW11 SW11_CS10 | ||
| 534 | #define CS11_SW11 SW11_CS11 | ||
| 535 | #define CS12_SW11 SW11_CS12 | ||
| 536 | #define CS13_SW11 SW11_CS13 | ||
| 537 | #define CS14_SW11 SW11_CS14 | ||
| 538 | #define CS15_SW11 SW11_CS15 | ||
| 539 | #define CS16_SW11 SW11_CS16 | ||
| 540 | #define CS17_SW11 SW11_CS17 | ||
| 541 | #define CS18_SW11 SW11_CS18 | ||
diff --git a/drivers/led/snled27351-mono.h b/drivers/led/snled27351-mono.h index 43d39934cb..b88ef25f76 100644 --- a/drivers/led/snled27351-mono.h +++ b/drivers/led/snled27351-mono.h | |||
| @@ -21,37 +21,6 @@ | |||
| 21 | #include "progmem.h" | 21 | #include "progmem.h" |
| 22 | #include "util.h" | 22 | #include "util.h" |
| 23 | 23 | ||
| 24 | // ======== DEPRECATED DEFINES - DO NOT USE ======== | ||
| 25 | #ifdef CKLED2001_TIMEOUT | ||
| 26 | # define SNLED27351_I2C_TIMEOUT CKLED2001_TIMEOUT | ||
| 27 | #endif | ||
| 28 | #ifdef CKLED2001_PERSISTENCE | ||
| 29 | # define SNLED27351_I2C_PERSISTENCE CKLED2001_PERSISTENCE | ||
| 30 | #endif | ||
| 31 | #ifdef PHASE_CHANNEL | ||
| 32 | # define SNLED27351_PHASE_CHANNEL PHASE_CHANNEL | ||
| 33 | #endif | ||
| 34 | #ifdef CKLED2001_CURRENT_TUNE | ||
| 35 | # define SNLED27351_CURRENT_TUNE CKLED2001_CURRENT_TUNE | ||
| 36 | #endif | ||
| 37 | |||
| 38 | #define MSKPHASE_12CHANNEL SNLED27351_SCAN_PHASE_12_CHANNEL | ||
| 39 | #define MSKPHASE_11CHANNEL SNLED27351_SCAN_PHASE_11_CHANNEL | ||
| 40 | #define MSKPHASE_10CHANNEL SNLED27351_SCAN_PHASE_10_CHANNEL | ||
| 41 | #define MSKPHASE_9CHANNEL SNLED27351_SCAN_PHASE_9_CHANNEL | ||
| 42 | #define MSKPHASE_8CHANNEL SNLED27351_SCAN_PHASE_8_CHANNEL | ||
| 43 | #define MSKPHASE_7CHANNEL SNLED27351_SCAN_PHASE_7_CHANNEL | ||
| 44 | #define MSKPHASE_6CHANNEL SNLED27351_SCAN_PHASE_6_CHANNEL | ||
| 45 | #define MSKPHASE_5CHANNEL SNLED27351_SCAN_PHASE_5_CHANNEL | ||
| 46 | #define MSKPHASE_4CHANNEL SNLED27351_SCAN_PHASE_4_CHANNEL | ||
| 47 | #define MSKPHASE_3CHANNEL SNLED27351_SCAN_PHASE_3_CHANNEL | ||
| 48 | #define MSKPHASE_2CHANNEL SNLED27351_SCAN_PHASE_2_CHANNEL | ||
| 49 | #define MSKPHASE_1CHANNEL SNLED27351_SCAN_PHASE_1_CHANNEL | ||
| 50 | |||
| 51 | #define ckled2001_led snled27351_led_t | ||
| 52 | #define g_ckled2001_leds g_snled27351_leds | ||
| 53 | // ======== | ||
| 54 | |||
| 55 | #define SNLED27351_REG_COMMAND 0xFD | 24 | #define SNLED27351_REG_COMMAND 0xFD |
| 56 | #define SNLED27351_COMMAND_LED_CONTROL 0x00 | 25 | #define SNLED27351_COMMAND_LED_CONTROL 0x00 |
| 57 | #define SNLED27351_COMMAND_PWM 0x01 | 26 | #define SNLED27351_COMMAND_PWM 0x01 |
| @@ -378,209 +347,3 @@ void snled27351_sw_shutdown(uint8_t index); | |||
| 378 | #define CB12_CA14 0xBD | 347 | #define CB12_CA14 0xBD |
| 379 | #define CB12_CA15 0xBE | 348 | #define CB12_CA15 0xBE |
| 380 | #define CB12_CA16 0xBF | 349 | #define CB12_CA16 0xBF |
| 381 | |||
| 382 | // DEPRECATED - DO NOT USE | ||
| 383 | |||
| 384 | #define A_1 CB1_CA1 | ||
| 385 | #define A_2 CB1_CA2 | ||
| 386 | #define A_3 CB1_CA3 | ||
| 387 | #define A_4 CB1_CA4 | ||
| 388 | #define A_5 CB1_CA5 | ||
| 389 | #define A_6 CB1_CA6 | ||
| 390 | #define A_7 CB1_CA7 | ||
| 391 | #define A_8 CB1_CA8 | ||
| 392 | #define A_9 CB1_CA9 | ||
| 393 | #define A_10 CB1_CA10 | ||
| 394 | #define A_11 CB1_CA11 | ||
| 395 | #define A_12 CB1_CA12 | ||
| 396 | #define A_13 CB1_CA13 | ||
| 397 | #define A_14 CB1_CA14 | ||
| 398 | #define A_15 CB1_CA15 | ||
| 399 | #define A_16 CB1_CA16 | ||
| 400 | |||
| 401 | #define B_1 CB2_CA1 | ||
| 402 | #define B_2 CB2_CA2 | ||
| 403 | #define B_3 CB2_CA3 | ||
| 404 | #define B_4 CB2_CA4 | ||
| 405 | #define B_5 CB2_CA5 | ||
| 406 | #define B_6 CB2_CA6 | ||
| 407 | #define B_7 CB2_CA7 | ||
| 408 | #define B_8 CB2_CA8 | ||
| 409 | #define B_9 CB2_CA9 | ||
| 410 | #define B_10 CB2_CA10 | ||
| 411 | #define B_11 CB2_CA11 | ||
| 412 | #define B_12 CB2_CA12 | ||
| 413 | #define B_13 CB2_CA13 | ||
| 414 | #define B_14 CB2_CA14 | ||
| 415 | #define B_15 CB2_CA15 | ||
| 416 | #define B_16 CB2_CA16 | ||
| 417 | |||
| 418 | #define C_1 CB3_CA1 | ||
| 419 | #define C_2 CB3_CA2 | ||
| 420 | #define C_3 CB3_CA3 | ||
| 421 | #define C_4 CB3_CA4 | ||
| 422 | #define C_5 CB3_CA5 | ||
| 423 | #define C_6 CB3_CA6 | ||
| 424 | #define C_7 CB3_CA7 | ||
| 425 | #define C_8 CB3_CA8 | ||
| 426 | #define C_9 CB3_CA9 | ||
| 427 | #define C_10 CB3_CA10 | ||
| 428 | #define C_11 CB3_CA11 | ||
| 429 | #define C_12 CB3_CA12 | ||
| 430 | #define C_13 CB3_CA13 | ||
| 431 | #define C_14 CB3_CA14 | ||
| 432 | #define C_15 CB3_CA15 | ||
| 433 | #define C_16 CB3_CA16 | ||
| 434 | |||
| 435 | #define D_1 CB4_CA1 | ||
| 436 | #define D_2 CB4_CA2 | ||
| 437 | #define D_3 CB4_CA3 | ||
| 438 | #define D_4 CB4_CA4 | ||
| 439 | #define D_5 CB4_CA5 | ||
| 440 | #define D_6 CB4_CA6 | ||
| 441 | #define D_7 CB4_CA7 | ||
| 442 | #define D_8 CB4_CA8 | ||
| 443 | #define D_9 CB4_CA9 | ||
| 444 | #define D_10 CB4_CA10 | ||
| 445 | #define D_11 CB4_CA11 | ||
| 446 | #define D_12 CB4_CA12 | ||
| 447 | #define D_13 CB4_CA13 | ||
| 448 | #define D_14 CB4_CA14 | ||
| 449 | #define D_15 CB4_CA15 | ||
| 450 | #define D_16 CB4_CA16 | ||
| 451 | |||
| 452 | #define E_1 CB5_CA1 | ||
| 453 | #define E_2 CB5_CA2 | ||
| 454 | #define E_3 CB5_CA3 | ||
| 455 | #define E_4 CB5_CA4 | ||
| 456 | #define E_5 CB5_CA5 | ||
| 457 | #define E_6 CB5_CA6 | ||
| 458 | #define E_7 CB5_CA7 | ||
| 459 | #define E_8 CB5_CA8 | ||
| 460 | #define E_9 CB5_CA9 | ||
| 461 | #define E_10 CB5_CA10 | ||
| 462 | #define E_11 CB5_CA11 | ||
| 463 | #define E_12 CB5_CA12 | ||
| 464 | #define E_13 CB5_CA13 | ||
| 465 | #define E_14 CB5_CA14 | ||
| 466 | #define E_15 CB5_CA15 | ||
| 467 | #define E_16 CB5_CA16 | ||
| 468 | |||
| 469 | #define F_1 CB6_CA1 | ||
| 470 | #define F_2 CB6_CA2 | ||
| 471 | #define F_3 CB6_CA3 | ||
| 472 | #define F_4 CB6_CA4 | ||
| 473 | #define F_5 CB6_CA5 | ||
| 474 | #define F_6 CB6_CA6 | ||
| 475 | #define F_7 CB6_CA7 | ||
| 476 | #define F_8 CB6_CA8 | ||
| 477 | #define F_9 CB6_CA9 | ||
| 478 | #define F_10 CB6_CA10 | ||
| 479 | #define F_11 CB6_CA11 | ||
| 480 | #define F_12 CB6_CA12 | ||
| 481 | #define F_13 CB6_CA13 | ||
| 482 | #define F_14 CB6_CA14 | ||
| 483 | #define F_15 CB6_CA15 | ||
| 484 | #define F_16 CB6_CA16 | ||
| 485 | |||
| 486 | #define G_1 CB7_CA1 | ||
| 487 | #define G_2 CB7_CA2 | ||
| 488 | #define G_3 CB7_CA3 | ||
| 489 | #define G_4 CB7_CA4 | ||
| 490 | #define G_5 CB7_CA5 | ||
| 491 | #define G_6 CB7_CA6 | ||
| 492 | #define G_7 CB7_CA7 | ||
| 493 | #define G_8 CB7_CA8 | ||
| 494 | #define G_9 CB7_CA9 | ||
| 495 | #define G_10 CB7_CA10 | ||
| 496 | #define G_11 CB7_CA11 | ||
| 497 | #define G_12 CB7_CA12 | ||
| 498 | #define G_13 CB7_CA13 | ||
| 499 | #define G_14 CB7_CA14 | ||
| 500 | #define G_15 CB7_CA15 | ||
| 501 | #define G_16 CB7_CA16 | ||
| 502 | |||
| 503 | #define H_1 CB8_CA1 | ||
| 504 | #define H_2 CB8_CA2 | ||
| 505 | #define H_3 CB8_CA3 | ||
| 506 | #define H_4 CB8_CA4 | ||
| 507 | #define H_5 CB8_CA5 | ||
| 508 | #define H_6 CB8_CA6 | ||
| 509 | #define H_7 CB8_CA7 | ||
| 510 | #define H_8 CB8_CA8 | ||
| 511 | #define H_9 CB8_CA9 | ||
| 512 | #define H_10 CB8_CA10 | ||
| 513 | #define H_11 CB8_CA11 | ||
| 514 | #define H_12 CB8_CA12 | ||
| 515 | #define H_13 CB8_CA13 | ||
| 516 | #define H_14 CB8_CA14 | ||
| 517 | #define H_15 CB8_CA15 | ||
| 518 | #define H_16 CB8_CA16 | ||
| 519 | |||
| 520 | #define I_1 CB9_CA1 | ||
| 521 | #define I_2 CB9_CA2 | ||
| 522 | #define I_3 CB9_CA3 | ||
| 523 | #define I_4 CB9_CA4 | ||
| 524 | #define I_5 CB9_CA5 | ||
| 525 | #define I_6 CB9_CA6 | ||
| 526 | #define I_7 CB9_CA7 | ||
| 527 | #define I_8 CB9_CA8 | ||
| 528 | #define I_9 CB9_CA9 | ||
| 529 | #define I_10 CB9_CA10 | ||
| 530 | #define I_11 CB9_CA11 | ||
| 531 | #define I_12 CB9_CA12 | ||
| 532 | #define I_13 CB9_CA13 | ||
| 533 | #define I_14 CB9_CA14 | ||
| 534 | #define I_15 CB9_CA15 | ||
| 535 | #define I_16 CB9_CA16 | ||
| 536 | |||
| 537 | #define J_1 CB10_CA1 | ||
| 538 | #define J_2 CB10_CA2 | ||
| 539 | #define J_3 CB10_CA3 | ||
| 540 | #define J_4 CB10_CA4 | ||
| 541 | #define J_5 CB10_CA5 | ||
| 542 | #define J_6 CB10_CA6 | ||
| 543 | #define J_7 CB10_CA7 | ||
| 544 | #define J_8 CB10_CA8 | ||
| 545 | #define J_9 CB10_CA9 | ||
| 546 | #define J_10 CB10_CA10 | ||
| 547 | #define J_11 CB10_CA11 | ||
| 548 | #define J_12 CB10_CA12 | ||
| 549 | #define J_13 CB10_CA13 | ||
| 550 | #define J_14 CB10_CA14 | ||
| 551 | #define J_15 CB10_CA15 | ||
| 552 | #define J_16 CB10_CA16 | ||
| 553 | |||
| 554 | #define K_1 CB11_CA1 | ||
| 555 | #define K_2 CB11_CA2 | ||
| 556 | #define K_3 CB11_CA3 | ||
| 557 | #define K_4 CB11_CA4 | ||
| 558 | #define K_5 CB11_CA5 | ||
| 559 | #define K_6 CB11_CA6 | ||
| 560 | #define K_7 CB11_CA7 | ||
| 561 | #define K_8 CB11_CA8 | ||
| 562 | #define K_9 CB11_CA9 | ||
| 563 | #define K_10 CB11_CA10 | ||
| 564 | #define K_11 CB11_CA11 | ||
| 565 | #define K_12 CB11_CA12 | ||
| 566 | #define K_13 CB11_CA13 | ||
| 567 | #define K_14 CB11_CA14 | ||
| 568 | #define K_15 CB11_CA15 | ||
| 569 | #define K_16 CB11_CA16 | ||
| 570 | |||
| 571 | #define L_1 CB12_CA1 | ||
| 572 | #define L_2 CB12_CA2 | ||
| 573 | #define L_3 CB12_CA3 | ||
| 574 | #define L_4 CB12_CA4 | ||
| 575 | #define L_5 CB12_CA5 | ||
| 576 | #define L_6 CB12_CA6 | ||
| 577 | #define L_7 CB12_CA7 | ||
| 578 | #define L_8 CB12_CA8 | ||
| 579 | #define L_9 CB12_CA9 | ||
| 580 | #define L_10 CB12_CA10 | ||
| 581 | #define L_11 CB12_CA11 | ||
| 582 | #define L_12 CB12_CA12 | ||
| 583 | #define L_13 CB12_CA13 | ||
| 584 | #define L_14 CB12_CA14 | ||
| 585 | #define L_15 CB12_CA15 | ||
| 586 | #define L_16 CB12_CA16 | ||
diff --git a/drivers/led/snled27351.h b/drivers/led/snled27351.h index d902744d14..1b7f05c285 100644 --- a/drivers/led/snled27351.h +++ b/drivers/led/snled27351.h | |||
| @@ -21,49 +21,6 @@ | |||
| 21 | #include "progmem.h" | 21 | #include "progmem.h" |
| 22 | #include "util.h" | 22 | #include "util.h" |
| 23 | 23 | ||
| 24 | // ======== DEPRECATED DEFINES - DO NOT USE ======== | ||
| 25 | #ifdef DRIVER_ADDR_1 | ||
| 26 | # define SNLED27351_I2C_ADDRESS_1 DRIVER_ADDR_1 | ||
| 27 | #endif | ||
| 28 | #ifdef DRIVER_ADDR_2 | ||
| 29 | # define SNLED27351_I2C_ADDRESS_2 DRIVER_ADDR_2 | ||
| 30 | #endif | ||
| 31 | #ifdef DRIVER_ADDR_3 | ||
| 32 | # define SNLED27351_I2C_ADDRESS_3 DRIVER_ADDR_3 | ||
| 33 | #endif | ||
| 34 | #ifdef DRIVER_ADDR_4 | ||
| 35 | # define SNLED27351_I2C_ADDRESS_4 DRIVER_ADDR_4 | ||
| 36 | #endif | ||
| 37 | #ifdef CKLED2001_TIMEOUT | ||
| 38 | # define SNLED27351_I2C_TIMEOUT CKLED2001_TIMEOUT | ||
| 39 | #endif | ||
| 40 | #ifdef CKLED2001_PERSISTENCE | ||
| 41 | # define SNLED27351_I2C_PERSISTENCE CKLED2001_PERSISTENCE | ||
| 42 | #endif | ||
| 43 | #ifdef PHASE_CHANNEL | ||
| 44 | # define SNLED27351_PHASE_CHANNEL PHASE_CHANNEL | ||
| 45 | #endif | ||
| 46 | #ifdef CKLED2001_CURRENT_TUNE | ||
| 47 | # define SNLED27351_CURRENT_TUNE CKLED2001_CURRENT_TUNE | ||
| 48 | #endif | ||
| 49 | |||
| 50 | #define MSKPHASE_12CHANNEL SNLED27351_SCAN_PHASE_12_CHANNEL | ||
| 51 | #define MSKPHASE_11CHANNEL SNLED27351_SCAN_PHASE_11_CHANNEL | ||
| 52 | #define MSKPHASE_10CHANNEL SNLED27351_SCAN_PHASE_10_CHANNEL | ||
| 53 | #define MSKPHASE_9CHANNEL SNLED27351_SCAN_PHASE_9_CHANNEL | ||
| 54 | #define MSKPHASE_8CHANNEL SNLED27351_SCAN_PHASE_8_CHANNEL | ||
| 55 | #define MSKPHASE_7CHANNEL SNLED27351_SCAN_PHASE_7_CHANNEL | ||
| 56 | #define MSKPHASE_6CHANNEL SNLED27351_SCAN_PHASE_6_CHANNEL | ||
| 57 | #define MSKPHASE_5CHANNEL SNLED27351_SCAN_PHASE_5_CHANNEL | ||
| 58 | #define MSKPHASE_4CHANNEL SNLED27351_SCAN_PHASE_4_CHANNEL | ||
| 59 | #define MSKPHASE_3CHANNEL SNLED27351_SCAN_PHASE_3_CHANNEL | ||
| 60 | #define MSKPHASE_2CHANNEL SNLED27351_SCAN_PHASE_2_CHANNEL | ||
| 61 | #define MSKPHASE_1CHANNEL SNLED27351_SCAN_PHASE_1_CHANNEL | ||
| 62 | |||
| 63 | #define ckled2001_led snled27351_led_t | ||
| 64 | #define g_ckled2001_leds g_snled27351_leds | ||
| 65 | // ======== | ||
| 66 | |||
| 67 | #define SNLED27351_REG_COMMAND 0xFD | 24 | #define SNLED27351_REG_COMMAND 0xFD |
| 68 | #define SNLED27351_COMMAND_LED_CONTROL 0x00 | 25 | #define SNLED27351_COMMAND_LED_CONTROL 0x00 |
| 69 | #define SNLED27351_COMMAND_PWM 0x01 | 26 | #define SNLED27351_COMMAND_PWM 0x01 |
| @@ -392,209 +349,3 @@ void snled27351_sw_shutdown(uint8_t index); | |||
| 392 | #define CB12_CA14 0xBD | 349 | #define CB12_CA14 0xBD |
| 393 | #define CB12_CA15 0xBE | 350 | #define CB12_CA15 0xBE |
| 394 | #define CB12_CA16 0xBF | 351 | #define CB12_CA16 0xBF |
| 395 | |||
| 396 | // DEPRECATED - DO NOT USE | ||
| 397 | |||
| 398 | #define A_1 CB1_CA1 | ||
| 399 | #define A_2 CB1_CA2 | ||
| 400 | #define A_3 CB1_CA3 | ||
| 401 | #define A_4 CB1_CA4 | ||
| 402 | #define A_5 CB1_CA5 | ||
| 403 | #define A_6 CB1_CA6 | ||
| 404 | #define A_7 CB1_CA7 | ||
| 405 | #define A_8 CB1_CA8 | ||
| 406 | #define A_9 CB1_CA9 | ||
| 407 | #define A_10 CB1_CA10 | ||
| 408 | #define A_11 CB1_CA11 | ||
| 409 | #define A_12 CB1_CA12 | ||
| 410 | #define A_13 CB1_CA13 | ||
| 411 | #define A_14 CB1_CA14 | ||
| 412 | #define A_15 CB1_CA15 | ||
| 413 | #define A_16 CB1_CA16 | ||
| 414 | |||
| 415 | #define B_1 CB2_CA1 | ||
| 416 | #define B_2 CB2_CA2 | ||
| 417 | #define B_3 CB2_CA3 | ||
| 418 | #define B_4 CB2_CA4 | ||
| 419 | #define B_5 CB2_CA5 | ||
| 420 | #define B_6 CB2_CA6 | ||
| 421 | #define B_7 CB2_CA7 | ||
| 422 | #define B_8 CB2_CA8 | ||
| 423 | #define B_9 CB2_CA9 | ||
| 424 | #define B_10 CB2_CA10 | ||
| 425 | #define B_11 CB2_CA11 | ||
| 426 | #define B_12 CB2_CA12 | ||
| 427 | #define B_13 CB2_CA13 | ||
| 428 | #define B_14 CB2_CA14 | ||
| 429 | #define B_15 CB2_CA15 | ||
| 430 | #define B_16 CB2_CA16 | ||
| 431 | |||
| 432 | #define C_1 CB3_CA1 | ||
| 433 | #define C_2 CB3_CA2 | ||
| 434 | #define C_3 CB3_CA3 | ||
| 435 | #define C_4 CB3_CA4 | ||
| 436 | #define C_5 CB3_CA5 | ||
| 437 | #define C_6 CB3_CA6 | ||
| 438 | #define C_7 CB3_CA7 | ||
| 439 | #define C_8 CB3_CA8 | ||
| 440 | #define C_9 CB3_CA9 | ||
| 441 | #define C_10 CB3_CA10 | ||
| 442 | #define C_11 CB3_CA11 | ||
| 443 | #define C_12 CB3_CA12 | ||
| 444 | #define C_13 CB3_CA13 | ||
| 445 | #define C_14 CB3_CA14 | ||
| 446 | #define C_15 CB3_CA15 | ||
| 447 | #define C_16 CB3_CA16 | ||
| 448 | |||
| 449 | #define D_1 CB4_CA1 | ||
| 450 | #define D_2 CB4_CA2 | ||
| 451 | #define D_3 CB4_CA3 | ||
| 452 | #define D_4 CB4_CA4 | ||
| 453 | #define D_5 CB4_CA5 | ||
| 454 | #define D_6 CB4_CA6 | ||
| 455 | #define D_7 CB4_CA7 | ||
| 456 | #define D_8 CB4_CA8 | ||
| 457 | #define D_9 CB4_CA9 | ||
| 458 | #define D_10 CB4_CA10 | ||
| 459 | #define D_11 CB4_CA11 | ||
| 460 | #define D_12 CB4_CA12 | ||
| 461 | #define D_13 CB4_CA13 | ||
| 462 | #define D_14 CB4_CA14 | ||
| 463 | #define D_15 CB4_CA15 | ||
| 464 | #define D_16 CB4_CA16 | ||
| 465 | |||
| 466 | #define E_1 CB5_CA1 | ||
| 467 | #define E_2 CB5_CA2 | ||
| 468 | #define E_3 CB5_CA3 | ||
| 469 | #define E_4 CB5_CA4 | ||
| 470 | #define E_5 CB5_CA5 | ||
| 471 | #define E_6 CB5_CA6 | ||
| 472 | #define E_7 CB5_CA7 | ||
| 473 | #define E_8 CB5_CA8 | ||
| 474 | #define E_9 CB5_CA9 | ||
| 475 | #define E_10 CB5_CA10 | ||
| 476 | #define E_11 CB5_CA11 | ||
| 477 | #define E_12 CB5_CA12 | ||
| 478 | #define E_13 CB5_CA13 | ||
| 479 | #define E_14 CB5_CA14 | ||
| 480 | #define E_15 CB5_CA15 | ||
| 481 | #define E_16 CB5_CA16 | ||
| 482 | |||
| 483 | #define F_1 CB6_CA1 | ||
| 484 | #define F_2 CB6_CA2 | ||
| 485 | #define F_3 CB6_CA3 | ||
| 486 | #define F_4 CB6_CA4 | ||
| 487 | #define F_5 CB6_CA5 | ||
| 488 | #define F_6 CB6_CA6 | ||
| 489 | #define F_7 CB6_CA7 | ||
| 490 | #define F_8 CB6_CA8 | ||
| 491 | #define F_9 CB6_CA9 | ||
| 492 | #define F_10 CB6_CA10 | ||
| 493 | #define F_11 CB6_CA11 | ||
| 494 | #define F_12 CB6_CA12 | ||
| 495 | #define F_13 CB6_CA13 | ||
| 496 | #define F_14 CB6_CA14 | ||
| 497 | #define F_15 CB6_CA15 | ||
| 498 | #define F_16 CB6_CA16 | ||
| 499 | |||
| 500 | #define G_1 CB7_CA1 | ||
| 501 | #define G_2 CB7_CA2 | ||
| 502 | #define G_3 CB7_CA3 | ||
| 503 | #define G_4 CB7_CA4 | ||
| 504 | #define G_5 CB7_CA5 | ||
| 505 | #define G_6 CB7_CA6 | ||
| 506 | #define G_7 CB7_CA7 | ||
| 507 | #define G_8 CB7_CA8 | ||
| 508 | #define G_9 CB7_CA9 | ||
| 509 | #define G_10 CB7_CA10 | ||
| 510 | #define G_11 CB7_CA11 | ||
| 511 | #define G_12 CB7_CA12 | ||
| 512 | #define G_13 CB7_CA13 | ||
| 513 | #define G_14 CB7_CA14 | ||
| 514 | #define G_15 CB7_CA15 | ||
| 515 | #define G_16 CB7_CA16 | ||
| 516 | |||
| 517 | #define H_1 CB8_CA1 | ||
| 518 | #define H_2 CB8_CA2 | ||
| 519 | #define H_3 CB8_CA3 | ||
| 520 | #define H_4 CB8_CA4 | ||
| 521 | #define H_5 CB8_CA5 | ||
| 522 | #define H_6 CB8_CA6 | ||
| 523 | #define H_7 CB8_CA7 | ||
| 524 | #define H_8 CB8_CA8 | ||
| 525 | #define H_9 CB8_CA9 | ||
| 526 | #define H_10 CB8_CA10 | ||
| 527 | #define H_11 CB8_CA11 | ||
| 528 | #define H_12 CB8_CA12 | ||
| 529 | #define H_13 CB8_CA13 | ||
| 530 | #define H_14 CB8_CA14 | ||
| 531 | #define H_15 CB8_CA15 | ||
| 532 | #define H_16 CB8_CA16 | ||
| 533 | |||
| 534 | #define I_1 CB9_CA1 | ||
| 535 | #define I_2 CB9_CA2 | ||
| 536 | #define I_3 CB9_CA3 | ||
| 537 | #define I_4 CB9_CA4 | ||
| 538 | #define I_5 CB9_CA5 | ||
| 539 | #define I_6 CB9_CA6 | ||
| 540 | #define I_7 CB9_CA7 | ||
| 541 | #define I_8 CB9_CA8 | ||
| 542 | #define I_9 CB9_CA9 | ||
| 543 | #define I_10 CB9_CA10 | ||
| 544 | #define I_11 CB9_CA11 | ||
| 545 | #define I_12 CB9_CA12 | ||
| 546 | #define I_13 CB9_CA13 | ||
| 547 | #define I_14 CB9_CA14 | ||
| 548 | #define I_15 CB9_CA15 | ||
| 549 | #define I_16 CB9_CA16 | ||
| 550 | |||
| 551 | #define J_1 CB10_CA1 | ||
| 552 | #define J_2 CB10_CA2 | ||
| 553 | #define J_3 CB10_CA3 | ||
| 554 | #define J_4 CB10_CA4 | ||
| 555 | #define J_5 CB10_CA5 | ||
| 556 | #define J_6 CB10_CA6 | ||
| 557 | #define J_7 CB10_CA7 | ||
| 558 | #define J_8 CB10_CA8 | ||
| 559 | #define J_9 CB10_CA9 | ||
| 560 | #define J_10 CB10_CA10 | ||
| 561 | #define J_11 CB10_CA11 | ||
| 562 | #define J_12 CB10_CA12 | ||
| 563 | #define J_13 CB10_CA13 | ||
| 564 | #define J_14 CB10_CA14 | ||
| 565 | #define J_15 CB10_CA15 | ||
| 566 | #define J_16 CB10_CA16 | ||
| 567 | |||
| 568 | #define K_1 CB11_CA1 | ||
| 569 | #define K_2 CB11_CA2 | ||
| 570 | #define K_3 CB11_CA3 | ||
| 571 | #define K_4 CB11_CA4 | ||
| 572 | #define K_5 CB11_CA5 | ||
| 573 | #define K_6 CB11_CA6 | ||
| 574 | #define K_7 CB11_CA7 | ||
| 575 | #define K_8 CB11_CA8 | ||
| 576 | #define K_9 CB11_CA9 | ||
| 577 | #define K_10 CB11_CA10 | ||
| 578 | #define K_11 CB11_CA11 | ||
| 579 | #define K_12 CB11_CA12 | ||
| 580 | #define K_13 CB11_CA13 | ||
| 581 | #define K_14 CB11_CA14 | ||
| 582 | #define K_15 CB11_CA15 | ||
| 583 | #define K_16 CB11_CA16 | ||
| 584 | |||
| 585 | #define L_1 CB12_CA1 | ||
| 586 | #define L_2 CB12_CA2 | ||
| 587 | #define L_3 CB12_CA3 | ||
| 588 | #define L_4 CB12_CA4 | ||
| 589 | #define L_5 CB12_CA5 | ||
| 590 | #define L_6 CB12_CA6 | ||
| 591 | #define L_7 CB12_CA7 | ||
| 592 | #define L_8 CB12_CA8 | ||
| 593 | #define L_9 CB12_CA9 | ||
| 594 | #define L_10 CB12_CA10 | ||
| 595 | #define L_11 CB12_CA11 | ||
| 596 | #define L_12 CB12_CA12 | ||
| 597 | #define L_13 CB12_CA13 | ||
| 598 | #define L_14 CB12_CA14 | ||
| 599 | #define L_15 CB12_CA15 | ||
| 600 | #define L_16 CB12_CA16 | ||
