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: max7300.cpp
- Revision:
- 3:e044960e516c
- Parent:
- 1:e1ee2549a047
- Child:
- 4:4ffbd5539b69
diff -r fd2de5d21702 -r e044960e516c max7300.cpp --- a/max7300.cpp Sun Jul 19 01:40:10 2015 +0000 +++ b/max7300.cpp Thu Jul 23 21:25:52 2015 +0000 @@ -47,17 +47,17 @@ //configuration register bits -#define MAX7300_S_BIT 0x01 -#define MAX7300_M_BIT 0x80 +#define MAX7300_S_BIT (0x01) +#define MAX7300_M_BIT (0x80) //registers -#define MAX7300_CONFIGURATION 0x04 -#define MAX7300_TRANSITION_DETECT_MASK 0x06 -#define MAX7300_PORT_CONFIGURATION 0x09 -#define MAX7300_PORT_ONLY_BASE_ADRS 0x20 +#define MAX7300_CONFIGURATION (0x04) +#define MAX7300_TRANSITION_DETECT_MASK (0x06) +#define MAX7300_PORT_CONFIGURATION (0x09) +#define MAX7300_PORT_ONLY_BASE_ADRS (0x20) //helper for calclating register addresses in 8 port wide fxs -#define MAX7300_8_PORTS_OFFSET 0x40 +#define MAX7300_8_PORTS_OFFSET (0x40) //*********************************************************************