WIP code
ADC is sort of functioning, but not reliably. LEDs are sort of working. Buzzer isn't working right and is nearly always on as I can't set the PF2 mode.
This commit is contained in:
@@ -5,6 +5,18 @@
|
||||
* file creation: 20231016 0102
|
||||
*/
|
||||
|
||||
#ifndef _INC_ADC_H
|
||||
#define _INC_ADC_H
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
|
||||
void adc_init();
|
||||
void adc_next();
|
||||
|
||||
uint8_t adc_next();
|
||||
|
||||
|
||||
|
||||
#endif /* _INC_ADC_H */
|
||||
20
include/flash.h
Normal file
20
include/flash.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* flash.h: flashing user config and system option bytes
|
||||
*
|
||||
* file creation: 20231019 0129
|
||||
*/
|
||||
|
||||
#ifndef _INC_FLASH_H
|
||||
#define _INC_FLASH_H
|
||||
|
||||
|
||||
|
||||
void flash_optr_checkfix();
|
||||
|
||||
void flash_optr_set();
|
||||
|
||||
void flash_init();
|
||||
|
||||
|
||||
|
||||
#endif /* _INC_FLASH_H */
|
||||
@@ -5,6 +5,9 @@
|
||||
* file creation: 20231015 0059
|
||||
*/
|
||||
|
||||
#ifndef _INC_LED_H
|
||||
#define _INC_LED_H
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -18,3 +21,7 @@ void led_mode_buzzer();
|
||||
|
||||
void led_setrgb(uint8_t i, uint16_t r, uint16_t g, uint16_t b);
|
||||
void led_buzz(uint8_t buzz);
|
||||
|
||||
|
||||
|
||||
#endif /* _INC_LED_H */
|
||||
@@ -4,6 +4,9 @@
|
||||
* file creation: 20231015 0021
|
||||
*/
|
||||
|
||||
#ifndef _INC_TESTO_H
|
||||
#define _INC_TESTO_H
|
||||
|
||||
|
||||
#include "py32f0xx_conf.h"
|
||||
|
||||
@@ -78,3 +81,6 @@
|
||||
#define ADC_VREF_EXT 0
|
||||
#define ADC_THERM 4
|
||||
|
||||
|
||||
|
||||
#endif /* _INC_TESTO_H */
|
||||
12
include/userio.h
Normal file
12
include/userio.h
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* userio.h: reacting when you fiddle with buttons, switches, and knobs
|
||||
*
|
||||
* file creation: 20231016 1505
|
||||
*/
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
|
||||
void userio_parse();
|
||||
Reference in New Issue
Block a user