]> www.average.org Git - pulsecounter.git/commitdiff
remove unused hal debug funcs
authorEugene Crosser <crosser@average.org>
Sun, 24 Jan 2016 13:37:52 +0000 (16:37 +0300)
committerEugene Crosser <crosser@average.org>
Sun, 24 Jan 2016 13:37:52 +0000 (16:37 +0300)
msp430/Hal/Hal.c
msp430/Hal/Hal.h

index 0cdcc297a85b19169fad377c4cf5a2cb2575ed75..f7b1213946d59b37d13ba888f2ce5094736d427c 100644 (file)
 #define GPIO_LOW(mask)              (!(P1IN & mask))
 #define GPIO_DEBOUNCE_MSECS         100
 
-#define DEBUG1_CONFIG()             (P2DIR |= BIT3)
-#define DEBUG1_ON()                 (P2OUT |= BIT3)
-#define DEBUG1_OFF()                (P2OUT &= ~BIT3)
-
-#define DEBUG2_CONFIG()             (P2DIR |= BIT4)
-#define DEBUG2_ON()                 (P2OUT |= BIT4)
-#define DEBUG2_OFF()                (P2OUT &= ~BIT4)
-
 #define EAP_RX_BUF                  UCA0RXBUF
 #define EAP_TX_BUF                  UCA0TXBUF
 
@@ -121,38 +113,6 @@ void Hal_gpioEnable(Hal_Handler handler) {
 void Hal_connected(void) {
 }
 
-void Hal_debugOn(uint8_t line) {
-    switch (line) {
-    case 1:
-        DEBUG1_ON();
-        break;
-    case 2:
-        DEBUG2_ON();
-    }
-}
-
-void Hal_debugOff(uint8_t line) {
-    switch (line) {
-    case 1:
-        DEBUG1_OFF();
-        break;
-    case 2:
-        DEBUG2_OFF();
-    }
-}
-
-void Hal_debugPulse(uint8_t line) {
-    switch (line) {
-    case 1:
-        DEBUG1_ON();
-        DEBUG1_OFF();
-        break;
-    case 2:
-        DEBUG2_ON();
-        DEBUG2_OFF();
-    }
-}
-
 void Hal_delay(uint16_t msecs) {
     while (msecs--) {
         __delay_cycles(MCLK_TICKS_PER_MS);
@@ -191,13 +151,6 @@ void Hal_init(void) {
     RED_LED_CONFIG();
     RED_LED_OFF();
 
-    /* setup debug pins */
-
-    DEBUG1_CONFIG(); DEBUG1_OFF();
-    DEBUG2_CONFIG(); DEBUG2_OFF();
-
-    DEBUG1_ON(); DEBUG1_OFF();
-
     /* setup TimerA1 */
     TA1CTL = TASSEL_1 + MC_2;           // ACLK, Continuous mode
     UART_WATCH_DISABLE();
index 0d57348ab855a824c58594da29d7cd02dcb5eb84..1ceecb55f63c98aff226bfc1f0ee5813076a489a 100644 (file)
@@ -4,7 +4,6 @@
  * This example HAL is intentionally simple.  The implementation is limited to:
  *
  * BUTTON -- a single button that when pressed will cause an interrupt.
- * DEBUG -- two debug GPIOs that are available as outputs from the EAP and under user control.
  * DELAY -- a delay routine that can delay by n milliseconds.
  * INIT -- set the hardware up to its initial state
  * LED -- a user LED that is available for application control.
@@ -63,63 +62,6 @@ extern void Hal_gpioEnable(Hal_Handler handler);
  *
  **/
 extern void Hal_connected(void);
-/**
- * --------- Hal_debugOff ---------
- *
- * Turns the selected DEBUG line off.
- *
- * The two DEBUG lines are output GPIOs that are available to the user for
- * debug purposes.
- *
- * Inputs:
- *   line - the index value of the debug line to turn off
- *
- * Returns:
- *   None
- *
- * Side Effects:
- *   DEBUG line off.
- *
- **/
-extern void Hal_debugOff(uint8_t line);
-/**
- * --------- Hal_debugOn ---------
- *
- * Turns the selected DEBUG line on.
- *
- * The two DEBUG lines are output GPIOs that are available to the user for
- * debug purposes.
- *
- * Inputs:
- *   line - the index value of the debug line to turn on
- *
- * Returns:
- *   None
- *
- * Side Effects:
- *   DEBUG line on.
- *
- **/
-extern void Hal_debugOn(uint8_t line);
-/**
- * --------- Hal_debugPulse ---------
- *
- * Emits a pulse on the selected DEBUG line.
- *
- * The two DEBUG lines are output GPIOs that are available to the user for
- * debug purposes.
- *
- * Inputs:
- *   line - the index value of the debug line to emit a pulse
- *
- * Returns:
- *   None
- *
- * Side Effects:
- *   DEBUG line turns on then off.
- *
- **/
-extern void Hal_debugPulse(uint8_t line);
 /**
  * --------- Hal_delay ---------
  *