/* * Copyright (C) 2023 Daniele Lacamera * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef INCLUDE_LED_H #define INCLUDE_LED_H #include /* A15, G7, B4, G6, C6, C7 */ #define LD0 ((uint32_t)(1 << 15)) #define LD1 ((uint32_t)(1 << 7)) #define LD2 ((uint32_t)(1 << 4)) #define LD3 ((uint32_t)(1 << 6)) #define LD4 ((uint32_t)(1 << 6)) #define LD5 ((uint32_t)(1 << 7)) void led_init(void); void uled_on(int led); void uled_off(int led); void uled_bincount(uint8_t x); #endif