RTOS refactoring + more AVR removal

This commit is contained in:
Bertrand Songis
2018-08-05 12:06:48 +02:00
parent f60733b561
commit f3bfde242b
80 changed files with 1111 additions and 1054 deletions
+2 -2
View File
@@ -107,10 +107,10 @@ extern "C" void INTERRUPT_xMS_IRQHandler()
#endif
#if (defined(PCBX9E) && !defined(SIMU))
const pm_uchar bmp_startup[] PROGMEM = {
const pm_uchar bmp_startup[] = {
#include "startup.lbm"
};
const pm_uchar bmp_lock[] PROGMEM = {
const pm_uchar bmp_lock[] = {
#include "lock.lbm"
};
#endif
-3
View File
@@ -106,9 +106,6 @@ extern "C" {
#define TIMER_MULT_APB1 2
#define TIMER_MULT_APB2 2
#define strcpy_P strcpy
#define strcat_P strcat
extern uint16_t sessionTimer;
// Board driver
+4 -3
View File
@@ -60,7 +60,7 @@
/* Lock / unlock functions */
/*-----------------------------------------------------------------------*/
#if !defined(BOOT)
static OS_MutexID ioMutex;
static RTOS_MUTEX_HANDLE ioMutex;
int ff_cre_syncobj (BYTE vol, _SYNC_t *mutex)
{
@@ -70,12 +70,13 @@ int ff_cre_syncobj (BYTE vol, _SYNC_t *mutex)
int ff_req_grant (_SYNC_t mutex)
{
return CoEnterMutexSection(mutex) == E_OK;
RTOS_LOCK_MUTEX(mutex);
return 1;
}
void ff_rel_grant (_SYNC_t mutex)
{
CoLeaveMutexSection(mutex);
RTOS_UNLOCK_MUTEX(mutex);
}
int ff_del_syncobj (_SYNC_t mutex)