summary refs log tree commit diff
path: root/F2024/coe718/labs/lab1/Boards/Keil/MCB1700/Blinky_ULp/IRQ.c
diff options
context:
space:
mode:
authorKleidi Bujari <mail@4kb.net>2024-10-04 17:30:14 -0400
committerKleidi Bujari <mail@4kb.net>2024-10-04 17:30:14 -0400
commite3d457d72f59bd442a3a8d13b311d7c8444e177d (patch)
tree96593538bb14d6791ea459a13b2d57eeadb6a1a8 /F2024/coe718/labs/lab1/Boards/Keil/MCB1700/Blinky_ULp/IRQ.c
parenta8d741816ce8fd86fd985e772ee2103a559fbdae (diff)
downloaduni-e3d457d72f59bd442a3a8d13b311d7c8444e177d.tar.gz
uni-e3d457d72f59bd442a3a8d13b311d7c8444e177d.tar.bz2
uni-e3d457d72f59bd442a3a8d13b311d7c8444e177d.zip
labs 1,2
Diffstat (limited to 'F2024/coe718/labs/lab1/Boards/Keil/MCB1700/Blinky_ULp/IRQ.c')
-rwxr-xr-xF2024/coe718/labs/lab1/Boards/Keil/MCB1700/Blinky_ULp/IRQ.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/F2024/coe718/labs/lab1/Boards/Keil/MCB1700/Blinky_ULp/IRQ.c b/F2024/coe718/labs/lab1/Boards/Keil/MCB1700/Blinky_ULp/IRQ.c
new file mode 100755
index 0000000..2696405
--- /dev/null
+++ b/F2024/coe718/labs/lab1/Boards/Keil/MCB1700/Blinky_ULp/IRQ.c
@@ -0,0 +1,50 @@
+/*----------------------------------------------------------------------------

+ * Name:    IRQ.c

+ * Purpose: IRQ Handler

+ * Note(s):

+ *----------------------------------------------------------------------------

+ * This file is part of the uVision/ARM development tools.

+ * This software may only be used under the terms of a valid, current,

+ * end user licence from KEIL for a compatible version of KEIL software

+ * development tools. Nothing else gives you the right to use this software.

+ *

+ * This software is supplied "AS IS" without warranties of any kind.

+ *

+ * Copyright (c) 2011 Keil - An ARM Company. All rights reserved.

+ *----------------------------------------------------------------------------*/

+

+#include "LPC17xx.h"                         /* LPC17xx definitions           */

+#include "LED.h"

+#include "Board_ADC.h"

+#include "Blinky.h"

+

+uint8_t  clock_ms;                           /* Flag activated every 10 ms    */

+

+

+/*----------------------------------------------------------------------------

+  Systick Interrupt Handler

+  SysTick interrupt happens every 10 ms

+ *----------------------------------------------------------------------------*/

+void SysTick_Handler (void) {

+  static unsigned long ticks = 0;

+  static unsigned long timetick;

+  static unsigned int  leds = 0x01;

+

+  if (ticks++ >= 9) {                       /* Set Clock1s to 10ms */

+    ticks    = 0;

+    clock_ms = 1;

+  }

+

+	

+  /* Blink the LEDs depending on ADC_ConvertedValue                           */

+	/*

+  if (timetick++ >= (ADC_last >> 8)) {

+    timetick   = 0;

+    leds     <<= 1;

+    if (leds > (1 << LED_NUM)) leds = 0x01;

+    LED_Out (leds);

+  }

+

+  ADC_StartConversion();

+	*/

+}