Bruno Allaire-Lemay
/
APP1test
df
Fork of APP1 by
HomemadeMbed.hpp@23:2531e72d92b9, 2017-02-09 (annotated)
- Committer:
- GaiSensei
- Date:
- Thu Feb 09 15:55:18 2017 +0000
- Revision:
- 23:2531e72d92b9
- Parent:
- 21:a111be2582be
gh
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dupm2216 | 21:a111be2582be | 1 | ///////////////////////////////////////////////////////////// |
dupm2216 | 21:a111be2582be | 2 | // APP 1: Systèmes à microprocesseurs // |
dupm2216 | 21:a111be2582be | 3 | // // |
dupm2216 | 21:a111be2582be | 4 | // Université de Sherbrooke // |
dupm2216 | 21:a111be2582be | 5 | // Génie informatique // |
dupm2216 | 21:a111be2582be | 6 | // Session 5, Hiver 2017 // |
dupm2216 | 21:a111be2582be | 7 | // // |
dupm2216 | 21:a111be2582be | 8 | // Date: 17 janvier 2017 // |
dupm2216 | 21:a111be2582be | 9 | // // |
dupm2216 | 21:a111be2582be | 10 | // Auteurs: Maxime Dupuis, dupm2216 // |
dupm2216 | 21:a111be2582be | 11 | // Bruno Allaire-Lemay, allb2701 // |
dupm2216 | 21:a111be2582be | 12 | ///////////////////////////////////////////////////////////// |
dupm2216 | 21:a111be2582be | 13 | |
GaiSensei | 13:bb9669053eb3 | 14 | #ifndef HOMEMADE_MBED_HPP |
GaiSensei | 13:bb9669053eb3 | 15 | #define HOMEMADE_MBED_HPP |
GaiSensei | 13:bb9669053eb3 | 16 | |
GaiSensei | 13:bb9669053eb3 | 17 | namespace homemade_mbed |
GaiSensei | 13:bb9669053eb3 | 18 | { |
GaiSensei | 14:2f89279586cb | 19 | unsigned int read_bits(unsigned int* address_4_bytes, const int start_bit, const int stop_bit); |
GaiSensei | 14:2f89279586cb | 20 | void write_bits(unsigned int* address_4_bytes, const int start_bit, const int stop_bit, const unsigned int new_value); |
dupm2216 | 15:b38d9d210e32 | 21 | //Reserved bits: 0 |
dupm2216 | 15:b38d9d210e32 | 22 | //Non-reserved bits: 1 |
dupm2216 | 15:b38d9d210e32 | 23 | unsigned int get_reserved_bits_mask(unsigned int* address_4_bytes); |
GaiSensei | 13:bb9669053eb3 | 24 | } |
GaiSensei | 13:bb9669053eb3 | 25 | |
GaiSensei | 13:bb9669053eb3 | 26 | #endif |