![]() |
Serial Wombat 18AB Firmware
|
#include <stdio.h>#include <stdint.h>#include "utilities.h"#include <string.h>#include "mcc_generated_files/uart1.h"#include "queue.h"Macros | |
| #define | COMPILING_UTILITIES |
| #define | MASK 0x80000057 |
| #define | TEST_UTILITIES |
| #define | QUEUE_ADDRESS 253 |
| #define | QUEUE_SIZE 90 |
| #define | STRING_QUEUE_SIZE 26 |
Functions | |
| uint16_t | vread_ad (void) |
| uint16_t | vpinBitmap (void) |
| uint8_t | getDMAInputSample (uint8_t pin, uint8_t sample) |
| uint8_t | vpinPort (void) |
| uint16_t | read_ad (uint8_t vpin) |
| void | delay_timer3_ticks (uint16_t ticks) |
| uint32_t | read_free_running_timer () |
| uint8_t | ascii_to_val (uint8_t a) |
| uint16_t | hex_ascii_to_val16 (uint8_t *a, uint8_t count) |
| uint32_t | hex_ascii_to_val32 (uint8_t *a, uint8_t count) |
| uint16_t | rx_dec_ascii_to_val16 (uint8_t rxbuffer_index, uint8_t count) |
| uint32_t | dec_ascii_to_val32 (uint8_t *a, uint8_t count) |
| uint8_t | dec_ascii_to_val8 (uint8_t *a, uint8_t count) |
| uint8_t | val_to_ascii (uint8_t a) |
| void | val16_to_hex (mixed16_t val, uint8_t *string) |
| void | put_buffer (uint8_t id, uint16_t value) |
| uint16_t | get_buffer (uint8_t id) |
| void | set_pwm (uint8_t pin, uint16_t width) |
| void | vset_pwm (uint16_t width) |
| void | update_pwm (void) |
| uint16_t | random (void) |
| void | random_seed (uint32_t seed) |
| uint8_t | get_user_buffer (uint16_t offset) |
| void | put_user_buffer (uint16_t offset, uint8_t data) |
| void | get_user_buffer_block (uint16_t offset, uint16_t length, uint8_t *dest) |
| void | orCount (uint16_t *ptr, uint16_t bitmap, uint8_t count) |
| void | andCount (uint16_t *ptr, uint16_t bitmap, uint8_t count) |
| void | updatePulse (uint8_t pin) |
| void | put_user_buffer_block (uint16_t offset, uint16_t length, uint8_t *source) |
| void | EEPROM_WRITE (uint16_t address, uint8_t value) |
| int | unit_test_main (void) |
Variables | |
| uint8_t | user_buffer [SIZE_OF_USER_BUFFER] |
| mixed32_t | random_number |
| mixed32_t | util_local_temp32_1 |
| uint16_t | util_local_temp16_1 |
| mixed16_t | util_local_temp16_2 |
| uint8_t | util_local_i |
| uint8_t | util_local_j |
| uint8_t | util_local_k |
| uint16_t | utility_incrementing_number |
| uint8_t | PinToAdBuffer [NUMBER_OF_PHYSICAL_PINS] |
| const uint16_t | pinBitmap [] |
| const uint8_t | pinPort [] |
| const rom uint8_t | uint8_bitfield [8] |
| const rom uint8_t | uint8_bitlowermask [8] |
| const rom uint8_t | uint8_bitfield_invert [8] |
| const rom uint16_t | uint16_bitfield [16] |
| uint32_t | get_user_buffer_block_calls = 0 |
| uint8_t | overall_result = 0 |
| volatile uint8_t | test_stage = 0 |
| #define COMPILING_UTILITIES |
| #define MASK 0x80000057 |
| #define QUEUE_ADDRESS 253 |
| #define QUEUE_SIZE 90 |
| #define STRING_QUEUE_SIZE 26 |
| #define TEST_UTILITIES |
| void andCount | ( | uint16_t * | ptr, |
| uint16_t | bitmap, | ||
| uint8_t | count | ||
| ) |
| uint8_t ascii_to_val | ( | uint8_t | a | ) |
| uint32_t dec_ascii_to_val32 | ( | uint8_t * | a, |
| uint8_t | count | ||
| ) |
| uint8_t dec_ascii_to_val8 | ( | uint8_t * | a, |
| uint8_t | count | ||
| ) |
| void delay_timer3_ticks | ( | uint16_t | ticks | ) |
| void EEPROM_WRITE | ( | uint16_t | address, |
| uint8_t | value | ||
| ) |
| uint16_t get_buffer | ( | uint8_t | id | ) |
| uint8_t get_user_buffer | ( | uint16_t | offset | ) |
| void get_user_buffer_block | ( | uint16_t | offset, |
| uint16_t | length, | ||
| uint8_t * | dest | ||
| ) |
| uint8_t getDMAInputSample | ( | uint8_t | pin, |
| uint8_t | sample | ||
| ) |
| uint16_t hex_ascii_to_val16 | ( | uint8_t * | a, |
| uint8_t | count | ||
| ) |
| uint32_t hex_ascii_to_val32 | ( | uint8_t * | a, |
| uint8_t | count | ||
| ) |
| void orCount | ( | uint16_t * | ptr, |
| uint16_t | bitmap, | ||
| uint8_t | count | ||
| ) |
| void put_buffer | ( | uint8_t | id, |
| uint16_t | value | ||
| ) |
| void put_user_buffer | ( | uint16_t | offset, |
| uint8_t | data | ||
| ) |
| void put_user_buffer_block | ( | uint16_t | offset, |
| uint16_t | length, | ||
| uint8_t * | source | ||
| ) |
| uint16_t random | ( | void | ) |
| void random_seed | ( | uint32_t | seed | ) |
| uint16_t read_ad | ( | uint8_t | vpin | ) |
| uint32_t read_free_running_timer | ( | ) |
| uint16_t rx_dec_ascii_to_val16 | ( | uint8_t | rxbuffer_index, |
| uint8_t | count | ||
| ) |
| void set_pwm | ( | uint8_t | pin, |
| uint16_t | width | ||
| ) |
| int unit_test_main | ( | void | ) |
| void update_pwm | ( | void | ) |
| void updatePulse | ( | uint8_t | pin | ) |
| void val16_to_hex | ( | mixed16_t | val, |
| uint8_t * | string | ||
| ) |
| uint8_t val_to_ascii | ( | uint8_t | a | ) |
| uint16_t vpinBitmap | ( | void | ) |
| uint8_t vpinPort | ( | void | ) |
| uint16_t vread_ad | ( | void | ) |
| void vset_pwm | ( | uint16_t | width | ) |
| uint32_t get_user_buffer_block_calls = 0 |
| uint8_t overall_result = 0 |
| const uint16_t pinBitmap[] |
| const uint8_t pinPort[] |
| uint8_t PinToAdBuffer[NUMBER_OF_PHYSICAL_PINS] |
| mixed32_t random_number |
| volatile uint8_t test_stage = 0 |
| const rom uint16_t uint16_bitfield[16] |
| const rom uint8_t uint8_bitfield[8] |
| const rom uint8_t uint8_bitfield_invert[8] |
| const rom uint8_t uint8_bitlowermask[8] |
| uint8_t user_buffer[SIZE_OF_USER_BUFFER] |
| uint8_t util_local_i |
| uint8_t util_local_j |
| uint8_t util_local_k |
| uint16_t util_local_temp16_1 |
| mixed16_t util_local_temp16_2 |
| mixed32_t util_local_temp32_1 |
| uint16_t utility_incrementing_number |
1.8.17