hi.........
i am tried to merge the blinky and timer sample program , i am getting this error , even i have included all files .h , .c files
nrfx_config.h: No such file or directory
hi.........
i am tried to merge the blinky and timer sample program , i am getting this error , even i have included all files .h , .c files
nrfx_config.h: No such file or directory
good , but what mistake in my file i used application timer
I am using Keil tool. I didn't check your file?
Above code working from my side.
Please Post your code. I can't understand your problem?
application timer
which example it is?
Please explain clearly.
look at this code
#include <stdbool.h>
#include <stdint.h>
#include "nrf_delay.h"
#include "boards.h"
#include "nrf_delay.h"
#include "app_timer.h"
#include "nrf_drv_timer.h"
#define APP_TIMER_DE(m_led_a_timer_id);
static void timer_sensor_event_handler(nrf_timer_event_t event_type, void* p_context)
{
void bsp_board_leds_on(void)
{
uint32_t i;
for (i = 0; i < LEDS_NUMBER; ++i)
{
bsp_board_led_on(i);
}
}
}
static void create_timers(void)
{
uint32_t err_code;
// Create timers
err_code = app_timer_create(&m_led_a_timer_id,
APP_TIMER_MODE_REPEATED,
timer_sensor_event_handler);
APP_ERROR_CHECK(err_code);
}
static timer_start(void)
{
uint32_t err_code;
//uint32_t APP_TIMER_TICKS(50000);
// Start application timers
err_code = app_timer_start(m_led_a_timer_id, APP_TIMER_TICKS(50000), NULL);
APP_ERROR_CHECK(err_code);
NRF_LOG_INFO("SUCCESS1");
}
/**@brief Function for application main entry.
*/
int main(void)
{
// Initialize.
app_timer_init();
create_timers();
// Enter main loop.
for (;;)
{
idle_state_handle();
}
}
tell me if you can't understand this
First, check my code. let me know its working or not?