A board support package for the LPC4088 Display Module.
Dependencies: DM_HttpServer DM_USBHost
Dependents: lpc4088_displaymodule_emwin lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI ... more
Fork of DMSupport by
Memory/BiosEEPROM.h@17:4ea2509445ac, 2015-01-07 (annotated)
- Committer:
- embeddedartists
- Date:
- Wed Jan 07 14:02:39 2015 +0100
- Revision:
- 17:4ea2509445ac
Moved BIOS from internal to external EEPROM
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
embeddedartists | 17:4ea2509445ac | 1 | /* |
embeddedartists | 17:4ea2509445ac | 2 | * Copyright 2014 Embedded Artists AB |
embeddedartists | 17:4ea2509445ac | 3 | * |
embeddedartists | 17:4ea2509445ac | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
embeddedartists | 17:4ea2509445ac | 5 | * you may not use this file except in compliance with the License. |
embeddedartists | 17:4ea2509445ac | 6 | * You may obtain a copy of the License at |
embeddedartists | 17:4ea2509445ac | 7 | * |
embeddedartists | 17:4ea2509445ac | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
embeddedartists | 17:4ea2509445ac | 9 | * |
embeddedartists | 17:4ea2509445ac | 10 | * Unless required by applicable law or agreed to in writing, software |
embeddedartists | 17:4ea2509445ac | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
embeddedartists | 17:4ea2509445ac | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
embeddedartists | 17:4ea2509445ac | 13 | * See the License for the specific language governing permissions and |
embeddedartists | 17:4ea2509445ac | 14 | * limitations under the License. |
embeddedartists | 17:4ea2509445ac | 15 | */ |
embeddedartists | 17:4ea2509445ac | 16 | |
embeddedartists | 17:4ea2509445ac | 17 | #ifndef BIOS_EEPROM_H |
embeddedartists | 17:4ea2509445ac | 18 | #define BIOS_EEPROM_H |
embeddedartists | 17:4ea2509445ac | 19 | |
embeddedartists | 17:4ea2509445ac | 20 | #include "mbed.h" |
embeddedartists | 17:4ea2509445ac | 21 | |
embeddedartists | 17:4ea2509445ac | 22 | /** |
embeddedartists | 17:4ea2509445ac | 23 | * Bios EEPROM Driver |
embeddedartists | 17:4ea2509445ac | 24 | */ |
embeddedartists | 17:4ea2509445ac | 25 | class BiosEEPROM { |
embeddedartists | 17:4ea2509445ac | 26 | public: |
embeddedartists | 17:4ea2509445ac | 27 | |
embeddedartists | 17:4ea2509445ac | 28 | BiosEEPROM(); |
embeddedartists | 17:4ea2509445ac | 29 | |
embeddedartists | 17:4ea2509445ac | 30 | /** Reads |
embeddedartists | 17:4ea2509445ac | 31 | * |
embeddedartists | 17:4ea2509445ac | 32 | * @param address the address to read from |
embeddedartists | 17:4ea2509445ac | 33 | * @param data buffer to store read data in |
embeddedartists | 17:4ea2509445ac | 34 | * @param size number of bytes to read |
embeddedartists | 17:4ea2509445ac | 35 | * |
embeddedartists | 17:4ea2509445ac | 36 | * @returns |
embeddedartists | 17:4ea2509445ac | 37 | * True on success |
embeddedartists | 17:4ea2509445ac | 38 | * False on failure |
embeddedartists | 17:4ea2509445ac | 39 | */ |
embeddedartists | 17:4ea2509445ac | 40 | bool read(uint32_t address, char* data, uint32_t size); |
embeddedartists | 17:4ea2509445ac | 41 | |
embeddedartists | 17:4ea2509445ac | 42 | private: |
embeddedartists | 17:4ea2509445ac | 43 | I2C _i2c; |
embeddedartists | 17:4ea2509445ac | 44 | }; |
embeddedartists | 17:4ea2509445ac | 45 | |
embeddedartists | 17:4ea2509445ac | 46 | #endif |