You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
1.8 KiB

  1. /*
  2. * Copyright (C) 2016-2017 by Marc Schink
  3. * openocd-dev@marcschink.de
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef OPENOCD_TARGET_RTT_H
  19. #define OPENOCD_TARGET_RTT_H
  20. #include <stdint.h>
  21. #include <stdbool.h>
  22. #include <target/target.h>
  23. #include <rtt/rtt.h>
  24. int target_rtt_start(const struct rtt_control *ctrl, struct target *target,
  25. void *user_data);
  26. int target_rtt_stop(struct target *target, void *user_data);
  27. int target_rtt_find_control_block(target_addr_t *address, size_t length,
  28. const char *id, size_t id_length, bool *found, struct target *target,
  29. void *uer_data);
  30. int target_rtt_read_control_block(target_addr_t address,
  31. struct rtt_control *ctrl, struct target *target, void *user_data);
  32. int target_rtt_write_callback(struct rtt_control *ctrl,
  33. unsigned int channel, const uint8_t *buffer, size_t *length,
  34. struct target *target, void *user_data);
  35. int target_rtt_read_callback(const struct rtt_control *ctrl,
  36. struct rtt_sink_list **sinks, size_t length, struct target *target,
  37. void *user_data);
  38. int target_rtt_read_buffer_info(const struct rtt_control *ctrl,
  39. unsigned int channel, enum rtt_channel_type type,
  40. struct rtt_buffer_info *info, struct target *target, void *user_data);
  41. #endif /* OPENOCD_TARGET_RTT_H */