![]() |
Contiki-NG
|
Topics | |
| Device drivers | |
Files | |
| file | dbg.c |
| Hardware specific implementation of putchar() and puts() functions. | |
| file | rtimer-arch.c |
| Architecture dependent rtimer implementation header file. | |
| file | rtimer-arch.h |
| Architecture dependent rtimer implementation header file. | |
Functions | |
| int | dbg_putchar (int c) |
| Print a character to debug output. | |
| unsigned int | dbg_send_bytes (const unsigned char *s, unsigned int len) |
| Print a stream of bytes. | |
| void | rtimer_arch_init (void) |
| Initialized the architecture-dependent part of rtimer. | |
| void | rtimer_arch_schedule (rtimer_clock_t t) |
| This function schedules a one-shot event with the nRF RTC. | |
| rtimer_clock_t | rtimer_arch_now () |
| Returns the current real-time clock time. | |
This group documents the Nordic Semiconductor nRF52840 CPU.
| int dbg_putchar | ( | int | c | ) |
| unsigned int dbg_send_bytes | ( | const unsigned char * | seq, |
| unsigned int | len ) |
Print a stream of bytes.
| seq | A pointer to the stream |
| len | The number of bytes to print |
Definition at line 71 of file dbg.c.
References dbg_putchar().
| void rtimer_arch_init | ( | void | ) |
Initialized the architecture-dependent part of rtimer.
Initialized the architecture-dependent part of rtimer.
The Sleep Timer starts ticking automatically as soon as the device turns on. We don't need to turn on interrupts before the first call to rtimer_arch_schedule()
Initialized the architecture-dependent part of rtimer.
The RTC is initialised elsewhere
Definition at line 52 of file rtimer-arch.c.
| rtimer_clock_t rtimer_arch_now | ( | void | ) |
Returns the current real-time clock time.
The value is read from the AON RTC counter and converted to a number of rtimer ticks
< ST count/compare value 0
< ST count/compare value 1
< ST count/compare value 2
< ST count/compare value 3
Definition at line 76 of file rtimer-arch.c.
| void rtimer_arch_schedule | ( | rtimer_clock_t | t | ) |
This function schedules a one-shot event with the nRF RTC.
Schedules an rtimer task to be triggered at time t.
< Compare value load status
< STx upload status signal
< ST count/compare value 3
< ST count/compare value 2
< ST count/compare value 1
< ST count/compare value 0
Definition at line 70 of file rtimer-arch.c.