C8051F32x firmware infrastructure
Sign in or create your account | Project List | Help
C8051F32x firmware infrastructure Git Source Tree
Root/
| 1 | /* |
| 2 | * f32x/c2.h - Basic C2 messages |
| 3 | * |
| 4 | * Written 2008, 2010 by Werner Almesberger |
| 5 | * Copyright 2008, 2010 Werner Almesberger |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | */ |
| 12 | |
| 13 | |
| 14 | #ifndef C2_H |
| 15 | #define C2_H |
| 16 | |
| 17 | |
| 18 | #include <stdint.h> |
| 19 | |
| 20 | |
| 21 | void c2_addr_write(uint8_t addr); |
| 22 | uint8_t c2_addr_read(void); |
| 23 | void c2_data_write(uint32_t data, int bytes); |
| 24 | uint32_t c2_data_read(int bytes) ; |
| 25 | |
| 26 | void c2_init(int power); |
| 27 | void c2_reset(void); |
| 28 | |
| 29 | #endif /* !C2_H */ |
| 30 |
Branches:
master
