mirror of
git://projects.qi-hardware.com/iris.git
synced 2025-04-21 12:27:27 +03:00
more working
This commit is contained in:
@@ -53,7 +53,6 @@ enum codes:
|
||||
BUZZER = 32
|
||||
|
||||
Kernel::Num start ():
|
||||
kdebug ("buzzer started.\n")
|
||||
map_tcu ()
|
||||
|
||||
DevBuzzer buzzer
|
||||
@@ -63,6 +62,7 @@ Kernel::Num start ():
|
||||
Kernel::free_cap (dev)
|
||||
unsigned user (~0)
|
||||
unsigned next_user (0)
|
||||
Kernel::my_parent.init_done ()
|
||||
while true:
|
||||
Kernel::wait ()
|
||||
switch Kernel::recv.protected_data.h:
|
||||
|
||||
@@ -278,6 +278,7 @@ Kernel::Num start ():
|
||||
GPIO_GPIER (GPIO_KBD_ROW_PORT) = (1 << GPIO_TP_LEFT) | (1 << GPIO_TP_RIGHT) | GPIO_KBD_ROW_MASK
|
||||
Kernel::register_interrupt (IRQ_GPIO0)
|
||||
|
||||
Kernel::my_parent.init_done ()
|
||||
while true:
|
||||
Kernel::schedule ()
|
||||
Kernel::wait ()
|
||||
|
||||
@@ -312,8 +312,8 @@ Kernel::Num start ():
|
||||
bool is_on = true
|
||||
unsigned backlight_user = 0
|
||||
Kernel::Num current_backlight = 0
|
||||
Kernel::my_parent.init_done ()
|
||||
while true:
|
||||
//log_str ("Wachten...\n")
|
||||
Kernel::wait ()
|
||||
//log_msg ()
|
||||
switch Kernel::recv.protected_data.h:
|
||||
|
||||
@@ -211,6 +211,7 @@ Kernel::Num start ():
|
||||
unsigned user (~0)
|
||||
unsigned next_user (0)
|
||||
Kernel::register_interrupt (IRQ_GPIO3)
|
||||
Kernel::my_parent.init_done ()
|
||||
while true:
|
||||
Kernel::wait ()
|
||||
switch Kernel::recv.protected_data.h:
|
||||
|
||||
@@ -29,6 +29,7 @@ Kernel::Num start ():
|
||||
// Frequency of single pulses in hertz.
|
||||
unsigned freq = 1000
|
||||
bool running (false)
|
||||
Kernel::my_parent.init_done ()
|
||||
while true:
|
||||
Kernel::wait ()
|
||||
switch Kernel::recv.protected_data.l:
|
||||
|
||||
Reference in New Issue
Block a user