Browse Source

Merge pull request #1 from esell/bluefruit

update macro names in bluefruit
master
esell 8 years ago
parent
commit
90105c6f8b
1 changed files with 19 additions and 19 deletions
  1. 19
    19
      tmk_core/protocol/bluefruit/bluefruit.c

+ 19
- 19
tmk_core/protocol/bluefruit/bluefruit.c View File

@@ -150,25 +150,25 @@ static void send_system(uint16_t data)
+-------------------------------------+-------+
*/
#define CONSUMER2BLUEFRUIT(usage) \
(usage == AUDIO_MUTE ? 0x0000 : \
(usage == AUDIO_VOL_UP ? 0x1000 : \
(usage == AUDIO_VOL_DOWN ? 0x2000 : \
(usage == TRANSPORT_NEXT_TRACK ? 0x0002 : \
(usage == TRANSPORT_PREV_TRACK ? 0x0004 : \
(usage == TRANSPORT_STOP ? 0x0010 : \
(usage == TRANSPORT_STOP_EJECT ? 0x0000 : \
(usage == TRANSPORT_PLAY_PAUSE ? 0x4000 : \
(usage == AL_CC_CONFIG ? 0x0000 : \
(usage == AL_EMAIL ? 0x0000 : \
(usage == AL_CALCULATOR ? 0x0000 : \
(usage == AL_LOCAL_BROWSER ? 0x0000 : \
(usage == AC_SEARCH ? 0x0400 : \
(usage == AC_HOME ? 0x0100 : \
(usage == AC_BACK ? 0x0000 : \
(usage == AC_FORWARD ? 0x0000 : \
(usage == AC_STOP ? 0x0000 : \
(usage == AC_REFRESH ? 0x0000 : \
(usage == AC_BOOKMARKS ? 0x0000 : 0)))))))))))))))))))
(usage == AUDIO_MUTE ? 0x0000 : \
(usage == AUDIO_VOL_UP ? 0x1000 : \
(usage == AUDIO_VOL_DOWN ? 0x2000 : \
(usage == TRANSPORT_NEXT_TRACK ? 0x0002 : \
(usage == TRANSPORT_PREV_TRACK ? 0x0004 : \
(usage == TRANSPORT_STOP ? 0x0010 : \
(usage == TRANSPORT_STOP_EJECT ? 0x0000 : \
(usage == TRANSPORT_PLAY_PAUSE ? 0x4000 : \
(usage == APPLAUNCH_CC_CONFIG ? 0x0000 : \
(usage == APPLAUNCH_EMAIL ? 0x0000 : \
(usage == APPLAUNCH_CALCULATOR ? 0x0000 : \
(usage == APPLAUNCH_LOCAL_BROWSER ? 0x0000 : \
(usage == APPCONTROL_SEARCH ? 0x0400 : \
(usage == APPCONTROL_HOME ? 0x0100 : \
(usage == APPCONTROL_BACK ? 0x0000 : \
(usage == APPCONTROL_FORWARD ? 0x0000 : \
(usage == APPCONTROL_STOP ? 0x0000 : \
(usage == APPCONTROL_REFRESH ? 0x0000 : \
(usage == APPCONTROL_BOOKMARKS ? 0x0000 : 0)))))))))))))))))))

static void send_consumer(uint16_t data)
{