diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-03-04 10:33:38 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-03-04 10:33:38 +0000 |
commit | 99ac65be2ac3d59a4de3b5adaa4dd9adeb80c1e2 (patch) | |
tree | f5b7095946f7b4553698e91adfe07f2bcaa1e110 /demos/Win32-MinGW/demo.c | |
parent | ec0a917ae1bef32f1848161e759ef98542327523 (diff) | |
download | ChibiOS-99ac65be2ac3d59a4de3b5adaa4dd9adeb80c1e2.tar.gz ChibiOS-99ac65be2ac3d59a4de3b5adaa4dd9adeb80c1e2.tar.bz2 ChibiOS-99ac65be2ac3d59a4de3b5adaa4dd9adeb80c1e2.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@213 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/Win32-MinGW/demo.c')
-rw-r--r-- | demos/Win32-MinGW/demo.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/demos/Win32-MinGW/demo.c b/demos/Win32-MinGW/demo.c index acf17e7fd..0b646a50b 100644 --- a/demos/Win32-MinGW/demo.c +++ b/demos/Win32-MinGW/demo.c @@ -22,10 +22,10 @@ #include <ch.h>
-static ULONG32 wdguard;
+static uint32_t wdguard;
static WorkingArea(wdarea, 2048);
-static ULONG32 cdguard;
+static uint32_t cdguard;
static WorkingArea(cdarea, 2048);
static Thread *cdtp;
@@ -78,7 +78,7 @@ static void PrintLineFDD(FullDuplexDriver *sd, char *msg) { chFDDPut(sd, *msg++);
}
-static BOOL GetLineFDD(FullDuplexDriver *sd, char *line, int size) {
+static t_bool GetLineFDD(FullDuplexDriver *sd, char *line, int size) {
char *p = line;
while (TRUE) {
@@ -91,9 +91,9 @@ static BOOL GetLineFDD(FullDuplexDriver *sd, char *line, int size) { }
if (c == 8) {
if (p != line) {
- chFDDPut(sd, (BYTE8)c);
+ chFDDPut(sd, (uint8_t)c);
chFDDPut(sd, 0x20);
- chFDDPut(sd, (BYTE8)c);
+ chFDDPut(sd, (uint8_t)c);
p--;
}
continue;
@@ -106,8 +106,8 @@ static BOOL GetLineFDD(FullDuplexDriver *sd, char *line, int size) { if (c < 0x20)
continue;
if (p < line + size - 1) {
- chFDDPut(sd, (BYTE8)c);
- *p++ = (BYTE8)c;
+ chFDDPut(sd, (uint8_t)c);
+ *p++ = (uint8_t)c;
}
}
}
@@ -140,7 +140,7 @@ static t_msg HelloWorldThread(void *arg) { return 0;
}
-static BOOL checkend(FullDuplexDriver *sd) {
+static t_bool checkend(FullDuplexDriver *sd) {
char * lp = strtok(NULL, " \009"); /* It is not thread safe but this is a demo.*/
if (lp) {
|