summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/kl/kl_led.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/kl/kl_led.c')
-rw-r--r--nuttx/arch/arm/src/kl/kl_led.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/nuttx/arch/arm/src/kl/kl_led.c b/nuttx/arch/arm/src/kl/kl_led.c
deleted file mode 100644
index 3f2c36f02..000000000
--- a/nuttx/arch/arm/src/kl/kl_led.c
+++ /dev/null
@@ -1,28 +0,0 @@
-void blueled(int on)
-{
- volatile unsigned int *SIM_COPC = ((volatile unsigned int *)0x40048100);
- volatile unsigned int *SIM_SCGC5 = ((volatile unsigned int *)0x40048038);
- volatile unsigned int *PORTD_PCR1 = ((volatile unsigned int *)0x4004C004);
- volatile unsigned int *GPIOD_PSOR = ((volatile unsigned int *)0x400FF0C4);
- volatile unsigned int *GPIOD_PCOR = ((volatile unsigned int *)0x400FF0C8);
- volatile unsigned int *GPIOD_PDDR = ((volatile unsigned int *)0x400FF0D4);
-
- /*acassis: disable SIM_COP*/
- *SIM_COPC = 0;
-
- /* enable clocks for PORTD */
- *SIM_SCGC5 = 0x1000;
-
- /* set D1 to GPIO */
- *PORTD_PCR1 = 0x100;
-
- /* set D1 DDR to output */
- *GPIOD_PDDR |= 2;
-
- if(on)
- *GPIOD_PCOR = 2;
- else
- *GPIOD_PSOR = 2;
-
-}
-