|
ChibiOS/RT
2.5.1 |
HAL subsystem header.
Definition in file hal.h.
#include "ch.h"#include "board.h"#include "halconf.h"#include "hal_lld.h"#include "io_channel.h"#include "io_block.h"#include "mmcsd.h"#include "tm.h"#include "pal.h"#include "adc.h"#include "can.h"#include "ext.h"#include "gpt.h"#include "i2c.h"#include "icu.h"#include "mac.h"#include "pwm.h"#include "rtc.h"#include "serial.h"#include "sdc.h"#include "spi.h"#include "uart.h"#include "usb.h"#include "mmc_spi.h"#include "serial_usb.h"Go to the source code of this file.
Functions | |
| void | halInit (void) |
| HAL initialization. | |
Defines | |
Time conversion utilities for the realtime counter | |
| #define | S2RTT(sec) (halGetCounterFrequency() * (sec)) |
| Seconds to realtime ticks. | |
| #define | MS2RTT(msec) (((halGetCounterFrequency() + 999UL) / 1000UL) * (msec)) |
| Milliseconds to realtime ticks. | |
| #define | US2RTT(usec) |
| Microseconds to realtime ticks. | |
| #define | RTT2S(ticks) ((ticks) / halGetCounterFrequency()) |
| Realtime ticks to seconds to. | |
| #define | RTT2MS(ticks) ((ticks) / (halGetCounterFrequency() / 1000UL)) |
| Realtime ticks to milliseconds. | |
| #define | RTT2US(ticks) ((ticks) / (halGetCounterFrequency() / 1000000UL)) |
| Realtime ticks to microseconds. | |
Macro Functions | |
| #define | halGetCounterValue() hal_lld_get_counter_value() |
| Returns the current value of the system free running counter. | |
| #define | halGetCounterFrequency() hal_lld_get_counter_frequency() |
| Realtime counter frequency. | |