src/lmic/hal.c
// set radio RST pin to given value (or keep floating!)
set radio RST pin to given value (or keep floating!)
set radio RST pin to given value ( or keep floating! )
void hal_pin_rst (u8_t val)
{
    switch (val) {
        case 0:
            gpio_pin_configure(dev_gpio, HAL_RESET_PIN, GPIO_OUTPUT | HAL_RESET_FLAG);
            gpio_pin_set(dev_gpio, HAL_RESET_PIN, 0);  
            break;
        case 1:
            gpio_pin_configure(dev_gpio, HAL_RESET_PIN, GPIO_OUTPUT | HAL_RESET_FLAG);
            gpio_pin_set(dev_gpio, HAL_RESET_PIN, 1);  
            break;
        default:
            gpio_pin_configure(dev_gpio, HAL_RESET_PIN, GPIO_INPUT);  
            break;
    }
}
void hal_pin_rst ( u8_t val ) { switch ( val ) { case 0 : gpio_pin_configure ( dev_gpio , HAL_RESET_PIN , GPIO_OUTPUT | HAL_RESET_FLAG ) ; gpio_pin_set ( dev_gpio , HAL_RESET_PIN , 0 ) ; break ; case 1 : gpio_pin_configure ( dev_gpio , HAL_RESET_PIN , GPIO_OUTPUT | HAL_RESET_FLAG ) ; gpio_pin_set ( dev_gpio , HAL_RESET_PIN , 1 ) ; break ; default : gpio_pin_configure ( dev_gpio , HAL_RESET_PIN , GPIO_INPUT ) ; break ; } }
set radio RST pin to given value (or keep floating!)
set radio RST pin to given value ( or keep floating! )
// enter reset // exit reset // HI-Z 