Find Jobs
Hire Freelancers

Compile for OSX

$30-250 USD

Zamknięte
Opublikowano około 15 lat temu

$30-250 USD

Płatne przy odbiorze
Compile the following linux code for Mac OSX. /* * HP TC1100 Touchscreen Enable * Copyright (c) 2004 Hewlett-Packard Co. * * Compile with `cc -O2 -o tc1100ts tc1100ts.c', * and run as root with `./tc1100ts'. * * This standalone program enables the Serial Port 1 * (SP1) of the NS LPC Super I/O, where the Wacom * Digitizer is connected to on the HP TC1100 Tablet PC. * * The serial device is mapped to 0x3e8 IRQ0-4 to match * the default /dev/ttyS2 port and IRQ mapping on Linux. * * To proof that the Wacom Digitizer is enabled by this * standalone, do the following: * - Change to superuser mode, i.e. root * - setserial /dev/ttyS2 * it should return: * /dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4 * - ./tc1100ts * - setserial /dev/ttyS2 autoconfig * - setserial /dev/ttyS2 * now returns: * /dev/ttyS2, UART: 16550A, Port: 0x03e8, IRQ: 4 * */ #include <stdio.h> #include <unistd.h> #include <sys/io.h> #include <stdlib.h> const int cfgindex = 0x4e; const int cfgdata = 0x4f; #define wsio(i,d) {outb(i,cfgindex); outb(d,cfgdata);} int main() { /* Get access to the ports */ if (iopl(3)) {perror("iopl"); exit(1);} // See the SuperIO Specificatio for details of each register wsio(0x07,0x03); // Select Logical Device - Serial Port 1 wsio(0x30,0x00); // De-activate Logical Device wsio(0x60,0x03); // I/O Port Base [15-08] wsio(0x61,0xe8); // I/O Port Base [07-00] wsio(0x70,0x14); // Enables Wake-up on IRQ4 wsio(0x71,0x03); // Level IRQ Req, Hi priority wsio(0x74,0x04); // DMA Channel Select 0 - no DMA wsio(0x75,0x04); // DMA Channel Select 1 - no DMA wsio(0x30,0x01); // Activate Logical Device /* We don't need the ports anymore */ if (iopl(0)) {perror("iopl"); exit(1);} exit(0); } /* end of tc1100ts.c */
Identyfikator projektu: 387847

Informację o projekcie

4 ofert
Zdalny projekt
Aktywny 15 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
4 freelancerzy składają oferty o średniej wysokości $40 USD dla tej pracy
Awatar Użytkownika
Hi Sir, Kindly check my PM. Best Regards, Ahmed
$50 USD w 0 dzień
4,9 (16 opinii)
5,1
5,1
Awatar Użytkownika
please reply me on PMB
$30 USD w 1 dzień
4,9 (24 opinii)
4,9
4,9
Awatar Użytkownika
Pls see PMB
$50 USD w 1 dzień
5,0 (10 opinii)
3,5
3,5
Awatar Użytkownika
i can compile the code.
$30 USD w 1 dzień
5,0 (1 opinia)
2,4
2,4

O kliencie

Flaga UNITED STATES
East Hampton, United States
5,0
3
Członek od paź 2, 2006

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.