#include <stdbool.h> //Permite usar funciones booleanas de C++ #include <stdint.h> //Permite usar funciones generales de C++ #include "nrf.h" #include <stdbool.h> #include <stdint.h> #include "nrf.h" #include "nordic_common.h" #include "boards.h" #include "nrf_gpio.h" #include "nrf_delay.h" #include "nrf_log.h" /** * @brief Function for application main entry. */ int main(void) { nrf_gpio_cfg_input(26, NRF_GPIO_PIN_PULLDOWN); while (true) { NRF_LOG_INFO(26); } } /** @} */
Hello to everyone.
I have a doubt about the function of NRF_LOG library in nRF52 DK.
I´m trying to display the voltaje value from pin P0.26 on Termite, so I saw in this page that NRF_LOG_ENABLED and NRF_LOG_BACKEND_UART_ENABLED must be in 1 on sdk_config.h, so that´s ready.
Then I try to use NRF_LOG_INFO() to display the value but I found that NRF_LOG_INFO() it´s only for char parameters.
My question is, does NRF_LOG library has a function to be used with integer value or there´s a way to convert int values into char? (line 20).
This project is the "ble_app_blinky_pca10040_s132", so contains its sdk_config.h file, but I replaced the .c file with one mine.
I hope you can help me.