Modifications in 4DGL library. Added CDU_hw_sw.h for version info. Added pins.h for hardware pin remapping
Dependencies: 4DGL-UC MODSERIAL mbed mbos
Fork of CDU_Mbed_30 by
mbos_def3.h@21:f348e6f0f7d4, 2014-10-10 (annotated)
- Committer:
- WillemBraat
- Date:
- Fri Oct 10 18:23:36 2014 +0000
- Revision:
- 21:f348e6f0f7d4
Additional files: CDU_Maintenance.cpp / mbps_def3.h
; Rewrite of main() function for power checks
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
WillemBraat | 21:f348e6f0f7d4 | 1 | /* // File: mbos_def3.h |
WillemBraat | 21:f348e6f0f7d4 | 2 | / New priority for testing communication crash |
WillemBraat | 21:f348e6f0f7d4 | 3 | / |
WillemBraat | 21:f348e6f0f7d4 | 4 | / Also changed: input buffer 1024-2048 bytes in main.cpp |
WillemBraat | 21:f348e6f0f7d4 | 5 | / |
WillemBraat | 21:f348e6f0f7d4 | 6 | / |
WillemBraat | 21:f348e6f0f7d4 | 7 | #define RECEIVE_DECODE_TASK_PRIO 80->95 // : highest |
WillemBraat | 21:f348e6f0f7d4 | 8 | #define CDU_DSP_CSS_TASK_PRIO 95->90 |
WillemBraat | 21:f348e6f0f7d4 | 9 | #define SEND_KEYMESSAGE_TASK_PRIO 90->80 |
WillemBraat | 21:f348e6f0f7d4 | 10 | #define ALIVE_TASK_PRIO 50 deze zo houden maar |
WillemBraat | 21:f348e6f0f7d4 | 11 | #define READ_POT_TASK_PRIO 40 // : lowest priority deze zo houden maar |
WillemBraat | 21:f348e6f0f7d4 | 12 | */ |
WillemBraat | 21:f348e6f0f7d4 | 13 | // File: mbos_def2.h |
WillemBraat | 21:f348e6f0f7d4 | 14 | // L. van der Kolk, ELVEDEKA, Holland |
WillemBraat | 21:f348e6f0f7d4 | 15 | |
WillemBraat | 21:f348e6f0f7d4 | 16 | // -------------- Mbos definitions for CDU ------------------------------------------- |
WillemBraat | 21:f348e6f0f7d4 | 17 | // MBOS TASKS: |
WillemBraat | 21:f348e6f0f7d4 | 18 | // ALIVE_TASK properties: |
WillemBraat | 21:f348e6f0f7d4 | 19 | #define ALIVE_TASK_ID 1 |
WillemBraat | 21:f348e6f0f7d4 | 20 | #define ALIVE_TASK_PRIO 50 |
WillemBraat | 21:f348e6f0f7d4 | 21 | #define ALIVE_TASK_STACK_SZ 100 |
WillemBraat | 21:f348e6f0f7d4 | 22 | // READ_POT_TASK properties: |
WillemBraat | 21:f348e6f0f7d4 | 23 | #define READ_POT_TASK_ID 4 |
WillemBraat | 21:f348e6f0f7d4 | 24 | #define READ_POT_TASK_PRIO 40 // : lowest priority |
WillemBraat | 21:f348e6f0f7d4 | 25 | #define READ_POT_TASK_STACK_SZ 100 |
WillemBraat | 21:f348e6f0f7d4 | 26 | // RECEIVE_DECODE_TASK properties: |
WillemBraat | 21:f348e6f0f7d4 | 27 | #define RECEIVE_DECODE_TASK_ID 2 |
WillemBraat | 21:f348e6f0f7d4 | 28 | #define RECEIVE_DECODE_TASK_PRIO 95 |
WillemBraat | 21:f348e6f0f7d4 | 29 | #define RECEIVE_DECODE_TASK_STACK_SZ 256 |
WillemBraat | 21:f348e6f0f7d4 | 30 | // SEND_KEYMESSAGE_TASK properties: |
WillemBraat | 21:f348e6f0f7d4 | 31 | #define SEND_KEYMESSAGE_TASK_ID 3 |
WillemBraat | 21:f348e6f0f7d4 | 32 | #define SEND_KEYMESSAGE_TASK_PRIO 80 |
WillemBraat | 21:f348e6f0f7d4 | 33 | #define SEND_KEYMESSAGE_TASK_STACK_SZ 256 |
WillemBraat | 21:f348e6f0f7d4 | 34 | // CDU_DSP_CSS_TASK properties: |
WillemBraat | 21:f348e6f0f7d4 | 35 | #define CDU_DSP_CSS_TASK_ID 5 |
WillemBraat | 21:f348e6f0f7d4 | 36 | #define CDU_DSP_CSS_TASK_PRIO 90 // : highest priority ! |
WillemBraat | 21:f348e6f0f7d4 | 37 | #define CDU_DSP_CSS_TASK_STACK_SZ 512 |
WillemBraat | 21:f348e6f0f7d4 | 38 | |
WillemBraat | 21:f348e6f0f7d4 | 39 | // MBOS TIMERS: |
WillemBraat | 21:f348e6f0f7d4 | 40 | // ALIVE_TIMER properties: |
WillemBraat | 21:f348e6f0f7d4 | 41 | #define ALIVE_TIMER_ID 1 |
WillemBraat | 21:f348e6f0f7d4 | 42 | #define ALIVE_TIMER_PERIOD 5000 // = 5 sec |
WillemBraat | 21:f348e6f0f7d4 | 43 | // READ_POT_TIMER properties: |
WillemBraat | 21:f348e6f0f7d4 | 44 | #define READ_POT_TIMER_ID 2 |
WillemBraat | 21:f348e6f0f7d4 | 45 | #define READ_POT_TIMER_PERIOD 100 // = 100msec scan time |
WillemBraat | 21:f348e6f0f7d4 | 46 | // DECODE_TIMER properties: |
WillemBraat | 21:f348e6f0f7d4 | 47 | #define DECODE_TIMER_ID 3 |
WillemBraat | 21:f348e6f0f7d4 | 48 | #define DECODE_TIMER_PERIOD 50 // = 50msec scan time |
WillemBraat | 21:f348e6f0f7d4 | 49 | |
WillemBraat | 21:f348e6f0f7d4 | 50 | // MBOS EVENTS: |
WillemBraat | 21:f348e6f0f7d4 | 51 | #define ALIVE_EVENT 1 |
WillemBraat | 21:f348e6f0f7d4 | 52 | #define DECODE_TIMER_EVENT 2 |
WillemBraat | 21:f348e6f0f7d4 | 53 | #define KEY_EVENT 4 |
WillemBraat | 21:f348e6f0f7d4 | 54 | #define READ_POT_TIMER_EVENT 8 |
WillemBraat | 21:f348e6f0f7d4 | 55 | #define FS_DATA_EVENT 16 |
WillemBraat | 21:f348e6f0f7d4 | 56 | |
WillemBraat | 21:f348e6f0f7d4 | 57 | // MBOS RESOURCES: |
WillemBraat | 21:f348e6f0f7d4 | 58 | // NOTE: priority should be higher than that of any task which will access the resource ! |
WillemBraat | 21:f348e6f0f7d4 | 59 | #define USB_TX_RESOURCE 2 // : for locking USB TX buffer |
WillemBraat | 21:f348e6f0f7d4 | 60 | #define USB_TX_PRIO 99 // : USB TX buffer resource priority |
WillemBraat | 21:f348e6f0f7d4 | 61 | #define FS_DATA_RESOURCE 1 // : for locking FS data structures |
WillemBraat | 21:f348e6f0f7d4 | 62 | #define FS_DATA_PRIO 97 // : FS data resource priority |
WillemBraat | 21:f348e6f0f7d4 | 63 | |
WillemBraat | 21:f348e6f0f7d4 | 64 | // ------------------------------------------------------------------------------------------- |