Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
conversion QBasic -> C
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Dom
Guru
Guru


Joined: 25 Mar 2003
Posts: 416
Location: Menton, France

PostPosted: Sat May 24, 2003 12:52 pm    Post subject: conversion QBasic -> C Reply with quote

Je voudrais utiliser une interface de mesure branchée sur un port série (une sorte de multimètre perso) avec linux. Le logiciel d'acquisition est en QBasic, et j'aimerais bien le réécrire en C mais je n'ai pas les connaissances pour faire ça, et je n'ai pas trop le temps d'apprendre. Est-ce qu'il existe un convertisseur basic vers C ? Ou alors, est-ce que quelqu'un pourrait me dire comment on gère le port série sous linux (en fait, c'est tout ce qui me gène pour réécrire le programme - qui fait moins de 100 lignes :lol: ) ?

Voilà les fonctions qui m'embètent :
Code:
B=&H3F8 (adresse du port série)
OUT B+4, 1 (envoyer vers le port série)
INP (B+6) (recevoir depuis le port série)
Back to top
View user's profile Send private message
Sleeper
l33t
l33t


Joined: 12 Nov 2002
Posts: 667

PostPosted: Sat May 24, 2003 5:18 pm    Post subject: Reply with quote

Quelques liens:
http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/index.html
http://www.tldp.org/HOWTO/mini/IO-Port-Programming.html
Back to top
View user's profile Send private message
Dom
Guru
Guru


Joined: 25 Mar 2003
Posts: 416
Location: Menton, France

PostPosted: Sat May 24, 2003 6:28 pm    Post subject: Reply with quote

Merci beaucoup il y a tout ce que je cherchais là dedans :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum