LingYun Studio embeded system framwork software, such as thirdparty build shell and lingyun library
guowenxue
2024-08-21 d48b80fc277cb123738461b6125a58ffe9923019
hal/api/relay.c
@@ -9,7 +9,7 @@
 * Pin connection:
 *                 Relay Module           IGKBoard-IMX6ULL
 *                  VCC       <----->      5V
 *                   I        <----->      #Pin22 (GPIO3_IO23)
 *                   I        <----->      #Pin37 (GPIO5_IO08)
 *                  GND       <----->      GND
 *
 ********************************************************************************/
@@ -92,6 +92,8 @@
    turn_relay(which, status);
   term_relay();
    return 0;
}
@@ -102,7 +104,7 @@
static relay_t relays_info[RELAY_CNT] =
{
    {"relay1",  2, 23,  ACTIVE_HIGH, 0, NULL}, /* #Pin22, GPIO3_IO23 on chip2 line 23, active high */
    {"relay1",  4, 8,  ACTIVE_HIGH, 0, NULL}, /* #Pin37, GPIO5_IO08 on chip4 line 8, active high */
};
/* relays context */