diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-05-03 08:58:39 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-05-03 08:58:39 +0800 |
| commit | c7e275f2214cff86fa98da9a12c92b685351aad5 (patch) | |
| tree | ba8f6e12632d2280d14dc7a7493e54cf4b648b27 /main.c | |
| parent | 295f799ec9b7167063e10ca78caf2ceca6227040 (diff) | |
| download | avr-fpm-drivers-c7e275f2214cff86fa98da9a12c92b685351aad5.tar.gz | |
Get template count.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -85,13 +85,20 @@ static inline void print_config(void) int main(void) { + char s[20]; + uint16_t template_count; + cli(); Soft_UART_init(); bit_set(DDRB,5); sei(); - if (fpm_init()) + if (fpm_init()) { print_config(); + template_count = fpm_getcount(); + snprintf(s, 20, "Template count: %d", template_count); + uart_write(s); + } while (1) { |
