Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 2:b77c5ff37378
- Parent:
- 1:cc6f7a7e1b38
- Child:
- 3:741c9aa3891c
--- a/main.cpp Fri Sep 06 03:44:13 2013 +0000
+++ b/main.cpp Fri Sep 06 03:45:51 2013 +0000
@@ -1,8 +1,8 @@
void delay(void);
- #define FIO2DIR0 (*(volatile unsigned char *) (0x2009C040))
- #define FIO2PIN0 (*(volatile unsigned char *) (0x2009C054))
+ #define FIO2DIRO (*(volatile unsigned char *) (0x2009C040))
+ #define FIO2PINO (*(volatile unsigned char *) (0x2009C054))
//==============================================//==============================
int main()
{
@@ -11,7 +11,7 @@
{
FIO2PINO |= 0x01; // OR bit 0 with 1 to set pin high.
delay();
- FIO2PIN) &= ~0x01; // AND bit 0 with 0 to set pin low.
+ FIO2PINO &= ~0x01; // AND bit 0 with 0 to set pin low.
delay();
} // while (1)
} // main.