diff options
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/config.h b/config.h new file mode 100644 index 0000000..a107314 --- /dev/null +++ b/config.h @@ -0,0 +1,57 @@ +/** \file config.h
+ * \brief Basic configuration of the project
+ * \author Freddie Chopin, http://www.freddiechopin.info/
+ * \date 2012-01-08
+ */
+
+/******************************************************************************
+* project: lpc1114_blink_led
+* chip: LPC1114
+* compiler: arm-none-eabi-gcc (Sourcery CodeBench Lite 2011.09-69) 4.6.1
+******************************************************************************/
+
+#ifndef CONFIG_H_
+#define CONFIG_H_
+
+#include "hdr/hdr_gpio_masked_access.h"
+
+/*
++=============================================================================+
+| global definitions
++=============================================================================+
+*/
+
+#define CRYSTAL 12000000 ///< quartz crystal resonator which is connected to the chip
+#define FREQUENCY 50000000 ///< desired target frequency of the core
+
+#define LED_GPIO LPC_GPIO1 ///< GPIO port to which the LED is connected
+
+#define LED_pin 8 ///< pin number of the LED
+
+#define LED (1 << LED_pin)
+
+/// "variable" to manipulate the pin directly via GPIO masked access
+#define LED_gma gpio_masked_access_t GPIO_MASKED_ACCESS(LED_GPIO, LED_pin)
+
+/*
++=============================================================================+
+| strange variables
++=============================================================================+
+*/
+
+/*
++=============================================================================+
+| global variables
++=============================================================================+
+*/
+
+/*
++=============================================================================+
+| global functions' declarations
++=============================================================================+
+*/
+
+/******************************************************************************
+* END OF FILE
+******************************************************************************/
+#endif /* CONFIG_H_ */
|
