Skip to content
Snippets Groups Projects
Select Git revision
  • f065344d3b5d88bc09e0028382f26ab60de2b5b2
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

objexcept.c

Blame
  • 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 */