Ignore:
Timestamp:
2014-09-12T13:22:33Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b20126
Parents:
8db09e4 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhid/blink1/blink1.h

    r8db09e4 r15d0046  
    2727 */
    2828
    29 /** @addtogroup libmathmips64
     29/** @addtogroup drvusbhid
    3030 * @{
    3131 */
    3232/** @file
     33 * USB blink(1) subdriver.
    3334 */
    3435
    35 #ifndef LIBMATH_mips64_MATH_H_
    36 #define LIBMATH_mips64_MATH_H_
     36#ifndef USB_HID_BLINK1_H_
     37#define USB_HID_BLINK1_H_
    3738
    38 #include <mathtypes.h>
    39 #include <mod.h>
    40 #include <trunc.h>
    41 #include <trig.h>
     39#include <usb/dev/driver.h>
     40#include "../usbhid.h"
    4241
    43 static inline double fmod(double dividend, double divisor)
    44 {
    45         return double_mod(dividend, divisor);
    46 }
     42/** Container for USB blink(1) device. */
     43typedef struct {
     44        /** DDF blink(1) function */
     45        ddf_fun_t *fun;
     46       
     47        /** USB HID device */
     48        usb_hid_dev_t *hid_dev;
     49} usb_blink1_t;
    4750
    48 static inline double trunc(double val)
    49 {
    50         double_t arg;
    51         arg.val = val;
    52        
    53         double_t ret;
    54         ret.data = trunc_float64(arg.data);
    55        
    56         return ret.val;
    57 }
     51extern const char *HID_BLINK1_FUN_NAME;
     52extern const char *HID_BLINK1_CATEGORY;
    5853
    59 static inline double sin(double val)
    60 {
    61         return double_sin(val);
    62 }
     54extern int usb_blink1_init(usb_hid_dev_t *, void **);
     55extern void usb_blink1_deinit(usb_hid_dev_t *, void *);
    6356
    64 static inline double cos(double val)
    65 {
    66         return double_cos(val);
    67 }
     57#endif // USB_HID_BLINK1_H_
    6858
    69 #endif
    70 
    71 /** @}
     59/**
     60 * @}
    7261 */
Note: See TracChangeset for help on using the changeset viewer.