forked from Elron_dev/elbear_arduino_bsp
Обновление до версии 0.3.0
- обновлен elbear_fw_bootloader - добавлена проверка контрольной суммы каждой строки hex файла. - в модуль работы с АЦП добавлена функция analogReadResolution(). Функция analogRead() теперь возвращает усредненное по 10 измерениям значение. - общая функция обработки прерываний перенесена в память RAM. Обработчики прерываний модулей External Interrupts и Advanced I/O (функция tone()) так же перенесены в память RAM для увеличения скорости выполнения кода. - в пакет добавлены библиотеки EEPROM, Servo, SoftSerial, NeoPixel, MFRC522 адаптированные для работы с платой Elbear Ace-Uno. - добавлено описание особенностей работы с пакетом
This commit is contained in:
1 parent
2044614aba
commit
7261b03ea1
114 files changed
+11064
-666
No files matched your search
@@ -24,12 +24,22 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define clockCyclesPerMicrosecond() (F_CPU / 1000000L)
|
||||
#define clockCyclesToMicroseconds(a) ((a) / clockCyclesPerMicrosecond())
|
||||
#define microsecondsToClockCycles(a) ((a) * clockCyclesPerMicrosecond())
|
||||
|
||||
/**
|
||||
* \brief Initialize timer for creating delays
|
||||
*
|
||||
*/
|
||||
void SysTick_Init(void);
|
||||
|
||||
/**
|
||||
* \brief Returns the number of ticks since the Arduino board began running the current program.
|
||||
|
||||
* \return Number of ticks since the program started
|
||||
*/
|
||||
uint64_t SysTick_GetTicks(void);
|
||||
|
||||
/**
|
||||
* \brief Returns the number of milliseconds since the Arduino board began running the current program.
|
||||
|
||||
Reference in new issue
Block a user