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.
Dependents: dm_bubbles dm_calc dm_paint dm_sdcard_with_adapter ... more
Diff: dm_platform.h
- Revision:
- 2:59be7fca4581
- Parent:
- 0:d6ff5fa503e8
- Child:
- 3:02c19cbc707c
diff -r eab9854e0710 -r 59be7fca4581 dm_platform.h
--- a/dm_platform.h Tue May 13 11:21:11 2014 +0000
+++ b/dm_platform.h Tue May 20 12:21:43 2014 +0200
@@ -12,12 +12,12 @@
// Arduino
#if defined (DM_TOOLCHAIN_ARDUINO)
-
+
// Mandatory includes for Arduino
#include <Arduino.h>
#include <avr/pgmspace.h>
#include <SPI.h>
-
+
// Clear bit, Set bit, High pulse and Low pulse macros
#define cbi(reg, _bitmask) *reg &= ~_bitmask
#define sbi(reg, _bitmask) *reg |= _bitmask
@@ -36,7 +36,7 @@
#define A3 17
#define A4 18
#define A5 19
-
+
// Needed typedefs, not normally present in the Arduino environment
#ifndef uint8_t
#define uint8_t unsigned char
@@ -64,7 +64,7 @@
#define pulse_low(reg, _bitmask) do { *(reg) = 0; *(reg) = 1; } while(0)
#define constrain(amt,low,high) ((amt)<=(low)?(low):((amt)>(high)?(high):(amt)))
#define delay(ms) wait_ms(ms)
-
+
// Map of mandatory pin names, from Arduino names to D* and A*
#if defined(__LPC407x_8x_177x_8x_H__)
#define D0 p10
@@ -81,7 +81,7 @@
#define D11 p11
#define D12 p12
#define D13 p13
-
+
#define A0 p15
#define A1 p16
#define A2 p17
@@ -89,10 +89,13 @@
#define A4 p19
#define A5 p20
#endif
- // Special handling for the LPC1549 LPCXpresso board
-#ifdef LPC15XX_H
- #define D5 P0_11
-#endif
+
+ // Special handling for the LPC1549 LPCXpresso board with solder bump
+ #ifdef LPC15XX_H
+ #define SPECIAL_D5 P0_11
+ #else
+ #define SPECIAL_D5 D5
+ #endif
#endif
#endif /* DM_PLATFORM_h */
DisplayModule 1.8" TFT with SPI Interface
DisplayModule 2.2" TFT with 8-bit interface
DisplayModule 2.8" 240x320 Touch TFT with 8-bit Interface
DisplayModule 2.4" 240x320 Touch TFT with 8-bit Interface
DisplayModule 2.8" 240x320 TFT LCD With Resistive Touch - SPI, 4MB Flash
DisplayModule 3.5" 320x240 TFT LCD With Resistive Touch - SPI, 4MB Flash
DisplayModule 4.3" 480x272 Arduino TFT Shield With Touch And SPI Interface
DisplayModule 5.0" 800x480 Arduino TFT Shield With Touch And SPI Interface
DisplayModule 2.8" 240x320 TFT With Capacitive Touch