| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #ifndef PLATFORMS_STM_DISCO_FLETCH_SRC_CIRCULAR_BUFFER_H_ | 5 #ifndef PLATFORMS_STM_DISCO_FLETCH_SRC_CIRCULAR_BUFFER_H_ |
| 6 #define PLATFORMS_STM_DISCO_FLETCH_SRC_CIRCULAR_BUFFER_H_ | 6 #define PLATFORMS_STM_DISCO_FLETCH_SRC_CIRCULAR_BUFFER_H_ |
| 7 | 7 |
| 8 #include <inttypes.h> | 8 #include <inttypes.h> |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 | 10 |
| 11 #include "src/shared/platform.h" | 11 #include "src/shared/platform.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 42 private: | 42 private: |
| 43 fletch::Monitor* monitor_; | 43 fletch::Monitor* monitor_; |
| 44 int waiting_; | 44 int waiting_; |
| 45 uint8_t* buffer_; | 45 uint8_t* buffer_; |
| 46 size_t capacity_; | 46 size_t capacity_; |
| 47 int head_; | 47 int head_; |
| 48 int tail_; | 48 int tail_; |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 #endif // PLATFORMS_STM_DISCO_FLETCH_SRC_CIRCULAR_BUFFER_H_ | 51 #endif // PLATFORMS_STM_DISCO_FLETCH_SRC_CIRCULAR_BUFFER_H_ |
| OLD | NEW |