Mercurial > public > ostc4
diff Small_CPU/Inc/scheduler.h @ 209:2de856965c55
Merged in Ideenmodellierer/ostc4/ImprovmentSPI (pull request #9)
ImprovmentSPI
author | heinrichsweikamp <bitbucket@heinrichsweikamp.com> |
---|---|
date | Sun, 24 Mar 2019 22:09:37 +0000 |
parents | b95741467355 |
children | e524a824d8f2 |
line wrap: on
line diff
--- a/Small_CPU/Inc/scheduler.h Fri Mar 22 08:15:30 2019 +0000 +++ b/Small_CPU/Inc/scheduler.h Sun Mar 24 22:09:37 2019 +0000 @@ -32,6 +32,11 @@ #define SENSOR_PRESSURE_ID 0 #define MAX_SENSORS 1 +#define SPI_SYNC_METHOD_NONE (0u) +#define SPI_SYNC_METHOD_HARD (1u) /* Scheduler shall reset all counters to 0 */ +#define SPI_SYNC_METHOD_SOFT (2u) /* Scheduler shall reset adjust counters to 100ms SPI data exchange cycle */ +#define SPI_SYNC_METHOD_INVALID (4u) + typedef struct { uint8_t mode; @@ -83,7 +88,6 @@ /* Variables ---------------------------------------------------------*/ extern SGlobal global; -extern uint8_t dohardspisync; /* Function prototypes -----------------------------------------------*/ @@ -101,6 +105,9 @@ void scheduleUpdateDeviceDataChargerFull(void); void scheduleUpdateDeviceDataChargerCharging(void); +void Scheduler_Request_sync_with_SPI(uint8_t SyncMethod); +void Scheduler_SyncToSPI(void); + uint8_t scheduleSetButtonResponsiveness(void); void copyBatteryData(void);