Skip to content
Snippets Groups Projects
Select Git revision
  • 2ae0c8b47057a1baa6e897bd5d31687d5f2adc80
  • master default protected
  • genofire/ble-rewrite
  • koalo/bhi160
  • rahix/simple_menu
  • ch3/splashscreen
  • koalo/bhi160-works-but-dirty
  • ios-workarounds
  • koalo/wip/i2c-for-python
  • renze/safe_mode
  • renze/hatchery_apps
  • schneider/fundamental-test
  • koalo/factory-reset
  • msgctl/gfx_rle
  • msgctl/faultscreen
  • msgctl/textbuffer_api
  • schneider/bonding
  • schneider/bootloader-update-9a0d158
  • schneider/bsec
  • rahix/bma
  • rahix/bhi
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
28 results

leds.c

Blame
  • Forked from card10 / firmware
    Source project has a limited visibility.
    caller.h 773 B
    #include <stdint.h>
    #include "api/common.h"
    
    /*
     * Initiate an API call.  This function is used internally by code
     * generated from the API header.
     *
     * Args:
     *   - id: ID of the call to be initiated
     *   - size: Size of the arguments buffer
     *
     * Returns:
     *   - A pointer to the argument buffer which the caller is supposed
     *     to fill.  NULL if an error occured or no buffer of the requested
     *     size is available.
     */
    void*_api_call_start(api_id_t id, uintptr_t size);
    
    /*
     * Actually do the API call that was previously initiated using
     * _api_call_start().
     *
     * Args:
     *   - buffer: Pointer to the buffer that was returned by _api_call_start().
     *
     * Returns:
     *   - Pointer to a buffer containing the return value
     */
    void*_api_call_transact(void*buffer);