GRiSP RTEMS functions.
NIF mappings to RTEMS functions.time_of_day() = {calendar:datetime(), Ticks::non_neg_integer()}
clock_get_ticks_per_second/0 | Gets the number of clock ticks per second configured for the application. |
clock_get_ticks_since_boot/0 | Gets the number of clock ticks since some time point during the system initialization or the last overflow of the clock tick counter. |
clock_get_tod/0 | Gets the time of day associated with the current CLOCK_REALTIME . |
clock_set/1 | Sets the CLOCK_REALTIME to the time of day. |
pwrite/3 | Perform a raw pwrite syscall to a device. |
unmount/1 | Unmounts the file system instance at the specified mount path. |
clock_get_ticks_per_second() -> integer()
Gets the number of clock ticks per second configured for the application.
Reference: rtems_clock_get_ticks_per_secondclock_get_ticks_since_boot() -> integer()
Gets the number of clock ticks since some time point during the system initialization or the last overflow of the clock tick counter.
Reference: rtems_clock_get_ticks_since_bootclock_get_tod() -> time_of_day()
Gets the time of day associated with the current CLOCK_REALTIME
.
clock_set(X1::time_of_day()) -> integer()
Sets the CLOCK_REALTIME
to the time of day.
pwrite(DevicePath::binary() | iolist(), Buffer::binary() | iolist(), Offset::integer()) -> {ok, integer()} | {error, atom(), list()}
Perform a raw pwrite
syscall to a device.
fd = open(device_path, O_RDWR); pwrite(fd, buffer.data, buffer.size, offset);Reference: pwrite
unmount(Path::iodata()) -> ok | {error, list()}
Unmounts the file system instance at the specified mount path.
Reference: rtems_unmountGenerated by EDoc