Changeset b1bdc7a4 in mainline for uspace/srv/hid/kbd/port/dummy.c


Ignore:
Timestamp:
2011-06-11T19:48:15Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
56ad818
Parents:
774fc85
Message:

Control keyboard port modules through ops structures. Allows compiling in
all modules at the same time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/kbd/port/dummy.c

    r774fc85 rb1bdc7a4  
    3838#include <kbd.h>
    3939
    40 int kbd_port_init(void)
     40static int dummy_port_init(void);
     41static void dummy_port_yield(void);
     42static void dummy_port_reclaim(void);
     43static void dummy_port_write(uint8_t data);
     44
     45kbd_port_ops_t dummy_port = {
     46        .init = dummy_port_init,
     47        .yield = dummy_port_yield,
     48        .reclaim = dummy_port_reclaim,
     49        .write = dummy_port_write
     50};
     51
     52
     53static int dummy_port_init(void)
    4154{
    4255        return 0;
    4356}
    4457
    45 void kbd_port_yield(void)
     58static void dummy_port_yield(void)
    4659{
    4760}
    4861
    49 void kbd_port_reclaim(void)
     62static void dummy_port_reclaim(void)
    5063{
    5164}
    5265
    53 void kbd_port_write(uint8_t data)
     66static void dummy_port_write(uint8_t data)
    5467{
    5568        (void) data;
Note: See TracChangeset for help on using the changeset viewer.