Skip to content
Snippets Groups Projects
Select Git revision
  • analog_clock
  • mem_usage
  • longint_issue
  • more_fonts
  • more_fonts_ng
  • master default
  • utime_time_ms
  • genofire/ble-personal_state
  • ios-workarounds
  • schneider/maxim-sdk-update
  • rahix/simple_menu
  • ch3/splashscreen
  • koalo/bhi160-works-but-dirty
  • koalo/wip/i2c-for-python
  • renze/safe_mode
  • renze/hatchery_apps
  • schneider/fundamental-test
  • koalo/factory-reset
  • msgctl/gfx_rle
  • msgctl/faultscreen
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
28 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 */