Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: PulseWidthCapture_Program
LCD_Wait.h@0:538efd9574f7, 2014-12-10 (annotated)
- Committer:
- Ellor1
- Date:
- Wed Dec 10 10:33:53 2014 +0000
- Revision:
- 0:538efd9574f7
- Child:
- 1:57aba608a20d
working Wait Function added;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Ellor1 | 0:538efd9574f7 | 1 | #ifndef LCD_H |
| Ellor1 | 0:538efd9574f7 | 2 | #define LCD_H |
| Ellor1 | 0:538efd9574f7 | 3 | |
| Ellor1 | 0:538efd9574f7 | 4 | #include "mbed.h" |
| Ellor1 | 0:538efd9574f7 | 5 | |
| Ellor1 | 0:538efd9574f7 | 6 | |
| Ellor1 | 0:538efd9574f7 | 7 | class LCD_Wait { |
| Ellor1 | 0:538efd9574f7 | 8 | public: |
| Ellor1 | 0:538efd9574f7 | 9 | |
| Ellor1 | 0:538efd9574f7 | 10 | LCD_Wait(void); |
| Ellor1 | 0:538efd9574f7 | 11 | void Wait(float num_wait); |
| Ellor1 | 0:538efd9574f7 | 12 | |
| Ellor1 | 0:538efd9574f7 | 13 | private: |
| Ellor1 | 0:538efd9574f7 | 14 | |
| Ellor1 | 0:538efd9574f7 | 15 | static void _Wait_ISR(void); |
| Ellor1 | 0:538efd9574f7 | 16 | void Wait_ISR(void); |
| Ellor1 | 0:538efd9574f7 | 17 | static LCD_Wait *instance; |
| Ellor1 | 0:538efd9574f7 | 18 | unsigned int wait_n; |
| Ellor1 | 0:538efd9574f7 | 19 | |
| Ellor1 | 0:538efd9574f7 | 20 | |
| Ellor1 | 0:538efd9574f7 | 21 | /* Private Macros ------------------------------------------------------------- */ |
| Ellor1 | 0:538efd9574f7 | 22 | /* --------------------- BIT DEFINITIONS -------------------------------------- */ |
| Ellor1 | 0:538efd9574f7 | 23 | |
| Ellor1 | 0:538efd9574f7 | 24 | |
| Ellor1 | 0:538efd9574f7 | 25 | #define CT16B1_IR_MR0INT ((uint32_t)(1<<0)) |
| Ellor1 | 0:538efd9574f7 | 26 | |
| Ellor1 | 0:538efd9574f7 | 27 | #define CT16B1_CLK_ENABLE ((uint32_t)(1<<8)) |
| Ellor1 | 0:538efd9574f7 | 28 | |
| Ellor1 | 0:538efd9574f7 | 29 | #define CT16B1_TCR_CEN 1UL |
| Ellor1 | 0:538efd9574f7 | 30 | |
| Ellor1 | 0:538efd9574f7 | 31 | #define CT16B1_MR0I ((uint32_t)(1<<0)) |
| Ellor1 | 0:538efd9574f7 | 32 | |
| Ellor1 | 0:538efd9574f7 | 33 | #define CT16B1_MR0R ((uint32_t)(1<<1)) |
| Ellor1 | 0:538efd9574f7 | 34 | |
| Ellor1 | 0:538efd9574f7 | 35 | |
| Ellor1 | 0:538efd9574f7 | 36 | }; |
| Ellor1 | 0:538efd9574f7 | 37 | |
| Ellor1 | 0:538efd9574f7 | 38 | #endif |