Программа считывает показания датчиков и управляет сервомашинками.

Dependencies:   mbed-src

Fork of NUCLEO_BLUENRG by Ostap Ostapsky

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers clock.c Source File

clock.c

00001 #include "cube_hal.h"
00002 #include "clock.h"
00003 
00004 
00005 const tHalUint32 CLOCK_SECOND = 1000;
00006 
00007 /*---------------------------------------------------------------------------*/
00008 
00009 void Clock_Init(void)
00010 {
00011   // FIXME: as long as Cube HAL is initialized this is OK
00012   // Cube HAL default is one clock each 1 ms
00013 }
00014 
00015 /*---------------------------------------------------------------------------*/
00016 
00017 tClockTime Clock_Time(void)
00018 {
00019   return HAL_GetTick();
00020 }
00021 
00022 /*---------------------------------------------------------------------------*/
00023 /**
00024  * Wait for a multiple of 1 ms.
00025  *
00026  */
00027 void Clock_Wait(int i)
00028 {
00029   HAL_Delay(i);
00030 }
00031 /*---------------------------------------------------------------------------*/
00032 
00033