Skip to content
Snippets Groups Projects
Select Git revision
  • add_menu_vibration
  • genofire/ble-follow-py
  • schneider/standby
  • master default protected
  • plaetzchen/ios-workaround
  • blinkisync-as-preload
  • schneider/max30001-pycardium
  • schneider/max30001-epicaridum
  • schneider/max30001
  • schneider/stream-locks
  • schneider/fundamental-test
  • schneider/ble-buffers
  • schneider/maxim-sdk-update
  • ch3/splashscreen
  • koalo/bhi160-works-but-dirty
  • koalo/wip/i2c-for-python
  • renze/safe_mode
  • renze/hatchery_apps
  • koalo/factory-reset
  • msgctl/gfx_rle
  • v1.10
  • v1.9
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
34 results

api.h

Blame
  • Forked from card10 / firmware
    1806 commits behind the upstream repository.
    api.h 482 B
    #ifndef _API_H
    #define _API_H
    #include <stdint.h>
    
    #ifndef API
    #  define API(id, def) def
    #endif
    
    #define API_BUZZER 0x35c3
    API(API_BUZZER, void api_set_buzzer(uint8_t state));
    
    typedef struct {
        uint8_t red;
        uint8_t green;
        uint8_t blue;
    } led_color_t;
    
    #define API_LED 0xc0ffee
    API(API_LED, void api_set_led(uint8_t led, led_color_t color));
    
    #define API_TEST 0xdeadc0de
    API(API_TEST, void api_test(char test0, short test1, int test2, long test3));
    
    #endif /* _API_H */