Skip to content

Commit

Permalink
add pico-sdk as submodule; fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dhalbert committed May 24, 2021
1 parent b6cf752 commit 66de448
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
firmware/pico-sdk
firmware/source/build/
firmware/source/config.h
examples/external/ressources/sound/music.wav
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "firmware/pico-sdk"]
path = firmware/pico-sdk
url = https://github.com/raspberrypi/pico-sdk.git
1 change: 1 addition & 0 deletions firmware/pico-sdk
Submodule pico-sdk added at fc10a9
3 changes: 1 addition & 2 deletions firmware/source/interfaces/Pwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct Slice {
return gpioChannelB = gpio;
}

inline bool unsetGpioChannel(uint channel) {
inline void unsetGpioChannel(uint channel) {
if(channel == 0)
gpioChannelA = -1;
else
Expand Down Expand Up @@ -60,4 +60,3 @@ class Pwm : public BaseInterface {


#endif

3 changes: 1 addition & 2 deletions firmware/source/interfaces/StreamBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class StreamBuffer {
inline uint32_t getAllocateSize() const {return static_cast<uint32_t>(_buffer.size()*4);}
inline uint8_t* getDataPtr8() {return (uint8_t*)_buffer.data();}
inline uint32_t* getDataPtr32() {return static_cast<uint32_t*>(_buffer.data());}
inline uint32_t setSize(uint32_t size) {_bufSize = size;}
inline void setSize(uint32_t size) {_bufSize = size;}
inline uint32_t size() const {return _bufSize;}
protected:
//std::vector<uint8_t> _buffer;
Expand All @@ -22,4 +22,3 @@ class StreamBuffer {


#endif

0 comments on commit 66de448

Please sign in to comment.