summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-05-03 08:58:39 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-05-03 08:58:39 +0800
commitc7e275f2214cff86fa98da9a12c92b685351aad5 (patch)
treeba8f6e12632d2280d14dc7a7493e54cf4b648b27 /main.c
parent295f799ec9b7167063e10ca78caf2ceca6227040 (diff)
downloadavr-fpm-drivers-c7e275f2214cff86fa98da9a12c92b685351aad5.tar.gz
Get template count.
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.c b/main.c
index 37ef329..1b8b264 100644
--- a/main.c
+++ b/main.c
@@ -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)
{